Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-14253

Authenticated JMX remote access not working with the Compute Engine

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      it seems authenticated remote access is not working with the Compute Engine, on SonarQube 8.5.1.
      Here is the jconsole stack trace:

      java.lang.NullPointerException at org.sonar.process.SecurityManagement$CustomPolicy.getDomainClassLoaderName(SecurityManagement.java:92)
      	at org.sonar.process.SecurityManagement$CustomPolicy.implies(SecurityManagement.java:62)
      	at java.base/java.security.ProtectionDomain.implies(ProtectionDomain.java:321)
      	at java.base/java.security.ProtectionDomain.impliesWithAltFilePerm(ProtectionDomain.java:353)
      	at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:450)
      	at java.base/java.security.AccessController.checkPermission(AccessController.java:897)
      	at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:322)
      	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1787)
      	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMBeanServerInterceptor.java:1371)
      	at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:920)
      	at java.management/com.sun.jmx.remote.security.MBeanServerAccessController.getMBeanInfo(MBeanServerAccessController.java:399)
      	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1460)
      	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1406)
      	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl.getMBeanInfo(RMIConnectionImpl.java:903)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
      	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
      	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
      	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
      	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      	at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:303)
      	at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:279)
      	at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:164)
      	at jdk.remoteref/jdk.jmx.remote.internal.rmi.PRef.invoke(Unknown Source)
      	at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl_Stub.getMBeanInfo(Unknown Source)
      	at java.management.rmi/javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getMBeanInfo(RMIConnector.java:1080)
      	at java.base/jdk.internal.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at jdk.jconsole/sun.tools.jconsole.ProxyClient$SnapshotInvocationHandler.invoke(ProxyClient.java:992)
      	at jdk.proxy1/com.sun.proxy.jdk.proxy1.$Proxy0.getMBeanInfo(Unknown Source)
      	at jdk.jconsole/sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:385)
      	at jdk.jconsole/sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:313)
      	at jdk.jconsole/sun.tools.jconsole.VMPanel$2.run(VMPanel.java:296)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zipeng.wu Zipeng Wu
              Reporter:
              sylvain.combe Sylvain Combe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: