EOFException and ActiveMQMapMessage with null properties
--------------------------------------------------------

                 Key: AMQ-2860
                 URL: https://issues.apache.org/activemq/browse/AMQ-2860
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.3.2
         Environment: Linux
            Reporter: Leonid Ilyevsky


I am getting an error once in a while (see the log below).
I have an impression that the EOFException is caused by the fact that the 
message has "properties = null". This looks like corrupt message. My sender 
sends messages of the ActiveMQMapMessage type and they all have some properties.
This happens to a small number of messages (compare to overall traffic), but 
very consistently. I handle the exception, but the information is lost.

[2010-08-04 00:01:53.810] ERROR  Thread-36                    
com.moon.data.rtfeed.client.ClientSubscription                    Problem 
reading message ActiveMQMapMessage {commandId = 2797499, responseRequired = 
true, messageId = 
ID:mcny9.mooncapital.corp-55291-1280869129156-2:1:1:1:2797495, 
originalDestination = null, originalTransactionId = null, producerId = 
ID:mcny9.mooncapital.corp-55291-1280869129156-2:1:1:1, destination = 
topic://MKTDATA, transactionId = null, expiration = 0, timestamp = 
1280894513809, arrival = 0, brokerInTime = 1280894513809, brokerOutTime = 
1280894513809, correlationId = null, replyTo = null, persistent = true, type = 
null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, 
compressed = false, userID = null, content = 
org.apache.activemq.util.byteseque...@6f539d49, marshalledProperties = 
org.apache.activemq.util.byteseque...@5a7b5cb8, dataStructure = null, 
redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties = true, 
readOnlyBody = true, droppable = false} ActiveMQMapMessage{ theTable = {} } 
javax.jms.JMSException: java.io.EOFException
        at 
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
        at 
org.apache.activemq.command.ActiveMQMessage.propertyExists(ActiveMQMessage.java:274)
        at 
com.moon.data.rtfeed.client.ClientSubscription$DataTransformer.onMessage(ClientSubscription.java:463)
        at 
com.moon.data.rtfeed.jms.JmsReceiver$MessageDispatcher.run(JmsReceiver.java:71)
Caused by: java.io.EOFException: null
        at java.io.DataInputStream.readInt(DataInputStream.java:375)
        at 
org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:83)
        at 
org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:73)
        at 
org.apache.activemq.command.Message.unmarsallProperties(Message.java:189)
        at org.apache.activemq.command.Message.getProperties(Message.java:162)
        at 
org.apache.activemq.command.ActiveMQMessage.propertyExists(ActiveMQMessage.java:272)
        ... 2 common frames omitted


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to