You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Michal Siemaszko <mi...@vnomic.com> on 2017/01/13 17:33:23 UTC

RabbitMQ Component ClassNotFoundException issue when deserializing custom types

Hi,

Working on upgarding legacy application from ActiveMQ to RabbitMQ. Tech stack consists of Spring (Spring OSGI migrated to Aries Blueprint as part of this upgrade), CXF, Camel, RabbitMQ; integration of RabbitMQ with Camel via RabbitMQ Component (http://camel.apache.org/rabbitmq.html), and few others, all embeded in Equinox OSGi container, with Jetty.

We had this resolved for about two weeks then suddenly this stopped working - i.e. deserialization of messages works with Strings / built-in types, however utilizing custom types (our classes) fails with ClassNotFoundException at `org.apache.camel.component.rabbitmq.RabbitMQMessageConverter.deserializeBody`. Full stack attached.

Your help with clues/pointers as to why RabbitMQ would not be able to see these classes - if bundles where they're contained export these packages as they were previously when this worked - is much appreciated.

Kind regards,
Michal Siemaszko

Re: RabbitMQ Component ClassNotFoundException issue when deserializing custom types

Posted by Michal Siemaszko <mi...@vnomic.com>.
Hi,

Follow up on question I posted yesterday. I solved it last night, but for the record, in case someone else is fighting with such - solution is to add fragment importing packages where custom types are contained, attached to 'org.apache.camel.camel-rabbitmq' host bundle.

This is similar to https://issues.apache.org/jira/browse/AMQ-2392

Regards,
Michal


________________________________
From: Michal Siemaszko
Sent: Friday, January 13, 2017 6:33:23 PM
To: users@camel.apache.org
Subject: RabbitMQ Component ClassNotFoundException issue when deserializing custom types


Hi,

Working on upgarding legacy application from ActiveMQ to RabbitMQ. Tech stack consists of Spring (Spring OSGI migrated to Aries Blueprint as part of this upgrade), CXF, Camel, RabbitMQ; integration of RabbitMQ with Camel via RabbitMQ Component (http://camel.apache.org/rabbitmq.html), and few others, all embeded in Equinox OSGi container, with Jetty.

We had this resolved for about two weeks then suddenly this stopped working - i.e. deserialization of messages works with Strings / built-in types, however utilizing custom types (our classes) fails with ClassNotFoundException at `org.apache.camel.component.rabbitmq.RabbitMQMessageConverter.deserializeBody`. Full stack attached.

Your help with clues/pointers as to why RabbitMQ would not be able to see these classes - if bundles where they're contained export these packages as they were previously when this worked - is much appreciated.

Kind regards,
Michal Siemaszko