Osgi: HttpService A null service reference is not allowed., osgihttpservice

Source: Internet
Author: User

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.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.