• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RE: Receiveing ObjectMessage in JMS

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I want to develop message layer for application to exchange text and serialized object using JMS. The application is working well when TextMessage is passed but throw exception when object message is passed.
My code is :
try {
correlationID = mess.getJMSCorrelationID();
System.out.println(LID +" correlationID = "+correlationID);
if(mess instanceof ObjectMessage) {
oMessages = (ObjectMessage) mess;
System.out.println(LID + "mess instanceof ObjectMessage");
}
r16 = (R16) oMessages.getObject();//fail here
} catch(JMSException jmse){
jmse.printStackTrace();
Logger.debug( LID , jmse );
}

And the exception is :
javax.jms.MessageFormatException: Error in Deserializing Object Message.Class not found

Please share your experience with me
Thanks in Advance
[ February 11, 2004: Message edited by: Syed Saifuddin ]
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your class R16 serializable ?
 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
R16 is Serializable than what to do
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To me, this

avax.jms.MessageFormatException: Error in Deserializing Object Message.Class not found

says that your receiving program does not have access to the class definition.
Does it really say Object Message.class not found ? with a space between Object and Message?
Bill
 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
William Brogden you guess the right problem but please give the solution
thankyou
 
reply
    Bookmark Topic Watch Topic
  • New Topic