Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6478

ServiceMBeanSupportTestCase misses MBeanPermission when run with security manager

    XMLWordPrintable

    Details

      Description

      org.jboss.as.test.integration.sar.servicembean.ServiceMBeanSupportTestCase#testSarWithServiceMBeanSupport

      ./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.sar.servicembean.ServiceMBeanSupportTestCase#testSarWithServiceMBeanSupport -Dsecurity.manager

      Fails with:

      ERROR [org.jboss.as.test.integration.sar.servicembean.TestService] (MSC service thread 1-2) WFLYSYSJMX0009: Initialization failed during postRegister: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("javax.management.MBeanPermission" "org.jboss.as.test.integration.sar.servicembean.TestResultService#CreateServiceInvoked[jboss:name=service-mbean-support-test-result]" "setAttribute")" in code source "(vfs:/content/service-mbean-support-test.sar <no signer certificates>)" of "null")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1830)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1813)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.setAttribute(DefaultMBeanServerInterceptor.java:743)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribute(JmxMBeanServer.java:739)
      	at org.jboss.as.test.integration.sar.servicembean.TestService.setTestResultMBeanAttribute(TestService.java:73)
      	at org.jboss.as.test.integration.sar.servicembean.TestService.createService(TestService.java:47)
      	at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:221)
      	at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
      	at org.jboss.system.ServiceMBeanSupport.postRegister(ServiceMBeanSupport.java:372)
      	at com.sun.jmx.mbeanserver.MBeanSupport.postRegister(MBeanSupport.java:182)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postRegister(DefaultMBeanServerInterceptor.java:1024)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:974)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
      	at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:1527)
      	at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:871)
      	at org.jboss.as.jmx.MBeanRegistrationService.start(MBeanRegistrationService.java:101)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  istudens Ivo Studensky
                  Reporter:
                  jtymel Jan Tymel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: