Hi
I'm trying to return a fault message from a transformer component, but if I
put a fault on ME i get this error:
java.lang.Exception: javax.jbi.messaging.MessagingException: illegal
exchange status: done
        at
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:195)
        at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:375)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
        at
org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(SelectChannelConnector.java:511)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442).

This is the code of my transformer component:

public class MyTransformer extends TransformComponentSupport { 

        protected boolean transform(MessageExchange arg0, NormalizedMessage 
arg1,
                        NormalizedMessage arg2) throws Exception {
                        
            Fault faultMsg = arg0.createFault();
            faultMsg.setContent(new StringSource("Custom Error"));
            arg0.setFault(faultMsg);
            return false;
        }

I would like to clarify that my transformer component is invoked by an eip
pipeline. I tried to configure the eip for faultsTarget with same result.

Any suggestion?
thanks

-- 
View this message in context: 
http://www.nabble.com/Transformer-Component-Fault-tf4820374s12049.html#a13790728
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to