aspose file tools*
The moose likes Web Services and the fly likes Null Pointer Exception while creating SOAPFault Exception class's Detail object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Null Pointer Exception while creating SOAPFault Exception class Watch "Null Pointer Exception while creating SOAPFault Exception class New topic
Author

Null Pointer Exception while creating SOAPFault Exception class's Detail object

Shivashankar Gurumurthy
Greenhorn

Joined: Feb 26, 2005
Posts: 12
I want to create a SOAPFaultException of my own and throw it. I had set the code,string and actor attributes into the new class without a problem. but when i am trying to create a Detail object i am getting a null pointer exception from the server.

I am trying to do all these things in WSAD.

Yesterday i saw a page in developer works in which people were having problem in creating a detail entry. But in my case creating a detail object itself is throwing a null pointer

For your information the code is well checked and i am not the cause for that

Please advise.

the code ......

javax.xml.soap.SOAPFactory soapFactory = javax.xml.soap.SOAPFactory.newInstance();

javax.xml.soap.Detail detail = javax.xml.soap.soapFactory.createDetail();
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
Hello Shankar-

On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.

As to your question, is it any different than this one you posted earlier?
[ March 14, 2006: Message edited by: Ulf Dittmer ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Null Pointer Exception while creating SOAPFault Exception class's Detail object