Dear all,
I've got a null pointer exception instantiating a CXF client to connect
to my CXF service and using in both cases version 2.2.6. This is the
stacktrace:
java.lang.NullPointerException
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeClassInfo(ReflectionServiceFactoryBean.java:721)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:222)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:674)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServiceFactoryBean.java:258)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:424)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:528)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:278)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:178)
at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:411)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:296)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:291)
at javax.xml.ws.Service.getPort(Service.java:161)
It seems to happen because o = o.getUnwrappedOperation(); in method
initializeClassInfo returns null.
The problem disappear if using JAXWS-RI for the client, while continuing
to use CXF for the service.
Let me know if further information is needed, thanks
Enrico