javax.jms.MessageFormatException

BHansard-OwnAfhDu3djtGJWAWb0rHTP0h3Fy0YSOAL8bYrjMMd8@public.gmane.org
Newsgroups gmane.comp.java.openjms.user
Message-ID <OFCC444FD1.BA02D3AB-ON85257031.00535D47-85257031.005413F2@powersystems.rockwell.com>
Hello all,

I have a quick question.  I am running OpenJMS 0.7.6.1 on a RedHat
Enterprise Linux Server w Java 1.5.

I have a JavaBean defined as:

public class XyzBean extends Object implements Serializable

I place the Bean on a Queue using the

ObjectMessage msg = session.createObjectMessage(xyzBean );

I retrieve the message with:

        QueueReceiver reciever = session.createReceiver(queue, selector);
        ObjectMessage message = (ObjectMessage) reciever.receive(2000);
        XyzBean xyzBean = (XyzBean) message.getObject();

However this will throw a javax.jms.MessageFormatException: package.Xyzbean
error

I run the same code on a Windows 2000 Server running Java 1.5 and OpenJMS
0.7.6.1 and it works without a problem.

Does anyone know what might be causing this issue on the Linux Machine?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.