[ 
https://issues.apache.org/jira/browse/CAMEL-12035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michel Dambros Figueiredo updated CAMEL-12035:
----------------------------------------------
    Description: 
After executing the following code to generate a LastError message in the camel 
route attributes:

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 what we can see in 
MBeans->org.apache.camel->routes->MY_ROUTE_ID->Attributes->LastError is 
"Unavailable" 

It was supposed to show the exception error message.

With the mouse over the "Unavailable" message we can see 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]"

  was:
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]"


> Route attribute LastError is either Unavailable and 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 a LastError message in the 
> camel route attributes:
> 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 what we can see in 
> MBeans->org.apache.camel->routes->MY_ROUTE_ID->Attributes->LastError is 
> "Unavailable" 
> It was supposed to show the exception error message.
> With the mouse over the "Unavailable" message we can see 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