6 Replies Latest reply on May 26, 2006 5:19 AM by Martin Welss

    Exception: Failed to read payload

    Martin Welss Newbie

      I get this exception sometimes when the same instance of an ObjectMessage is delivered to the second or third topic subscriber and tries msg.getObject(). I am using messaging 1.0.1CR1 on jboss 4.0.4GA-Patch1 with ejb3 profile.
      Is there a workaround?

      Here is the stacktrace:

      2006-05-24 15:38:43,195 ERROR [STDERR] java.lang.RuntimeException: Failed to read payload
      2006-05-24 15:38:43,196 ERROR [STDERR] at org.jboss.messaging.core.message.MessageSupport.getPayload(MessageSupport.java:226)
      2006-05-24 15:38:43,196 ERROR [STDERR] at org.jboss.jms.message.JBossObjectMessage.getObject(JBossObjectMessage.java:137)

      Looking at the code, the payload seems to be serialized, but on the producer I set the delivery-mode to non-persistent, so why
      serialize anyway? It's all in one jboss, no cluster etc.