You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by frachel <fr...@therachels.net> on 2011/11/16 20:13:48 UTC

Viewing the contents of a message?

Our applications puts a message on a Queue - initially using the Web Console
when I clicked on the message to view it, i got a ClassNotFound exception
(couldn't find the serialized class that the message was). I added the
appropriate JAR's to the ClassPath (edited wrapper.conf), and I no longer
get the error - but all I get is the name of the class with some signature
characters after it. The class we post is called "ExecuteCycleReply". This
is what I see in the web console when I click on a message:

org.foinsure.types.messages.ExecuteCycleReply@4226c7da

Its a step beyond ClassNotFound ExecuteCycleReply, but not very useful.. is
there a way to see the actual contents?

Thanks.

--
View this message in context: http://activemq.2283324.n4.nabble.com/Viewing-the-contents-of-a-message-tp4077536p4077536.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply:Viewing the contents of a message?

Posted by SuoNayi <su...@163.com>.
Hi Frank,Adding the appropriate jar to the lib directory of AMQ works well  so there is no need to modify wrapper.conf.
I guess the class named ExecuteCycleReply should override the method named toString to display some more meaning output.




At 2011-11-17 03:13:48,frachel <fr...@therachels.net> wrote:
>Our applications puts a message on a Queue - initially using the Web Console
>when I clicked on the message to view it, i got a ClassNotFound exception
>(couldn't find the serialized class that the message was). I added the
>appropriate JAR's to the ClassPath (edited wrapper.conf), and I no longer
>get the error - but all I get is the name of the class with some signature
>characters after it. The class we post is called "ExecuteCycleReply". This
>is what I see in the web console when I click on a message:
>
>org.foinsure.types.messages.ExecuteCycleReply@4226c7da
>
>Its a step beyond ClassNotFound ExecuteCycleReply, but not very useful.. is
>there a way to see the actual contents?
>
>Thanks.
>
>--
>View this message in context: http://activemq.2283324.n4.nabble.com/Viewing-the-contents-of-a-message-tp4077536p4077536.html
>Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Viewing the contents of a message?

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Nov 16, 2011 at 8:13 PM, frachel <fr...@therachels.net> wrote:
> Our applications puts a message on a Queue - initially using the Web Console
> when I clicked on the message to view it, i got a ClassNotFound exception
> (couldn't find the serialized class that the message was). I added the
> appropriate JAR's to the ClassPath (edited wrapper.conf), and I no longer
> get the error - but all I get is the name of the class with some signature
> characters after it. The class we post is called "ExecuteCycleReply". This
> is what I see in the web console when I click on a message:
>
> org.foinsure.types.messages.ExecuteCycleReply@4226c7da
>

It looks like a .toString() on the object. Maybe you can implement a
toString() method in the ExecuteCycleReply class and output some
details you want to see.

> Its a step beyond ClassNotFound ExecuteCycleReply, but not very useful.. is
> there a way to see the actual contents?
>
> Thanks.
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Viewing-the-contents-of-a-message-tp4077536p4077536.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/