1 Reply Latest reply: Mar 23, 2011 10:28 AM by Nigeldeakin-Oracle RSS

    [C4005]: Get properties from packet failed killing my sessions

    849719
      I have a broker in a state where 6 messages are delivered which "kill" the first 6 sessions listening on a particular queue (round-robin delivery sorta situation)

      These exceptions are logged only to stderr and no indication is given to my program about them other than the affected sessions never receive another message again, others do.

      When the broker or consumer service is restarted, it happens again.

      If I start the broker with a -reset messages then the problem goes away. I saved the entire broker var folder to try to find a work around to this.

      This is OpenMQ 4.5B29

      I'll include the stack traces below, anyone seen something like this or have suggestions on how to deal with this without resorting to reset of the broker?


      Could not parse properties java.io.UTFDataFormatException: malformed input around byte 11
      Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
      WARNING: [I500]: Caught JVM Exception: java.lang.NullPointerException
      java.io.UTFDataFormatException: malformed input around byte 11
           at java.io.DataInputStream.readUTF(Unknown Source)
           at java.io.DataInputStream.readUTF(Unknown Source)
           at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:178)
           at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
           at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
           at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
           at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
           at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
           at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
           at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
           at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
           at java.lang.Thread.run(Unknown Source)
      Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
      WARNING: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
      com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
           at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
           at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
           at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
           at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
           at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
           at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
           at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
           at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NullPointerException
           at java.util.Hashtable.put(Unknown Source)
           at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:193)
           at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
           at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
           at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
           at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
           ... 5 more
      Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
      WARNING: [I500]: Caught JVM Exception: java.io.UTFDataFormatException: malformed input around byte 11
      Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
      WARNING: [C4005]: Get properties from packet failed. - cause: java.io.UTFDataFormatException: malformed input around byte 11
      com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.io.UTFDataFormatException: malformed input around byte 11
           at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
           at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
           at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
           at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
           at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
           at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
           at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
           at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.UTFDataFormatException: malformed input around byte 11
           at java.io.DataInputStream.readUTF(Unknown Source)
           at java.io.DataInputStream.readUTF(Unknown Source)
           at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:178)
           at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
           at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
           at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
           at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
           ... 5 more
      Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
      WARNING: [I500]: Caught JVM Exception: java.lang.NullPointerException
      Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
      WARNING: [I500]: Caught JVM Exception: java.io.StreamCorruptedException: invalid type code: 00
      Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
      WARNING: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
      com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
           at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
           at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
           at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
           at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
           at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
           at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
           at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
           at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NullPointerException
           at java.util.Hashtable.put(Unknown Source)
           at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:193)
           at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
           at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
           at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
           at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
           ... 5 more