Michel Dambros Figueiredo created CAMEL-12035:
-------------------------------------------------

             Summary: Route attribute LastError is either Unavailable or shown 
as [object Object]
                 Key: CAMEL-12035
                 URL: https://issues.apache.org/jira/browse/CAMEL-12035
             Project: Camel
          Issue Type: Bug
          Components: build system
    Affects Versions: 2.20.0
         Environment: Apache Tomcat/8.5.20
Apache Camel 2.20.0
Hawtio 1.5.6
Spring 4.3.11
            Reporter: Michel Dambros Figueiredo
            Priority: Critical


After executing the following code to generate an LastError message:

DefaultRouteError.set( exchange.getContext(), 
exchange.getUnitOfWork().getRouteContext().getRoute().getId(), 
RouteError.Phase.SUSPEND, exchange.getProperty(Exchange.EXCEPTION_CAUGHT, 
Throwable.class) );

The code is processed without errors, but in jConsole all we can see in 
MBeans->org.apache.camel->routes->MY_ROUTE_ID->Attributes->LastError is 
"Unavailable"

With the mouse over the "Unavailable" message there is the following exception 
route cause: 
java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
java.io.WriteAbortedException:writing aborted; 
java.io.NotSerializableException: org.apache.camel.impl.DefaultRouteError


In Hawtio what we can see in Camel->Camal 
Contexts->MY_CAMEL_CONTEXT->Routes->MY_ROUTE_ID->Last error is "[object Object]"



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to