File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes NullPointerException while sending SOAP Message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "NullPointerException while sending SOAP Message" Watch "NullPointerException while sending SOAP Message" New topic
Author

NullPointerException while sending SOAP Message

Vineet Kanwal
Greenhorn

Joined: Jan 24, 2008
Posts: 1
hi,

Following is the code:
endpoint = new URL("http://loleqdveda02:11110/VLT/VaultProductService");

SOAPMessage response = connection.call(message, endpoint);

the URL is correct for the webservice and the same code is working on other server but failing with following exception onmy local weblogic server:

java.lang.NullPointerException
at weblogic.net.http.HttpURLConnection.setRequestProperty(Ljava/lang/String;Ljava/lang/String V(HttpURLConnection.java:639)
at weblogic.webservice.binding.http11.Http11ClientBinding.send(Ljavax/xml/rpc/handler/MessageContext V(Http11ClientBinding.java:392)
at weblogic.webservice.core.soap.SOAPConnectionImpl.call(Ljavax/xml/soap/SOAPMessage;Ljava/lang/Object Ljavax/xml/soap/SOAPMessage;(SOAPConnectionImpl.java:57)


I am not able to figure out the reason for the same. Please help.

Thanks.
 
wood burning stoves
 
subject: NullPointerException while sending SOAP Message
 
Similar Threads
Problem in root mode !!
HTTPS COnnection from Motorola i730
Javascript validation XML
Testing IBM MQ on BEA Weblogic Server
Error accessing application in Tomcat 5