I am throwing my service specific exception at the server side(which extends 
Exception and not Remote or SoapFaultException) but at the client side, axis 
could not handle this properly and throws null pointer exception.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS-2631
                 URL: https://issues.apache.org/jira/browse/AXIS-2631
             Project: Axis
          Issue Type: Bug
          Components: Serialization/Deserialization
         Environment: Weblogic 8.1 SP5 , Axis 1.2.
            Reporter: P.L.ChenthilRaj


I am throwing my service specific exception at the server side(which extends 
Exception and not Remote or SoapFaultException) but at the client side, axis 
could not handle this properly and throws null pointer exception.

Hello, I've searched the list for answers to this issue and I haven't
been able to find any satisfactory ones.

I'm having trouble getting "Service Specific Exceptions" as defined in the 
JAX-RPC specification to work properly.  If I define a custom exception and 
have it extend RemoteException, then it works properly.However, if it simply 
extends Exception, then I end up with an AxisFault in my client, rather than an 
instance of the thrown exception.

Herewith I am pasting the exception I am getting at the client side..

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.NullPointerException
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
        at org.apache.axis.client.Call.invokeEngine(Call.java:2797)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at 
dms_security.DmsSecurityPortStub.deleteDept(DmsSecurityPortStub.java:2505)
        at TestSecurityService.main(TestSecurityService.java:124)

        {http://xml.apache.org/axis/}hostname:ALK3WKS2A

java.lang.NullPointerException
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.client.Call.invoke(Call.java:2427)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at 
dms_security.DmsSecurityPortStub.deleteDept(DmsSecurityPortStub.java:2505)
        at TestSecurityService.main(TestSecurityService.java:124)
Caused by: java.lang.NullPointerException
        at org.apache.axis.client.Call.invokeEngine(Call.java:2797)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        ... 4 more
Exception = ; nested exception is: 
        java.lang.NullPointerException



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to