You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by James Chiu <jc...@responsys.com> on 2005/04/27 00:30:45 UTC

RemoteException: java.lang.NullPointerException

Hi,

I received a RemoteException: java.lang.NullPointerException after my client
makes a WS method call. I used the WSDL2Java utility to create client stub
classes. The server side is hosted by Microsoft IIS. I turned on the
debugger and found where the exception is thrown as following:

      {http://xml.apache.org/axis/}stackTrace:
java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:396)
      at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI
mpl.java:395)
      at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:246)
      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
      at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
      at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675
)
      at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
      at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
      at org.apache.axis.client.Call.invoke(Call.java:2553)
      at org.apache.axis.client.Call.invoke(Call.java:2248)
      at org.apache.axis.client.Call.invoke(Call.java:2171)
      at org.apache.axis.client.Call.invoke(Call.java:1691)
      at
com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report
ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703)
      at
responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54)
      at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116)

I also checked the XML sent and the XML received. The debugging message
shows that the HTTP content of the XML sent is null and the XML received is
nothing as following:

- XML sent:
- ---------------------------------------------------
- ---------------------------------------------------
- POST /ReportServer/ReportService.asmx HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: testshabd
Cache-Control: no-cache
Pragma: no-cache
SOAPAction:
"http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/
ListSecureMethods"
Content-Length: 373

Null

.........................

XML received:
------------------------------------------------

Do you know what could be a problem?

Thanks a lot,

James



Re: RemoteException: java.lang.NullPointerException

Posted by Dominik <co...@o2.pl>.
Are you using Java 1.5 and Axis 1.1 ?

----- Original Message ----- 
From: "James Chiu" <jc...@responsys.com>
To: <ax...@ws.apache.org>
Sent: Wednesday, April 27, 2005 12:30 AM
Subject: RemoteException: java.lang.NullPointerException


Hi,

I received a RemoteException: java.lang.NullPointerException after my client
makes a WS method call. I used the WSDL2Java utility to create client stub
classes. The server side is hosted by Microsoft IIS. I turned on the
debugger and found where the exception is thrown as following:

{http://xml.apache.org/axis/}stackTrace:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI
mpl.java:395)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:246)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675
)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report
ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703)
at
responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54)
at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116)