Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1081

unable to browse BytesMessage list[hawtio]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Can't Do
    • Minor
    • None
    • JBoss A-MQ 6.2
    • broker
    • None
    • Hide

      1. prepare bytesMessage using logic below:
      a] read from file:
      Path path = Paths.get("sample.zip");
      byte[] buffer = Files.readAllBytes(path);
      OR
      b] prepare some random stream:
      byte[] buffer = new byte[50*1024*1024];
      Random rnd = new Random();
      rnd.nextBytes(buffer);
      2. write such messages to queue. e.g 10 times.
      3. Try to browse the message list or contents from hawtio.
      We can see exceptions on console and can not browse list.

      Attached is the sample and log file.
      $mvn clean package dependency:copy-dependencies -DincludeScope=runtime -DskipTests
      $java -cp "target/classes/:target/dependency/*" org.apache.qpid.jms.example.Sender2

      Show
      1. prepare bytesMessage using logic below: a] read from file: Path path = Paths.get("sample.zip"); byte[] buffer = Files.readAllBytes(path); OR b] prepare some random stream: byte[] buffer = new byte [50*1024*1024] ; Random rnd = new Random(); rnd.nextBytes(buffer); 2. write such messages to queue. e.g 10 times. 3. Try to browse the message list or contents from hawtio. We can see exceptions on console and can not browse list. Attached is the sample and log file. $mvn clean package dependency:copy-dependencies -DincludeScope=runtime -DskipTests $java -cp "target/classes/:target/dependency/*" org.apache.qpid.jms.example.Sender2

    Description

      description:
      If byte message contains some characters which are not suitable to display as string.
      The list view of BytesMessage fail to display on hawtio.

      The default byte array initialised with 0 have no issue. Problem occurs only if we have
      mixture of different bytes. During this issue we can see large usage of heap memory.

      expected behaviour:
      The display on web console should filter out problematic byte representations OR replace
      them with them some meaningful characters.

      Attachments

        1. activemq.xml
          5 kB
        2. amq.log
          304 kB
        3. apache-qpid-jms-0.2.0.redhat-1.zip
          5.94 MB
        4. data.tar.gz
          37 kB

        Activity

          People

            Unassigned Unassigned
            ynaravan Yogesh Naravane (Inactive)
            Yogesh Naravane Yogesh Naravane (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: