Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-1084

Create server-provided jmx connections similar to JBoss in ASTools

    XMLWordPrintable

Details

    Description

      When trying to connect to a Karaf 3.0.1 from inside the JMX tree there is an exceptions thrown:

      java.lang.SecurityException: Insufficient roles/credentials for operation
      	at org.apache.karaf.management.KarafMBeanServerGuard.handleInvoke(KarafMBeanServerGuard.java:228)
      	at org.apache.karaf.management.KarafMBeanServerGuard.handleSetAttribute(KarafMBeanServerGuard.java:214)
      	at org.apache.karaf.management.KarafMBeanServerGuard.invoke(KarafMBeanServerGuard.java:67)
      	at org.apache.karaf.management.boot.KarafMBeanServerBuilder$MBeanInvocationHandler.invoke(KarafMBeanServerBuilder.java:63)
      	at com.sun.proxy.$Proxy0.setAttribute(Unknown Source)
      	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1510)
      	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
      	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)
      	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)
      	at javax.management.remote.rmi.RMIConnectionImpl.setAttribute(RMIConnectionImpl.java:741)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
      	at sun.rmi.transport.Transport$1.run(Transport.java:177)
      	at sun.rmi.transport.Transport$1.run(Transport.java:174)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
      	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)
      	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252)
      	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
      	at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
      	at javax.management.remote.rmi.RMIConnectionImpl_Stub.setAttribute(Unknown Source)
      	at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.setAttribute(RMIConnector.java:971)
      	at com.sun.jmx.mbeanserver.MXBeanProxy$SetHandler.invoke(MXBeanProxy.java:136)
      	at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:167)
      	at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:252)
      	at com.sun.proxy.$Proxy14.setThreadContentionMonitoringEnabled(Unknown Source)
      	at org.fusesource.ide.jvmmonitor.internal.core.MBeanServer.enableThreadContentionMonitoring(MBeanServer.java:996)
      	at org.fusesource.ide.jvmmonitor.internal.core.MBeanServer.connect(MBeanServer.java:851)
      	at org.fusesource.ide.jvmmonitor.internal.core.ActiveJvm.connect(ActiveJvm.java:193)
      	at org.fusesource.ide.jmx.ui.internal.localjmx.JvmConnectionWrapper.connect(JvmConnectionWrapper.java:209)
      	at org.fusesource.ide.jmx.core.ConnectJob.run(ConnectJob.java:41)
      	at org.fusesource.ide.jmx.ui.internal.actions.DoubleClickAction$1.run(DoubleClickAction.java:81)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      

      Attachments

        Issue Links

          Activity

            People

              lheinema@redhat.com Lars Heinemann
              lheinema@redhat.com Lars Heinemann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: