Can you try the 2.2.7-SNAPSHOTs? I fixed a very similar bug a couple weeks ago that had a very similar stack trace and symptom. Thus, this may already be fixed.
Dan On Tuesday 16 March 2010 6:40:23 am Enrico Boldrini wrote: > 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.initializeClass > Info(ReflectionServiceFactoryBean.java:721) at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperatio > n(JaxWsServiceFactoryBean.java:222) at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLO > perations(ReflectionServiceFactoryBean.java:674) at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperatio > ns(JaxWsServiceFactoryBean.java:258) at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFro > mWSDL(ReflectionServiceFactoryBean.java:424) at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServi > ceModel(ReflectionServiceFactoryBean.java:528) at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflecti > onServiceFactoryBean.java:278) at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFac > toryBean.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 -- Daniel Kulp dk...@apache.org http://dankulp.com/blog