Hi Dan On debugging I could find the issue could be with JaxWsServiceConfiguration#getDefaultLocalName() method. The paramName is determined as *paramName = prefix + curSize* where curSize will be the total number of parameters. So for argument0 the paramName would be determined as *arg2 *instead of arg0. The fix to determine the correct paramName could be paramName = prefix + paramNumber
Do correct me If iam wrong. -Bharath On 5/23/07, Dan Diephouse <[EMAIL PROTECTED]> wrote:
Hiya Bharath, It'd be great if you could file a JIRA for this. We noticed this with a couple of the TCK tests as well I believe, and we're in the process of resolving it. I don't know exactly whats going on, but we are working on fixing it. Thanks, - Dan On 5/22/07, Bharath Ganesh <[EMAIL PROTECTED]> wrote: > > Hi Dan > > We are tyring to move to CXF RC published recently. Earlier we were > working with a snapshot published on 27th Feb, which was fine for basic > deployments. > But on builds after 27 Feb, we are facing a strange NPE from > ReflectionServiceFactoryBean after we do an Endpoint.publish(). > As you had asked I have attached the wsdl and POJO. The same app is > working fine on the 27th Feb snapshot. > > The exception we get is > java.lang.NullPointerException > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeParameter > (Reflectio > nServiceFactoryBean.java:747) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeParameter(JaxWsServiceFact > oryBean.java:365) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeClassInfo > (JaxWsServiceFact > oryBean.java:344) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsService > FactoryBean.java:180) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations > (Refl > ectionServiceFactoryBean.java:301) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServic > eFactoryBean.java:189) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL > (Reflecti > onServiceFactoryBean.java:194) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(Reflec > tionServiceFactoryBean.java:244) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create > (ReflectionServiceFacto > ryBean.java:135) > at > org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint ( > AbstractEndpointFactory.ja > va:82) > at org.apache.cxf.frontend.ServerFactoryBean.create( > ServerFactoryBean.java:84) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java > :280) > at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java > :178) > at > com.pramati.ws.j2ee.cxf.deploy.CXFPublisher.publishAndUpdateServiceLocs( > CXFPublisher.java > :365) > > > Wish you can be of some help. > > Thanks > Bharath > > -- Dan Diephouse Envoi Solutions http://envoisolutions.com | http://netzooid.com/blog
