Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-1169

[AMQ 7, hawtio, large message] Sending very large messages through hawtio results in - java.lang.IllegalStateException: Can't write records bigger than the bufferSize(501760) on the journal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • AMQ 7.2.4.GA
    • AMQ 7.1.0.GA
    • broker-core, console
    • None
    • Release Notes
    • Previously, if you used the Hawtio console to send a message exceeding the broker’s internal buffer size, you saw an exception. This issue is corrected. The broker now automatically converts this type of message to large message and sends it successfully.
    • Hide

      Using the hawtio web console, sending a very large message (greater than1MB) using the "send" panel under

      addresses -> (address) -> queues -> anycast -> (the queue)

      results in the following exception
      java.lang.IllegalStateException: Can't write records bigger than the bufferSize(501760) on the journal

      Show
      Using the hawtio web console, sending a very large message (greater than1MB) using the "send" panel under addresses -> (address) -> queues -> anycast -> (the queue) results in the following exception java.lang.IllegalStateException: Can't write records bigger than the bufferSize(501760) on the journal

    Description

      Using the hawtio web console, sending a very large message (greater than1MB) using the "send" panel under

      addresses -> (address) -> queues -> anycast -> (the queue)

      results in the following exception

      java.lang.IllegalStateException: Can't write records bigger than the bufferSize(501760) on the journal
           at org.apache.activemq.artemis.core.io.buffer.TimedBuffer.checkSize(TimedBuffer.java:207) [artemis-journal-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.core.io.AbstractSequentialFile.fits(AbstractSequentialFile.java:171) [artemis-journal-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.core.journal.impl.JournalImpl.switchFileIfNecessary(JournalImpl.java:2963) [artemis-journal-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.core.journal.impl.JournalImpl.appendRecord(JournalImpl.java:2683) [artemis-journal-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.core.journal.impl.JournalImpl.access$200(JournalImpl.java:90) [artemis-journal-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.core.journal.impl.JournalImpl$1.run(JournalImpl.java:803) [artemis-journal-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at org.apache.activemq.artemis.utils.actors.ProcessorBase$ExecutorTask.run(ProcessorBase.java:53) [artemis-commons-2.4.0.amq-710004-redhat-1.jar:2.4.0.amq-710004-redhat-1]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_102]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_102]
           at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_102]
      
      

      Attachments

        Activity

          People

            gaohoward Howard Gao
            rhn-support-pfox Patrick Fox (Inactive)
            Oleg Sushchenko Oleg Sushchenko
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours Time Not Required
                1d 2h