zoukankan      html  css  js  c++  java
  • osgi: HttpService A null service reference is not allowed.

    最近在学习osgi,在练习HttpService的过程中,一直出现“A null service reference is not allowed”这样的报错,代码本身没有问题,在网上也搜了不少地方,在《深入理解OSGi》、《osgi原理与最佳实践》这两本书中也没有找到具体的解决方法。万般无奈,只好靠自己了,经过多次尝试,一次无意间配置osgi run Configuration时选择了下面的这些bundle,再次启动后竟然不再报错了,苦苦期待的网络访问页面终于出现了,因而特将对应的的bundle截图保存下,一方面供自己以后使用,另一方面也希望对遇到同类问题的同学有所帮助。

    image

    image

    后记:整个过程所经历的步骤和当初在sts直接调用resin服务器的问题解决过程类似,也是在网上各种查、试无果后,非常不甘心,总想把这个问题解决了。就不时的各种改,各种试,最终解决问题。这种情况以后想必会再次遇到,依然需要不放弃,遇水搭桥,逢山开路,解决问题。

  • 相关阅读:
    推箱子(简易版)
    [LeetCode] Word Ladder II
    [LeetCode] Path Sum
    [LeetCode] Word Ladder
    DFS & BFS
    [LeetCode] Surrounded Regions
    [LeetCode] Add Binary
    [LeetCode] Plus One
    [LeetCode] Single Number II
    [LeetCode] Single Number
  • 原文地址:https://www.cnblogs.com/sunzhenchao/p/3958275.html
Copyright © 2011-2022 走看看