• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Cannot convert DataHandler to JMS mesage  RSS feed

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using ActiveMQ for messaging and Mule 2.0.2 as ESB.
As a normal flow if I transfer a string it will access web service and place the string in messaging queue. Mule will read the string automatically and transfers the data further for processing.

If I pass a DataHandler object (to transfer a file) using web service. It says "Cannot convert object [javax.activation.DataHandler@8edd79] to JMS message", even though I am converting it to JMS message.

Here is the web service method which does the conversion,



queueSender.sendMessage(jmsMsg); will be mapped to the following method


And sometimes I get the following error message.


Please look into the error and suggest some solution.
 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give some solution for this problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!