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 aashish <aa...@yahoo.com> on 2011/01/28 19:20:02 UTC

[AXIS2] : Null Pointer Exception in Stub


hi all,
i get anull pointer exception at 
System.out.println("transport is 
"+_messageContext.getTransportOut().getSender().toString());
in my stub. (stub generated using Axis2  Code Generator plugin, by passing the 
WSDL)
and the error in System.Err is 
org.apache.axis2.AxisFault: The system cannot infer the transport

  
information from the 
 http://212.34.1.123:13000/Directory/services/ABCService URL.
[1/28/11 20:43:56:368 GMT+05:30] 00000021 SystemErr     R       at 
org.apache.axis2.description.ClientUtils.inferOutTransport 
(ClientUtils.java:82) 
[1/28/11 20:43:56:369 GMT+05:30] 00000021 SystemErr     R       at  
org.apache.axis2.client.OperationClient.prepareMessageCont 
ext(OperationClient.java:304) 
[1/28/11 20:43:56:369 GMT+05:30] 00000021 SystemErr     R       at 
org.apache.axis2.description.OutInAxisOperationClient.exec 
uteImpl(OutInAxisOperation.java:180) 
[1/28/11 20:43:56:369 GMT+05:30] 00000021 SystemErr     R       at 
org.apache.axis2.client.OperationClient.execute(OperationC 
lient.java:165) 


The transportOut is somehow being set to null.

However i can use the same stub to call the same service from another 
application.
Some related threads :
http://old.nabble.com/-jira--Created:-(AXIS2-4244)-NullPointerException-in-generated-Stub.-td22119479.html



Any ideas ?
Thanks in advance