ClassCastException with TextMessage

  • Emmanuel Bourg

    Emmanuel Bourg - 2002-10-18

    I created a TextMessage with UberMQ 1.0.2 and got a ClassCastException. It seems the setStandardProperty() method in the class MessageDatagram tries to cast the String into a byte[].

    TextMessage message = session.createTextMessage();

    Exception in thread "main" java.lang.ClassCastException
            at com.ubermq.jms.server.datagram.impl.MessageDatagram.setStandardProperty(
            at com.ubermq.jms.client.impl.LocalMessage.setBody(
            at com.ubermq.jms.client.msg.LocalTextMessage.setText(

    • Jimmy P

      Jimmy P - 2002-10-18

      yikes. that is another bug i've fixed in the mainline 1.1 branch.

      i'll see if i can merge back easily and put another patch out.

      sorry about that

    • Jimmy P

      Jimmy P - 2002-10-21

      OK, there's a 1.0.3 release up now, containing some (more) fixes from the 1.1 mainline.

      let me know if it works for you, thanks!


      • Emmanuel Bourg

        Emmanuel Bourg - 2002-10-21

        I just tested with a fresh CVS checkout and it worked fine. I noticed the exec() method in the MessageServer class is now protected, so i guess the prefered way to start UberMQ is to use only something like new Thread(ms).start(); ?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks