7 Replies Latest reply on May 27, 2010 7:32 AM by Tim Fox

    min-large-message-size not being observed

    Terry Paterson Newbie

      we have set <min-large-message-size> to 1024000 in hornetq-jms.xml,

      and restarted jboss.

       

      and then created a message

       

       

      we noticed that the message was created in data/hornetq/largemessages

       

      total 392
      -rw-r--r-- 1 jboss users 392476 May 25 11:41 129850.msg

       

       

      and the host which was supposed to consume the message got an exception :

       

      2010-05-25 11:42:25,159 ERROR [STDERR] (pool-26-thread-1) Exception in thread "pool-26-thread-1"
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1) java.lang.IllegalAccessError: This is a read-only buffer, setOperations are not supported
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.core.client.impl.LargeMessageBufferImpl.writeInt(LargeMessageBufferImpl.java:949)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.client.HornetQObjectMessage.doBeforeSend(HornetQObjectMessage.java:93)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.client.HornetQMessageProducer.doSend(HornetQMessageProducer.java:426)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.client.HornetQMessageProducer.send(HornetQMessageProducer.java:246)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.bridge.impl.JMSBridgeImpl.sendMessages(JMSBridgeImpl.java:1569)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.bridge.impl.JMSBridgeImpl.sendBatchXA(JMSBridgeImpl.java:1473)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.bridge.impl.JMSBridgeImpl.sendBatch(JMSBridgeImpl.java:1390)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.bridge.impl.JMSBridgeImpl.access$1500(JMSBridgeImpl.java:68)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at org.hornetq.jms.bridge.impl.JMSBridgeImpl$BatchTimeChecker.run(JMSBridgeImpl.java:1936)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      2010-05-25 11:42:25,178 ERROR [STDERR] (pool-26-thread-1)       at java.lang.Thread.run(Thread.java:619)

       

       

      it seems to us - that since we have set min-large-message-size to 1024000,

      this message should not have been treated as a large message ?