wood burning stoves 2.0*
The moose likes Web Services and the fly likes  Null Pointer Exception in Stub Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark " Null Pointer Exception in Stub" Watch " Null Pointer Exception in Stub" New topic
Author

Null Pointer Exception in Stub

K Srinivasan
Ranch Hand

Joined: Mar 08, 2010
Posts: 34
hi all,
i get a null 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



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
K Srinivasan
Ranch Hand

Joined: Mar 08, 2010
Posts: 34
the TransportURI in the file ClientUtils.java in axis-kernel-1.5 is null

 
wood burning stoves
 
subject: Null Pointer Exception in Stub
 
Similar Threads
Test Connection failed ( IBM Websphere 5.1 Express )
Getting ot of memory Error while running on websphere
jasper reports
JAI Exception running a JDK1.4 code in JDK1.3
Null Pointer exception while reading the property file in WAS-5