XFire

Dynamic Client throws NPE when processing fault detail

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1
  • Component/s: Core
  • Labels:
    None
  • Environment:
    Sun JDK 1.5
  • Number of attachments :
    0

Description

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)

Activity

Hide
Dan Diephouse added a comment -

This is fixed in our 1.1 release. Thanks.

Show
Dan Diephouse added a comment - This is fixed in our 1.1 release. Thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: