Hi,

I am building service which, as far as I can see, is almost exactly the same
as the previous one I built, but suddenly I receive a NullPointerException
retrieving my binding:

16.06.2009 16:18:46
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)

I cannot figure out where this exception comes from. Google turns up a
somewhat similar bug, but it was fixed back in CXF 2.0.1. I use Fuse 2.1.3.1
and upon appearance of this exception also tried 2.2.0.0 (which is where
this stacktrace comes from).

Is this a bug, or did I go wrong somewhere?

Regards,

Anne

http://www.nabble.com/file/p24055861/NotificationConsumer_NotificationConsumerPort_Server.java
NotificationConsumer_NotificationConsumerPort_Server.java 
http://www.nabble.com/file/p24055861/NotificationBroker.java
NotificationBroker.java 
http://www.nabble.com/file/p24055861/NotificationConsumer.wsdl
NotificationConsumer.wsdl 
-- 
View this message in context: 
http://www.nabble.com/NullPointerException-creating-service-tp24055861p24055861.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to