Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6304996

UndeclaredThrowableException got when calling ThreadMXBean.getThreadInfo(long[],int) using a proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-svc
    • 6
    • b49
    • generic
    • generic
    • Verified

      The issue has been seen between two jvm, one started with management on and the other using MXBean proxies for the java.lang.management MXBeans.
      The client and server are running Mustang b45.
      The client calls getThreadInfo(long[] ids) and provides as ids value what has been returned by getAllThreadIds().
      Then client gets:
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy2.getThreadInfo(Unknown Source)
      at javasoft.sqe.jmx.test.functional.MXBeanTest1.doThreadMXBeanTest(MXBeanTest1.java:241)
      at javasoft.sqe.jmx.test.functional.MXBeanTest1.run(MXBeanTest1.java:93)
      at javasoft.sqe.jmx.share.TestStarter.<init>(TestStarter.java:40)
      at javasoft.sqe.jmx.share.TestStarter.main(TestStarter.java:98)
      Caused by: javax.management.ReflectionException
      at sun.management.MXBeanSupport.invoke(MXBeanSupport.java:649)
      at sun.management.MXBeanSupport.invoke(MXBeanSupport.java:94)
      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:200)
      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:183)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:865)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:772)
      at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1407)
      at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:65)
      at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
      at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1340)
      at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:774)
      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:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      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:496)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:737)
      at java.lang.Thread.run(Thread.java:608)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:143)
      at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
      at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)
      at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:973)
      at com.sun.jmx.mbeanserver.MXBeanInvocationHandler$InvokeHandler.invoke(MXBeanInvocationHandler.java:152)
      at com.sun.jmx.mbeanserver.MXBeanInvocationHandler.invoke(MXBeanInvocationHandler.java:191)
      at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:311)
      ... 5 more
      Caused by: java.lang.NoSuchMethodException: Operation getThreadInfo does not exist.
      at sun.management.MXBeanSupport.invoke(MXBeanSupport.java:649)
      at sun.management.MXBeanSupport.invoke(MXBeanSupport.java:94)
      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:200)
      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:183)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:865)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:772)
      at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1407)
      at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:65)
      at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
      at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1340)
      at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:774)
      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:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      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:496)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:737)
      at java.lang.Thread.run(Thread.java:608)

            emcmanus Eamonn McManus
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: