Osgi: HttpService A null service reference is not allowed., osgihttpservice
I have been learning osgi recently. During the course of practicing HttpService, there have been errors like "A null service reference is not allowed". The code itself is fine and I have searched many places on the Internet, no specific solution was found in the two books, "Understanding OSGi in depth" and "osgi principles and best practices. I had to rely on myself. After many attempts, I accidentally selected the following bundle When configuring the osgi run Configuration. After the Configuration was started again, no error was reported, the long-awaited network access page has finally appeared. Therefore, we store the corresponding bundle for our future use, and hope to help those who encounter similar problems.
Note: the steps in the whole process are similar to the Problem Solving Process of directly calling the resin server on sts. It is also unwilling to do so after various checks and tests on the Internet, I always want to solve this problem. From time to time, make various changes and try to solve the problem. This situation will be met again in the future, and we still need not to give up. In case of a bridge, we can open roads and solve the problem.