[ http://jira.codehaus.org/browse/XFIRE-403?page=all ]
     
Dan Diephouse closed XFIRE-403:
-------------------------------

     Resolution: Fixed
    Fix Version: 1.1

This is fixed in our 1.1 release. Thanks.

> Dynamic Client throws NPE when processing fault detail
> ------------------------------------------------------
>
>          Key: XFIRE-403
>          URL: http://jira.codehaus.org/browse/XFIRE-403
>      Project: XFire
>         Type: Bug

>   Components: Core
>  Environment: Sun JDK 1.5
>     Reporter: Brice Ruth
>     Assignee: Dan Diephouse
>      Fix For: 1.1

>
>
> I'm using the dynamic client to test a simple service method that throws an 
> Exception ( testing Faults ). However, the dynamic client throws a 
> NullPointerException in ClientFaultConverter.processFaultDetail(). Here's 
> what my method looks like:
>     @WebMethod
>     public String throwFault() throws SimpleException {
>         throw new SimpleException("An expected error occured.");
>     }
> SimpleException extends Exception
> Here's what my test client looks like:
>             client.invoke("throwFault", null);
> Here's the wsdl:operation:
> <wsdl:operation name="throwFault">
> <wsdl:input message="tns:throwFaultRequest" name="throwFaultRequest"/>
> <wsdl:output message="tns:throwFaultResponse" name="throwFaultResponse"/>
> <wsdl:fault message="tns:SimpleException" name="SimpleException"/>
> </wsdl:operation>
> And here's the full XFire stacktrace:
> 13:25:10,900 [main] ERROR Jsr181Test : Exception in testThrowFault()
> java.lang.NullPointerException
>     at org.codehaus.xfire.client.ClientFaultConverter.processFaultDetail 
> (ClientFaultConverter.java:56)
>     at 
> org.codehaus.xfire.client.ClientFaultConverter.invoke(ClientFaultConverter.java:32)
>     at 
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:98)
>     at org.codehaus.xfire.client.Client.onReceive (Client.java:376)
>     at 
> org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:179)
>     at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:82)
>     at org.codehaus.xfire.handler.OutMessageSender.invoke 
> (OutMessageSender.java:26)
>     at 
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:98)
>     at org.codehaus.xfire.client.Client.invoke(Client.java:263)
>     at org.codehaus.xfire.client.Client.invoke (Client.java:293)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to