NullPointerException from Distributed OSGI when bundle with wanted properties 
is started.
-----------------------------------------------------------------------------------------

                 Key: CXF-2999
                 URL: https://issues.apache.org/jira/browse/CXF-2999
             Project: CXF
          Issue Type: Bug
          Components: OSGi
         Environment: Windows 7
            Reporter: Pierre-Alexandre Gagné
            Priority: Blocker


My service has the following properties:

                dict.put("service.exported.interfaces", "*");
                dict.put("service.exported.configs", "org.apache.cxf.ws");
                dict.put("org.apache.cxf.ws.address", 
"http://localhost:9000/registerService";);

This is what happens when I'm using the console service of Apache Felix to 
start the bundle.

g! install 
file:/C:/Users/Pierre-Alexandre/workspace/ApacheFelixExample/src/ServiceExpositionExample.jar
Bundle ID: 62
g! start 62
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.topologymanager.ServiceListenerImpl 
serviceChanged
INFO: calling TopologyManager -> registered service
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.topologymanager.TopologyManager 
exportService
INFO: TopologyManager: adding service to exportedServices list to export it --- 
from bundle:  null
Ex1: Service of type ServiceExpositionExample.IRegisterService registered.
RvvegisterServiceActivator bundle has been started.
g! 16-Sep-2010 4:49:52 PM 
org.apache.cxf.dosgi.topologymanager.TopologyManager$2 run
INFO: TopologyManager: exporting  serice ...
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.topologymanager.TopologyManager$2 
run
INFO: TopologyManager: handling remoteServiceAdmin 
org.apache.cxf.dosgi.dsw.service.remoteserviceadmininsta...@578073
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.topologymanager.TopologyManager$2 
run
INFO: TopologyManager: exporting ...
Loading Intent map from [classpath:/OSGI-INF/cxf/intents/intent-map.xml]
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
INFO: Injected intents: 
{addressing=org.apache.cxf.ws.policy.wspolicyfeat...@1302fc5, 
logging=org.apache.cxf.feature.Log
gingfeat...@903025, 
soap=org.apache.cxf.binding.soap.soapbindingconfigurat...@48f675, 
SOAP.1_1=org.apache.cxf.binding.so
ap.soapbindingconfigurat...@48f675, 
soap.1_2=org.apache.cxf.binding.soap.soapbindingconfigurat...@2c9103, 
HTTP=PROVIDED}

application context: 
org.springframework.osgi.context.support.osgibundlexmlapplicationcont...@e93999:
 display name [Osgi
BundleXmlApplicationContext(bundle=cxf-dosgi-ri-singlebundle-distribution, 
config=classpath:/OSGI-INF/cxf/intents/intent
-map.xml)]; startup date [Thu Sep 16 16:49:52 EDT 2010]; root of context 
hierarchy
retrieved intent map: IntentMap: 
{addressing=org.apache.cxf.ws.policy.wspolicyfeat...@1302fc5, 
logging=org.apache.cxf.fe
ature.loggingfeat...@903025, 
soap=org.apache.cxf.binding.soap.soapbindingconfigurat...@48f675, 
SOAP.1_1=org.apache.cxf.b
inding.soap.soapbindingconfigurat...@48f675, 
soap.1_2=org.apache.cxf.binding.soap.soapbindingconfigurat...@2c9103, HTTP=
PROVIDED}
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore 
exportService
INFO: interfaces selected for export: 
[ServiceExpositionExample.IRegisterService]
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore 
exportService
INFO: configuration types selected for export: [org.apache.cxf.ws]
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore 
exportService
INFO: creating initial ExportDescription for interface 
ServiceExpositionExample.IRegisterService  with configuration typ
es [org.apache.cxf.ws]
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore 
exportService
INFO: creating server for interface ServiceExpositionExample.IRegisterService
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore 
exportService
INFO: found handler for ServiceExpositionExample.IRegisterService  -> 
org.apache.cxf.dosgi.dsw.handlers.PojoConfiguratio
ntypehand...@105eb6f
16-Sep-2010 4:49:52 PM 
org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler createServer
INFO: Creating a ServiceExpositionExample.IRegisterService endpoint from CXF 
PublishHook, address is http://localhost:90
00/registerService
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
INFO: Could not find intent map file /OSGI-INF/cxf/intents/intent-map.xml
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
INFO: Injected intents: {}
Loading Intent map from [classpath:/OSGI-INF/cxf/intents/intent-map.xml]
16-Sep-2010 4:49:52 PM org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
INFO: Injected intents: 
{addressing=org.apache.cxf.ws.policy.wspolicyfeat...@9bad5a, 
logging=org.apache.cxf.feature.Logg
ingfeat...@91f005, 
soap=org.apache.cxf.binding.soap.soapbindingconfigurat...@1250ff2, 
SOAP.1_1=org.apache.cxf.binding.so
ap.soapbindingconfigurat...@1250ff2, 
soap.1_2=org.apache.cxf.binding.soap.soapbindingconfigurat...@3a0ab1, 
HTTP=PROVIDED
}
application context: 
org.springframework.osgi.context.support.osgibundlexmlapplicationcont...@1a3ca10:
 display name [Osg
iBundleXmlApplicationContext(bundle=cxf-dosgi-ri-singlebundle-distribution, 
config=classpath:/OSGI-INF/cxf/intents/inten
t-map.xml)]; startup date [Thu Sep 16 16:49:52 EDT 2010]; root of context 
hierarchy
retrieved intent map: IntentMap: 
{addressing=org.apache.cxf.ws.policy.wspolicyfeat...@9bad5a, 
logging=org.apache.cxf.fea
ture.loggingfeat...@91f005, 
soap=org.apache.cxf.binding.soap.soapbindingconfigurat...@1250ff2, 
SOAP.1_1=org.apache.cxf.b
inding.soap.soapbindingconfigurat...@1250ff2, 
soap.1_2=org.apache.cxf.binding.soap.soapbindingconfigurat...@3a0ab1, HTTP
=PROVIDED}
16-Sep-2010 4:49:52 PM 
org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler 
processIntent
INFO: Applying intent: SOAP via binding config: 
org.apache.cxf.binding.soap.soapbindingconfigurat...@1250ff2
Exception in thread "pool-1-thread-2" java.lang.NullPointerException
        at org.apache.cxf.dosgi.dsw.OsgiUtils.getVersion(OsgiUtils.java:593)
        at 
org.apache.cxf.dosgi.dsw.handlers.AbstractConfigurationHandler.createEndpointProps(AbstractConfigurationHandl
er.java:121)
        at 
org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java
:122)
        at 
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:244)
        at 
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:78)
        at 
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:71)

        at 
org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:40)

        at 
org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:254)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

This is a blocking issue for me. Please help.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to