You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mleiseca <ml...@gmail.com> on 2012/10/17 16:05:43 UTC

ActiveMQ error browsing via JMX

We are getting this error when trying to browse a queue via JMX. Everything
was working fine until this morning when we failed over from the master to
the slave. Now, we are unable to run QueueViewMBean browse to look at the
queue contents.   I don't see anything in the archive that is related and am
confused about why this started.

 | WARN  | exception browsing destination |
org.apache.activemq.broker.jmx.DestinationViewMBean | RMI TCP
Connection(430)-
java.lang.IllegalArgumentException: Argument's element itemDescriptions[25]
cannot be null.
	at javax.management.openmbean.CompositeType.checkForNullElement(Unknown
Source)
	at javax.management.openmbean.CompositeType.<init>(Unknown Source)
	at
org.apache.activemq.broker.jmx.OpenTypeSupport$AbstractOpenTypeFactory.createCompositeType(OpenTypeSupport.java:80)
	at
org.apache.activemq.broker.jmx.OpenTypeSupport$AbstractOpenTypeFactory.getCompositeType(OpenTypeSupport.java:68)
	at
org.apache.activemq.broker.jmx.OpenTypeSupport.convert(OpenTypeSupport.java:503)
	at
org.apache.activemq.broker.jmx.DestinationView.browse(DestinationView.java:157)
	at
org.apache.activemq.broker.jmx.DestinationView.browse(DestinationView.java:138)
	at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown
Source)
	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown
Source)
	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
	at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
	at javax.management.StandardMBean.invoke(Unknown Source)
	at
org.apache.activemq.broker.jmx.AnnotatedMBean.invoke(AnnotatedMBean.java:189)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
	at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Source)
	at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
	at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
	at sun.rmi.transport.Transport$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Unknown Source)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
Source)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)


thanks!

Michael



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-error-browsing-via-JMX-tp4657895.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ error browsing via JMX

Posted by Tom_Z <to...@arcor.de>.
Did anyone else see this execption? We got this one and also

java.lang.IllegalArgumentException: Array arguments itemNames[],
itemDescriptions[] and itemTypes[] should be of same length (got 25000,
24998 and 24998).

with 25000 defined as maxPageSize for the queue to be browsed.

What can be the reason for this?



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-error-browsing-via-JMX-tp4657895p4682260.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ error browsing via JMX

Posted by mleiseca <ml...@gmail.com>.


Claus Ibsen wrote
> 
> As there are many releases of ActiveMQ, its important to tell which
> version of the software you are using.


Oh sure. We are using ActiveMQ 5.6

There is nothing special about the messages on the queue. To add a further
wrinkle, we failed back to the previous master and the problem went away. We
then failed back to the master that was having problems and the problem has
yet to happen again.

Just to list out the steps over time:

1. server1 is master, no errors
2. server2 is master, errors happening
3. server1 is master, no errors
4. server2 is master, no errors





--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-error-browsing-via-JMX-tp4657895p4657902.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ error browsing via JMX

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

As there are many releases of ActiveMQ, its important to tell which
version of the software you are using.

Also is there anything special about the messages on that queue? That
can cause the problem?
Did it work before, does it work for other queues etc?


On Wed, Oct 17, 2012 at 4:05 PM, mleiseca <ml...@gmail.com> wrote:
> We are getting this error when trying to browse a queue via JMX. Everything
> was working fine until this morning when we failed over from the master to
> the slave. Now, we are unable to run QueueViewMBean browse to look at the
> queue contents.   I don't see anything in the archive that is related and am
> confused about why this started.
>
>  | WARN  | exception browsing destination |
> org.apache.activemq.broker.jmx.DestinationViewMBean | RMI TCP
> Connection(430)-
> java.lang.IllegalArgumentException: Argument's element itemDescriptions[25]
> cannot be null.
>         at javax.management.openmbean.CompositeType.checkForNullElement(Unknown
> Source)
>         at javax.management.openmbean.CompositeType.<init>(Unknown Source)
>         at
> org.apache.activemq.broker.jmx.OpenTypeSupport$AbstractOpenTypeFactory.createCompositeType(OpenTypeSupport.java:80)
>         at
> org.apache.activemq.broker.jmx.OpenTypeSupport$AbstractOpenTypeFactory.getCompositeType(OpenTypeSupport.java:68)
>         at
> org.apache.activemq.broker.jmx.OpenTypeSupport.convert(OpenTypeSupport.java:503)
>         at
> org.apache.activemq.broker.jmx.DestinationView.browse(DestinationView.java:157)
>         at
> org.apache.activemq.broker.jmx.DestinationView.browse(DestinationView.java:138)
>         at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown
> Source)
>         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown
> Source)
>         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
>         at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
>         at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
>         at javax.management.StandardMBean.invoke(Unknown Source)
>         at
> org.apache.activemq.broker.jmx.AnnotatedMBean.invoke(AnnotatedMBean.java:189)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
> Source)
>         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
>         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
> Source)
>         at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Source)
>         at
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
> Source)
>         at
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
> Source)
>         at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
>         at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
>         at sun.rmi.transport.Transport$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
> Source)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
>
>
> thanks!
>
> Michael
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-error-browsing-via-JMX-tp4657895.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen