Forum Home » Enterprise Products » Fuse HQ

Thread: javax.management.openmbean.KeyAlreadyExistsException

 
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Sep 21, 2009 1:30 PM Last Post By: pchandler
pchandler

Posts: 211
Registered: 03/31/09
javax.management.openmbean.KeyAlreadyExistsException
Posted: Sep 16, 2009 6:25 PM
 
  Click to reply to this thread Reply
I run a JMX client application and get the following error in the servicemix console.

Any ideas? Cause?

smx@root:osgi> javax.management.openmbean.KeyAlreadyExistsException: Argument value's index, calculated according to this TabularData instance's tabularType, already refers to a value in this table.
        at javax.management.openmbean.TabularDataSupport.checkValueAndIndex(TabularDataSupport.java:871)
        at javax.management.openmbean.TabularDataSupport.internalPut(TabularDataSupport.java:331)
        at javax.management.openmbean.TabularDataSupport.put(TabularDataSupport.java:323)
        at org.osgi.jmx.codec.OSGiPackage.tableFrom(OSGiPackage.java:114)
        at com.oracle.osgi.jmx.core.PackageState.getPackages(PackageState.java:98)
        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.getAttribute(PerInterface.java:65)
        at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:216)
        at javax.management.StandardMBean.getAttribute(StandardMBean.java:358)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:666)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
        at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1403)
        at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
        at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
        at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:600)
        at sun.reflect.GeneratedMethodAccessor106.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)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
dstanley

Posts: 124
Registered: 08/17/07
Re: javax.management.openmbean.KeyAlreadyExistsException
Posted: Sep 18, 2009 3:14 PM   in response to: pchandler in response to: pchandler
 
  Click to reply to this thread Reply
Hi,
Its almost as though the jmx client was trying to add a row to a tabular datastructure via jmx. Was the jmx client trying to write to an mbean?

Did you mean to add this to the Fuse HQ forum or is this a pure jmx client/Fuse ESB issue?

Cheer's
/Dave
pchandler

Posts: 211
Registered: 03/31/09
Re: javax.management.openmbean.KeyAlreadyExistsException
Posted: Sep 18, 2009 8:07 PM   in response to: dstanley in response to: dstanley
 
  Click to reply to this thread Reply
I am doing pure JMX client read calls:

JMX Cleint:
for all mbeans
get all attributes
get all operations.

However, the Stack trace is on servicemix. I will re-post on ESB forum.

http://fusesource.com/forums/thread.jspa?messageID=4410