axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tejesh Shetty" <shettytej...@gmail.com>
Subject intermittent NullPointerException
Date Tue, 09 Sep 2008 19:09:55 GMT
Hi,

I am using Axis 1.4 with Java 1.6, and my code is calling couple of
external web service. The client classes were generated using
wsdl2java. Initially the calls to these services were single threaded
(at any time only one thread was calling a method on a specific
service (one thread per service)). Recently calling the service
methods were multi-threaded so the whole operation would get done
faster. After doing that we started seeing the following error. I am
pretty sure its not the service itself that cannot handle the multiple
requests. I ve verified that service is able to handle multiple
requests. After doing some debugging looks like something goes wrong
during the request build up itself.

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
	{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
	at org.xml.sax.helpers.AttributesImpl.getIndex(AttributesImpl.java:203)
	at org.apache.axis.message.MessageElement.setAttribute(MessageElement.java:1001)
	at org.apache.axis.message.SOAPHeaderElement.outputImpl(SOAPHeaderElement.java:240)
	at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
	at org.apache.axis.message.MessageElement.outputImpl(MessageElement.java:1256)
	at org.apache.axis.message.SOAPHeaderElement.outputImpl(SOAPHeaderElement.java:250)
	at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
	at org.apache.axis.message.SOAPHeader.outputImpl(SOAPHeader.java:328)
	at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:476)
	at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
	at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
	at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
	at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
	at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
	at org.apache.axis.Message.getContentLength(Message.java:510)
	at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)

java.lang.NullPointerException
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
	at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
	at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
	at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:229)
	at org.apache.axis.Message.getContentLength(Message.java:510)
	at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:371)
	at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
	at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
	at org.apache.axis.client.Call.invoke(Call.java:2767)
	at org.apache.axis.client.Call.invoke(Call.java:2443)
	at org.apache.axis.client.Call.invoke(Call.java:2366)
	at org.apache.axis.client.Call.invoke(Call.java:1812)

Please advise.

Thank you.
Tejesh.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message