cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Paibir (JIRA)" <>
Subject [jira] Commented: (CXF-194) Fault doesn't work in xml binding
Date Wed, 01 Nov 2006 13:42:17 GMT
    [ ] 
Ajay Paibir commented on CXF-194:

 XMLBinding is not able to handle a RuntimeException thrown from the Implementor. Basically
it ends up in where it tries to find "getFaultInfo" method. If
the Exception does not have one a NoSuchMethodException is thrown . Thus ignoring the actuall
Exception thrown by implementor. Worse this new Fault (NoSuchMeethodException) gets wrapped
into multiple level of Fault. 

In case of User Specified Faults the XMLFaultOutInterceptor is not able to marshal the FaultInfo
object because the 
Class cls = mpi.getProperty(...) @ line 84 in is always null.
This needs to be changed to mpi.getTypeClass()  to get ti working.  This fixes the User Faults
but not RuntimeExceptions.

> Fault doesn't work in xml binding
> ---------------------------------
>                 Key: CXF-194
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-M1
>            Reporter: Freeman Fang
>             Fix For: 2.0-M1
> when I run hello_world_xml_wrapped sample, I get exception like
>      [java] Exception in thread "main" org.apache.cxf.binding.xml.XMLFault: org.apache.hello_world_xml_http.wrapped.PingMeFault:
PingMeFault raised by server     [java]     at org.apache.cxf.binding.xml.interceptor.XMLFaultInInterceptor.handleMessage(
>      [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
>      [java]     at org.apache.cxf.interceptor.AbstractFaultChainIntiatorObserver.onMessage(
>      [java]     at org.apache.cxf.binding.xml.interceptor.XMLMessageInInterceptor.handleMessage(
>      [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
>      [java]     at org.apache.cxf.endpoint.ClientImpl.onMessage(
>      [java]     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(
>      [java]     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doClose(
>      [java]     at
>      [java]     at org.apache.cxf.transport.http.HTTPConduit.close(
>      [java]     at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(
>      [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
>      [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(
>      [java]     at org.apache.cxf.jaxws.EndpointInvocationHandler.invokeSync(
>      [java]     at org.apache.cxf.jaxws.EndpointInvocationHandler.invoke(
>      [java]     at $Proxy34.pingMe(Unknown Source)
>      [java]     at demo.hw.client.Client.main(
>      [java] Java Result: 1
> seems Fault doesn't work now in xml binding. I guess someone change something occasionally
cause this problem since I remember it should be fine days before

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message