Qpid
  1. Qpid
  2. QPID-3617

AMQQueueMBean.viewMessages: Viewing message without priority set ends with NullPointerException

    Details

      Description

      If a user of the JMX Console (or Management Console) tries to view a message without message priority (such as those sent by the Python Client) the user sees a NullPointerException.

      The issue is with the defaulting logic in MessageTransferHeader#getPriority().

      
      2011-11-15 12:19:34,154 ERROR [RMI TCP Connection(2)-169.24.25.106] (AMQQueueMBean.java:506) - error
      java.lang.NullPointerException
              at org.apache.qpid.server.message.MessageTransferHeader.getPriority(MessageTransferHeader.java:85)
              at org.apache.qpid.server.queue.AMQQueueMBean.getMessageTransferMessageHeaderProps(AMQQueueMBean.java:568)
              at org.apache.qpid.server.queue.AMQQueueMBean.viewMessages(AMQQueueMBean.java:482)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
              at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
              at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
              at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
              at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
              at javax.management.StandardMBean.invoke(StandardMBean.java:391)
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
              at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
              at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
              at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
              at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
              at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
              at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
              at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
              at sun.rmi.transport.Transport$1.run(Transport.java:159)
      
      

        Activity

        Keith Wall created issue -
        Robbie Gemmell made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Robbie Gemmell [ gemmellr ]
        Fix Version/s 0.15 [ 12319043 ]
        Resolution Fixed [ 1 ]
        Robbie Gemmell made changes -
        Fix Version/s 0.14 [ 12316855 ]
        Fix Version/s 0.15 [ 12319043 ]
        Robbie Gemmell made changes -
        Affects Version/s 0.14 [ 12316855 ]
        Affects Version/s 0.15 [ 12319043 ]
        Robbie Gemmell made changes -
        Labels jmx_interface
        Robbie Gemmell made changes -
        Component/s Java Management : JMX Interface [ 12313025 ]
        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Keith Wall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development