Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13676

[GSS](7.2.z) REMJMX-158 - WFLYJMX0037 occurs with RBAC enabled when disconnecting JConsole

XMLWordPrintable

    • Hide

      1. set "rbac" as access control provider , and reload EAP.

      /core-service=management/access=authorization:write-attribute(name=provider,value=rbac)
      

      2. jconsole with Remoting JMX URL and without username/password.

      2-1. $JBOSS_HOME/bin/jconsole.sh
      2-2. set JMX URL only (username and password are empty), and connect EAP. For example,

       service:jmx:remote+http://xx.xx.xx.xx:9990
      

      or locally

       service:jmx:remote+http://127.0.0.1:9990
      

      3. disconnect on jconsole.

      4. you can see the Exception as "JMRuntimeException: WFLYJMX0037: Unauthorized access" on EAP server log.

      Show
      1. set "rbac" as access control provider , and reload EAP. /core-service=management/access=authorization:write-attribute(name=provider,value=rbac) 2. jconsole with Remoting JMX URL and without username/password. 2-1. $JBOSS_HOME/bin/jconsole.sh 2-2. set JMX URL only (username and password are empty), and connect EAP. For example, service:jmx:remote+http: //xx.xx.xx.xx:9990 or locally service:jmx:remote+http: //127.0.0.1:9990 3. disconnect on jconsole. 4. you can see the Exception as "JMRuntimeException: WFLYJMX0037: Unauthorized access" on EAP server log.

      When disconnecting jconsole from EAP, "WFLYJMX0037: Unauthorized access" occurs on EAP server.
      If access control provider is set to "rbac", it will always be occured.

      ERROR [stderr] (management task-10) Exception in thread "management task-10" javax.management.JMRuntimeException: WFLYJMX0037: Unauthorized access
      ERROR [stderr] (management task-10) 	at org.jboss.as.jmx.PluggableMBeanServerImpl.authorizeMBeanOperation(PluggableMBeanServerImpl.java:1204)
      ERROR [stderr] (management task-10) 	at org.jboss.as.jmx.PluggableMBeanServerImpl.authorizeMBeanOperation(PluggableMBeanServerImpl.java:1190)
      ERROR [stderr] (management task-10) 	at org.jboss.as.jmx.PluggableMBeanServerImpl.removeNotificationListener(PluggableMBeanServerImpl.java:946)
      ERROR [stderr] (management task-10) 	at org.jboss.as.jmx.BlockingNotificationMBeanServer.removeNotificationListener(BlockingNotificationMBeanServer.java:243)
      ERROR [stderr] (management task-10) 	at org.jboss.as.jmx.AuthorizingMBeanServer.removeNotificationListener(AuthorizingMBeanServer.java:352)
      ERROR [stderr] (management task-10) 	at org.jboss.remotingjmx.protocol.v2.ServerProxy$RemoteNotificationManager.removeNotificationListener(ServerProxy.java:229)
      ERROR [stderr] (management task-10) 	at org.jboss.remotingjmx.protocol.v2.ServerProxy$RemoteNotificationManager.removeNotificationListeners(ServerProxy.java:239)
      ERROR [stderr] (management task-10) 	at org.jboss.remotingjmx.protocol.v2.ServerProxy$RemoteNotificationManager.removeNotificationListener(ServerProxy.java:222)
      ERROR [stderr] (management task-10) 	at org.jboss.remotingjmx.protocol.v2.ServerProxy$RemoteNotificationManager.access$1900(ServerProxy.java:199)
      ERROR [stderr] (management task-10) 	at org.jboss.remotingjmx.protocol.v2.ServerProxy.end(ServerProxy.java:167)
      ERROR [stderr] (management task-10) 	at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever.handleEnd(ServerCommon.java:210)
      ERROR [stderr] (management task-10) 	at org.jboss.remoting3.remote.RemoteConnectionChannel.lambda$notifyEnd$0(RemoteConnectionChannel.java:273)
      ERROR [stderr] (management task-10) 	at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:926)
      ERROR [stderr] (management task-10) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      ERROR [stderr] (management task-10) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      ERROR [stderr] (management task-10) 	at java.lang.Thread.run(Thread.java:748)
      

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-support-hdaicho Hiroki Daicho (Inactive)
              Daniel Cihak Daniel Cihak
              Daniel Cihak Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: