You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Anne Diefenbach (JIRA)" <ji...@apache.org> on 2009/06/17 12:54:08 UTC
[jira] Created: (CXF-2295) NullPointerException creating service
proxy
NullPointerException creating service proxy
-------------------------------------------
Key: CXF-2295
URL: https://issues.apache.org/jira/browse/CXF-2295
Project: CXF
Issue Type: Bug
Affects Versions: 2.2, 2.1.3
Reporter: Anne Diefenbach
Upon service proxy creation, at
org.oasis_open.docs.wsn.brw_2.NotificationBroker port = ss.getCxfBinding();
I receive the following exception:
org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://servicemix.org/wsnotification}NotificationBroker from WSDL: file:resources/broker.wsdl
Exception in thread "main" java.lang.NullPointerException
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:573)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:557)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:328)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:184)
at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:328)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:436)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:194)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299)
at javax.xml.ws.Service.getPort(Service.java:40)
at org.servicemix.wsnotification.NotificationBroker.getCxfBinding(NotificationBroker.java:63)
at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:135)
The issue appears to be caused because the WSDL relies on an imported WSDL to define the input messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2295) NullPointerException creating service
proxy
Posted by "Anne Diefenbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anne Diefenbach updated CXF-2295:
---------------------------------
Attachment: wsnbroker.wsdl
broker.wsdl
broker.wsdl is the WSDL with which this error occurs. wsnbroker.wsdl is the WSDL exposed if the broker service is deployed in ServiceMix. Using this WSDL, the error disappears.
> NullPointerException creating service proxy
> -------------------------------------------
>
> Key: CXF-2295
> URL: https://issues.apache.org/jira/browse/CXF-2295
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.3, 2.2
> Reporter: Anne Diefenbach
> Attachments: broker.wsdl, wsnbroker.wsdl
>
>
> Upon service proxy creation, at
> org.oasis_open.docs.wsn.brw_2.NotificationBroker port = ss.getCxfBinding();
> I receive the following exception:
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
> INFO: Creating Service {http://servicemix.org/wsnotification}NotificationBroker from WSDL: file:resources/broker.wsdl
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:573)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:557)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:328)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:184)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:328)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:436)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:194)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299)
> at javax.xml.ws.Service.getPort(Service.java:40)
> at org.servicemix.wsnotification.NotificationBroker.getCxfBinding(NotificationBroker.java:63)
> at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:135)
> The issue appears to be caused because the WSDL relies on an imported WSDL to define the input messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2295) NullPointerException creating service
proxy
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720777#action_12720777 ]
Daniel Kulp commented on CXF-2295:
----------------------------------
The broker.wsdl is invalid. Its also not the version that Servicemix ships. Have you done some search/replace things on it?
The imports do not specify the correct namespace. They should be:
<wsdl:import location="brw-2.wsdl" namespace="http://docs.oasis-open.org/wsn/brw-2"/>
<wsdl:import location="bw-2.wsdl" namespace="http://docs.oasis-open.org/wsn/bw-2"/>
> NullPointerException creating service proxy
> -------------------------------------------
>
> Key: CXF-2295
> URL: https://issues.apache.org/jira/browse/CXF-2295
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.3, 2.2
> Reporter: Anne Diefenbach
> Attachments: broker.wsdl, TestCase.zip, wsnbroker.wsdl
>
>
> Upon service proxy creation, at
> org.oasis_open.docs.wsn.brw_2.NotificationBroker port = ss.getCxfBinding();
> I receive the following exception:
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
> INFO: Creating Service {http://servicemix.org/wsnotification}NotificationBroker from WSDL: file:resources/broker.wsdl
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:573)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:557)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:328)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:184)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:328)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:436)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:194)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299)
> at javax.xml.ws.Service.getPort(Service.java:40)
> at org.servicemix.wsnotification.NotificationBroker.getCxfBinding(NotificationBroker.java:63)
> at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:135)
> The issue appears to be caused because the WSDL relies on an imported WSDL to define the input messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2295) NullPointerException creating service
proxy
Posted by "Anne Diefenbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721106#action_12721106 ]
Anne Diefenbach commented on CXF-2295:
--------------------------------------
... I meant to replace the location. Apparently I changed the namespace instead. -_-;
But it would still be good to get a more specific exception than a NullPointerException, if that's possible. One just does not think of the WSDL upon receiving something like this.
Regards,
Anne
> NullPointerException creating service proxy
> -------------------------------------------
>
> Key: CXF-2295
> URL: https://issues.apache.org/jira/browse/CXF-2295
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.3, 2.2
> Reporter: Anne Diefenbach
> Attachments: broker.wsdl, TestCase.zip, wsnbroker.wsdl
>
>
> Upon service proxy creation, at
> org.oasis_open.docs.wsn.brw_2.NotificationBroker port = ss.getCxfBinding();
> I receive the following exception:
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
> INFO: Creating Service {http://servicemix.org/wsnotification}NotificationBroker from WSDL: file:resources/broker.wsdl
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:573)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:557)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:328)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:184)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:328)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:436)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:194)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299)
> at javax.xml.ws.Service.getPort(Service.java:40)
> at org.servicemix.wsnotification.NotificationBroker.getCxfBinding(NotificationBroker.java:63)
> at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:135)
> The issue appears to be caused because the WSDL relies on an imported WSDL to define the input messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2295) NullPointerException creating service
proxy
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-2295.
------------------------------
Resolution: Fixed
Fix Version/s: 2.2.3
2.1.6
Added better error message
> NullPointerException creating service proxy
> -------------------------------------------
>
> Key: CXF-2295
> URL: https://issues.apache.org/jira/browse/CXF-2295
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.3, 2.2
> Reporter: Anne Diefenbach
> Fix For: 2.1.6, 2.2.3
>
> Attachments: broker.wsdl, TestCase.zip, wsnbroker.wsdl
>
>
> Upon service proxy creation, at
> org.oasis_open.docs.wsn.brw_2.NotificationBroker port = ss.getCxfBinding();
> I receive the following exception:
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
> INFO: Creating Service {http://servicemix.org/wsnotification}NotificationBroker from WSDL: file:resources/broker.wsdl
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:573)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:557)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:328)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:184)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:328)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:436)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:194)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299)
> at javax.xml.ws.Service.getPort(Service.java:40)
> at org.servicemix.wsnotification.NotificationBroker.getCxfBinding(NotificationBroker.java:63)
> at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:135)
> The issue appears to be caused because the WSDL relies on an imported WSDL to define the input messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2295) NullPointerException creating service
proxy
Posted by "Anne Diefenbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anne Diefenbach updated CXF-2295:
---------------------------------
Attachment: TestCase.zip
And here's a test case. Main class is org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server. In case it's needed, the broker is the one from the wsn-cxf-binding example from https://repository.apache.org/content/repositories/servicemix-staging-016/org/apache/servicemix/apache-servicemix/3.3.1/.
> NullPointerException creating service proxy
> -------------------------------------------
>
> Key: CXF-2295
> URL: https://issues.apache.org/jira/browse/CXF-2295
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.3, 2.2
> Reporter: Anne Diefenbach
> Attachments: broker.wsdl, TestCase.zip, wsnbroker.wsdl
>
>
> Upon service proxy creation, at
> org.oasis_open.docs.wsn.brw_2.NotificationBroker port = ss.getCxfBinding();
> I receive the following exception:
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
> INFO: Creating Service {http://servicemix.org/wsnotification}NotificationBroker from WSDL: file:resources/broker.wsdl
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation(WSDLServiceBuilder.java:573)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface(WSDLServiceBuilder.java:557)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:328)
> at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:184)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:328)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:436)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:194)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:164)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
> at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
> at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
> at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
> at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:434)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:312)
> at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:299)
> at javax.xml.ws.Service.getPort(Service.java:40)
> at org.servicemix.wsnotification.NotificationBroker.getCxfBinding(NotificationBroker.java:63)
> at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:135)
> The issue appears to be caused because the WSDL relies on an imported WSDL to define the input messages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.