the TransportURI in the file ClientUtils.java in axis-kernel-1.5 is null ie:String transportURI = (String) msgctx.getProperty(Constants.Configuration.TRANSPORT_URL);
________________________________ From: aashish <aashish...@yahoo.com> To: java-user@axis.apache.org Sent: Fri, 28 January, 2011 11:50:02 PM Subject: [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