axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aashish <aashish...@yahoo.com>
Subject [AXIS2] : Null Pointer Exception in Stub
Date Fri, 28 Jan 2011 18:20:02 GMT


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


Mime
View raw message