You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org> on 2012/06/19 12:16:43 UTC

[jira] [Created] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Robin Kåveland Hansen created AMQ-3889:
------------------------------------------

             Summary: Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
                 Key: AMQ-3889
                 URL: https://issues.apache.org/jira/browse/AMQ-3889
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMX
    Affects Versions: 5.5.1
         Environment: Linux 64-bit, multiple java versions.
            Reporter: Robin Kåveland Hansen
            Priority: Minor


When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.

I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 

I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Posted by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Kåveland Hansen updated AMQ-3889:
---------------------------------------

    Attachment: OpenTypeSupportTest.java

Testcase to reproduce issue.
                
> Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3889
>                 URL: https://issues.apache.org/jira/browse/AMQ-3889
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.5.1
>         Environment: Linux 64-bit, multiple java versions.
>            Reporter: Robin Kåveland Hansen
>            Priority: Minor
>         Attachments: OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 
> I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3889.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.7.0
         Assignee: Timothy Bish

Fix applied in trunk with thanks. 
                
> Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3889
>                 URL: https://issues.apache.org/jira/browse/AMQ-3889
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.5.1
>         Environment: Linux 64-bit, multiple java versions.
>            Reporter: Robin Kåveland Hansen
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.7.0
>
>         Attachments: OpenTypeSupport.diff, OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 
> I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Posted by "Sathish V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467089#comment-13467089 ] 

Sathish V commented on AMQ-3889:
--------------------------------

Hi,  I see the same issue.  What should I do to get the patch, please let me know the details.

-Sathish
                
> Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3889
>                 URL: https://issues.apache.org/jira/browse/AMQ-3889
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.5.1
>         Environment: Linux 64-bit, multiple java versions.
>            Reporter: Robin Kåveland Hansen
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.7.0
>
>         Attachments: OpenTypeSupport.diff, OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 
> I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Posted by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Kåveland Hansen updated AMQ-3889:
---------------------------------------

    Attachment: OpenTypeSupport.diff

Resolves this issue.
                
> Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3889
>                 URL: https://issues.apache.org/jira/browse/AMQ-3889
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.5.1
>         Environment: Linux 64-bit, multiple java versions.
>            Reporter: Robin Kåveland Hansen
>            Priority: Minor
>         Attachments: OpenTypeSupport.diff, OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 
> I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Posted by "Sathish V (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467469#comment-13467469 ] 

Sathish V commented on AMQ-3889:
--------------------------------

Thanks for your quick response.    My aim to create a external tool using JMX that will monitor few ActiveMQ Queues periodically and peek(browse) into certain non-well formed messages and raise alerts.

Few questions, if you can answer, will help me a lot.
1) Is there a workaround available for this?  
2) Is this an issue with activeMQ JMX agent service?  The upcoming patch to be applied to activeMQ service?
3) I guess even though the browse shows message with null characters(after couple of browsing on the same message), read message actually fetches the message properly, please confirm if this is correct.  

Thanks
Sathish
                
> Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3889
>                 URL: https://issues.apache.org/jira/browse/AMQ-3889
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.5.1
>         Environment: Linux 64-bit, multiple java versions.
>            Reporter: Robin Kåveland Hansen
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.7.0
>
>         Attachments: OpenTypeSupport.diff, OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 
> I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Posted by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Kåveland Hansen updated AMQ-3889:
---------------------------------------

    Patch Info: Patch Available
    
> Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3889
>                 URL: https://issues.apache.org/jira/browse/AMQ-3889
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.5.1
>         Environment: Linux 64-bit, multiple java versions.
>            Reporter: Robin Kåveland Hansen
>            Priority: Minor
>         Attachments: OpenTypeSupport.diff, OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 
> I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (AMQ-3889) Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467099#comment-13467099 ] 

Timothy Bish commented on AMQ-3889:
-----------------------------------

ActiveMQ 5.7.0 is undergoing the release process now.  You can wait a few days for that or grab one of the nightly SNAPSHOT builds.
                
> Body Preview of BytesMessages change when browsed multiple times from QueueViewMbean
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3889
>                 URL: https://issues.apache.org/jira/browse/AMQ-3889
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.5.1
>         Environment: Linux 64-bit, multiple java versions.
>            Reporter: Robin Kåveland Hansen
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.7.0
>
>         Attachments: OpenTypeSupport.diff, OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean to obtain CompositeData of messages, the Body Preview of BytesMessages changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase that illustrates it. 
> I have also narrowed it down to org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory, which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira