[ 
https://issues.apache.org/jira/browse/DOSGI-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin reassigned DOSGI-77:
-------------------------------------

    Assignee: Sergey Beryozkin
    
> NullPointerException from Distributed OSGI when bundle with wanted properties 
> is started.
> -----------------------------------------------------------------------------------------
>
>                 Key: DOSGI-77
>                 URL: https://issues.apache.org/jira/browse/DOSGI-77
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>          Components: DSW
>    Affects Versions: 1.2
>         Environment: Windows 7
>            Reporter: Pierre-Alexandre Gagné
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>
> 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.RemoteServiceAdminInstance@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.WSPolicyFeature@1302fc5, 
> logging=org.apache.cxf.feature.Log
> gingFeature@903025, 
> SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@48f675, 
> SOAP.1_1=org.apache.cxf.binding.so
> ap.SoapBindingConfiguration@48f675, 
> SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@2c9103, 
> HTTP=PROVIDED}
> application context: 
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@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.WSPolicyFeature@1302fc5, 
> logging=org.apache.cxf.fe
> ature.LoggingFeature@903025, 
> SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@48f675, 
> SOAP.1_1=org.apache.cxf.b
> inding.soap.SoapBindingConfiguration@48f675, 
> SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@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
> nTypeHandler@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.WSPolicyFeature@9bad5a, 
> logging=org.apache.cxf.feature.Logg
> ingFeature@91f005, 
> SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@1250ff2, 
> SOAP.1_1=org.apache.cxf.binding.so
> ap.SoapBindingConfiguration@1250ff2, 
> SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@3a0ab1, 
> HTTP=PROVIDED
> }
> application context: 
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@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.WSPolicyFeature@9bad5a, 
> logging=org.apache.cxf.fea
> ture.LoggingFeature@91f005, 
> SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@1250ff2, 
> SOAP.1_1=org.apache.cxf.b
> inding.soap.SoapBindingConfiguration@1250ff2, 
> SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@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.SoapBindingConfiguration@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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to