Hi All,

I've observe this behavior too. If service is returing a
NullPointerException as checked or unchecked, the soap fault reason comes as
"unknown", is this the norm way of handling NPE of service.

Thank you,

Saminda



On 7/22/07, Eran Chinthaka <[EMAIL PROTECTED]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ecker,

First it could have been better if you sent this mail to users list.

Anyway, can you send us the request messages from Axis2 (whatever the
succesfull version) and from SOAP client? You might already know that
you can intercept SOAP messages using a tool like tcpmon.

Chinthaka

Ecker Severin wrote:
> Hi,
>
> I have the following setup:
> Tomcat 5.5, axis2 (versions 1.1.1, 1.2 and snapshot), java 1.6.0_02
> (which was used for the WS I've written and is used to run tomcat)
>
> The webservice exposes a method with a parameter (MethodRequest). Now
> I'm facing the following problem:
>
> The request is as simple as this:
>
> <soap:Envelope
>       xmlns:soap="http://www.w3.org/2003/05/soap-envelope";
>       xmlns:ns="http://my.org/WS/types/1.0";>
>    <soap:Header/>
>    <soap:Body>
>       <ns:MethodRequest/>
>    </soap:Body>
> </soap:Envelope>
>
> Using the sendReceive method of the ServiceClient class (in the axis2
> lib) the method invocation works just fine.
>
> BUT using a soap client (such as SOAPui) I get different kinds of error
> responses depending on the version of axis2 that I'm using
>
> Errors:
>
> Axis2 1.1.1:
>
> <soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>    <soapenv:Header/>
>    <soapenv:Body>
>       <soapenv:Fault>
>          <soapenv:Code>
>             <soapenv:Value>soapenv:Sender</soapenv:Value>
>          </soapenv:Code>
>          <soapenv:Reason>
>             <soapenv:Text xml:lang="en-US">null; nested exception is:
>       java.lang.NullPointerException</soapenv:Text>
>          </soapenv:Reason>
>          <soapenv:Detail/>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>
>
>
> Axis2 1.2:
>
> <soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>    <soapenv:Body>
>       <soapenv:Fault>
>          <soapenv:Code>
>             <soapenv:Value>soapenv:Sender</soapenv:Value>
>          </soapenv:Code>
>          <soapenv:Reason>
>             <soapenv:Text xml:lang="en-US">unknown</soapenv:Text>
>          </soapenv:Reason>
>          <soapenv:Detail/>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>
>
>
> Axis2 snapshot:
>
> <soapenv:Envelope
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>    <soapenv:Body>
>       <soapenv:Fault>
>          <soapenv:Code>
>             <soapenv:Value>soapenv:Sender</soapenv:Value>
>          </soapenv:Code>
>          <soapenv:Reason>
>             <soapenv:Text
> xml:lang="en-US">org.apache.axis2.AxisFault.makeFault(Ljava/lang/Excepti
> on;)Lorg/apache/axis2/AxisFault;</soapenv:Text>
>          </soapenv:Reason>
>          <soapenv:Detail/>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>
>
>
> Also the TRACE output of axis2 does not give me ANY clue about what's
> going on (I have the traces here, but before bloating the post with a
> huge logfile I'll just wait and see if someone can shed some light on
> what's going on) What I can tell is that my service implementation never
> receives the method invocation request but the axis/soap handling
> mechanisms throw the exception beforehand. (oh and yes it's SOAP 1.2)
>
> My thanks in advance!
>
> Cheers,
> severin
>
>
> -------------
> Severin Ecker
> Business Unit Software Systems
> Smart Systems Division
> Austrian Research Centers GmbH - ARC
> 2444 Seibersdorf
> T: + 43 (0) 50 550 - 3122
> M: + 43 (0) 664 60780 3122
> F: + 43 (0) 50 550 - 2813
> mailto:[EMAIL PROTECTED]
> www.smart-systems.at
> HG Wien - FN 115980i - ATU14703506
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGo5NDjON2uBzUhh8RAjw0AKCHSyYN5SN1XyeDuuCXwbubBOUe1ACfSv2P
NRUmvnCYqlDqFVCmCphYKyc=
=EDo1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Saminda Abeyruwan

Software Engineer
WSO2 Inc. - www.wso2.org

Reply via email to