users@jax-ws.java.net

NPE when using jax-ws generated client

From: Dan Stieglitz <dan_at_stieglitech.com>
Date: Fri, 2 Jun 2006 12:32:01 -0400

Hi,

I'm building an app using Netbeans 5, the latest jax-ws from cvs
(downloaded yesterday and imported as a netbeans library), and SJSAS
8.1 PE (bundled with Netbeans). I've installed the JWSDP 2.0 using
the installer on both the IDE and the app server.

I've successfully deployed a web service, and can talk to it using an
Oxygen XML SOAP client, generated from the WSDL that was deployed.
When I try to generate a JAX-WS client using the recommended
procedure (wsimport pointing to the WSDL), the code generated throws
the following error when run (see below).

I've debugged it through to the JAX-WS code, and it seems like the
client never gets to the server but catches this internally.

I've spent a number of hours trying to figure out what's going on...
any ideas?

Dan

Caught exception: java.lang.NullPointerException
javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException
         at
com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo
(ClientEncoderDecoder.java:84)
         at
com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo
(SOAPXMLDecoder.java:209)
         at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive
(SOAPMessageDispatcher.java:538)
         at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend
(SOAPMessageDispatcher.java:258)
         at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send
(SOAPMessageDispatcher.java:137)
         at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive
(SOAPMessageDispatcher.java:538)
         at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend
(SOAPMessageDispatcher.java:258)
         at
com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send
(SOAPMessageDispatcher.java:137)
         at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send
(DelegateBase.java:84)
         at
com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod
(EndpointIFInvocationHandler.java:172)
         at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke
(EndpointIFInvocationHandler.java:106)
         at $Proxy18.login(Unknown Source)
         at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send
(DelegateBase.java:84)
         at
com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod
(EndpointIFInvocationHandler.java:172)
         at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke
(EndpointIFInvocationHandler.java:106)
         at $Proxy18.login(Unknown Source)
         at com.mlb.val.test.WebServiceTest.testWebService
(WebServiceTest.java:117)
         at com.mlb.val.test.WebServiceTest.testWebService
(WebServiceTest.java:117)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)

...etc.