It is not returning an ArrayList but instead array[] of java objects.
These client classes were generated using wsdl2java so I dont really
control much of it. I did verified that its not doing any
registerTypeMapping but again its also not returning ArrayList.

Again this is a intermittent problem and doesnt throw the exception
every time i run it.

Please advise.
Thanks.


> sounds as if you are returning an ArrayList<BR>

> so you'll need to associate the ArrayList java type to your SOAP_ARRAY 
> datatype via<BR>
> call.registerTypeMapping(ArrayList.class, XMLType.SOAP_ARRAY, new 
> ArraySerializerFactory(), new ArrayDeserializerFactory());<BR>

> then the call with a cast to ArrayList should work..<BR>
> ArrayList results = (ArrayList)call.invoke(...);<BR>

> If this is not the case please supply your wsdl so we can determine 
> parameters<BR>
> HTH<BR>
> Martin <BR>
> ______________________________________________ <BR>
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and Sender 
> does > not endorse distribution to any party other than intended recipient. 
> Sender does not necessarily endorse content contained within this 
> transmission.


> Date: Tue, 9 Sep 2008 15:09:55 -0400
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: intermittent NullPointerException
>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to