[
https://issues.apache.org/jira/browse/CAMEL-11670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16129203#comment-16129203
]
ASF GitHub Bot commented on CAMEL-11670:
----------------------------------------
GitHub user rajithapl opened a pull request:
https://github.com/apache/camel/pull/1895
CAMEL-11670:Dont use safe copy in Aggregator since aggregator needs o…
…riginal object from the Exchange
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rajithapl/camel CAMEL-11670_AggregatoryCopy
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1895.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1895
----
commit d35599f4ae25914e67eaab3ebf2206dc565d202f
Author: Rajithamol <[email protected]>
Date: 2017-08-16T18:21:17Z
CAMEL-11670:Dont use safe copy in Aggregator since aggregator needs
original object from the Exchange
----
> Camel Aggregator strategy Exchange- java.lang.ClassCastException -
> org.apache.camel.impl.DefaultMessage cannot be cast to
> org.apache.camel.component.jms.JmsMessage
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-11670
> URL: https://issues.apache.org/jira/browse/CAMEL-11670
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.18.0
> Reporter: Rajithamol Lakshmanan
>
> I am using camel-aggregator for aggregating JMS messages. When I upgraded the
> camel version from 2.15.6 to 2.18.0 I started getting ClassCastException in
> the aggregatorstrategy class.
> Error occurred during aggregation. Exchange[]. Caused by:
> [java.lang.ClassCastException - org.apache.camel.impl.DefaultMessage cannot
> be cast to org.apache.camel.component.jms.JmsMessage].
> I debugged and found that AggregatorProcessor calls
> ExchangeHelper.createCorrelatedCopy which copies the exchange harcoding the
> safeMode to be true.
> In 2.18.0 : Exchange copy = exchange.copy(true);
> In 2.15.6 : Exchange copy = exchange.copy();
> Because of this we are not getting the original JMS message-
> javax.jms.Message inside org.apache.camel.Message .
> Can we have an option to configure this deep copy option?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)