camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-6086) Unmarshal from ActiveMQ yields warning if message has been marshalled before enqueue and contains BigDecimal or BigInteger
Date Mon, 11 Nov 2013 11:57:18 GMT

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

Claus Ibsen resolved CAMEL-6086.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Future)
                   2.11.2
                   2.12.0

Marking as resolved as its fixed in 2.11.2 onwards.

> Unmarshal from ActiveMQ yields warning if message has been marshalled before enqueue
and contains BigDecimal or BigInteger
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6086
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6086
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-activemq
>    Affects Versions: 2.9.1, 2.10.3
>            Reporter: Ralf Steppacher
>            Priority: Minor
>             Fix For: 2.12.0, 2.11.2
>
>
> Using activemq-camel version 5.8.0 and starting with Camel version 2.9.1 unmarshalling
from ActiveMQ yields a warning if 
> - the exchange body is an object containing a java.math.BigInteger or BigDecimal or
> - the exchange body is an object containing a hierarchy of objects, one of which contains
a BigInteger or BigDecimal 
> and
> - the exchange body has been explicitely marshalled using Java serialization
> The warning:
> "WARN  ObjectHelper - Cannot find class: [B"
> Example route config:
> <camel:route id="writeToQueue">
> 	<camel:from uri="trigger" />
> 	<!-- Put bean with BigDecimal or BigInteger into exchange body. -->
> 	<camel:process ref="myProcessor" />
> 	<camel:convertBodyTo type="com.rs.TheBean"/>
> 	<camel:marshal ref="javaSerialization" />
> 	<camel:to ref="queueTo" />
> </camel:route>
> <camel:route id="receiveFromQueue">
> 	<!-- Yields warning. -->
> 	<camel:from uri="queueFrom" />
> 	<camel:unmarshal ref="javaSerialization" />
> 	<camel:convertBodyTo type="com.rs.TheBean"/>
> 	<camel:log message="Received message: ${in.body}" loggingLevel="INFO" logName="route:receiveFromQueue"
/>
> </camel:route>
> Despite the warning, un-marshalling the message works.
> I have not tried other versions of activemq-camel.
> ActiveMQ Server is version 5.8.0



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message