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

Tests in org.jboss.as.test.clustering.cluster fails with security manager

    Details

      Description

      org.jboss.as.test.clustering.cluster.cdi (1)
          CdiFailoverTestCase.test  	
      org.jboss.as.test.clustering.cluster.jsf (2)
          JSFFailoverTestCase.testGracefulSimpleFailover  	
          JSFFailoverTestCase.testGracefulUndeployFailover  	
      org.jboss.as.test.clustering.cluster.provider (1)
          ServiceProviderRegistrationTestCase.test  	
      org.jboss.as.test.clustering.cluster.singleton (4)
          SingletonBackupServiceTestCase.testSingletonService  	
          SingletonDeploymentDescriptorTestCase.test  	
          SingletonDeploymentJBossAllTestCase.test  	
          SingletonPartitionTestCase.testSingletonService  	
      org.jboss.as.test.clustering.cluster.xsite (1)
          XSiteSimpleTestCase.test  
      

      Seems to me doPrivileged block is missing in server code somewhere. There are errors like

      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect")" in code source "(vfs:/content/CdiFailoverTestCase.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.CdiFailoverTestCase.war" from Service Module Loader")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:294)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:191)
      	at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1564)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPackageAccess(WildFlySecurityManager.java:490)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:318)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at org.jboss.modules.JDKSpecific.getSystemClass(JDKSpecific.java:180)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:395)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	at org.jboss.marshalling.river.Protocol.<clinit>(Protocol.java:310)
      
      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.lang.RuntimePermission\" \"accessDeclaredMembers\")\" in code source \"(vfs:/content/XSiteSimpleTestCase.war/WEB-INF/classes <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.XSiteSimpleTestCase.war\" from Service Module Loader\")"}}}}
      
      
      Caused by: java.lang.ExceptionInInitializerError
      	at org.jboss.marshalling.river.RiverMarshaller.<clinit>(RiverMarshaller.java:1274)
      

      [1] https://ci.wildfly.org/viewLog.html?buildId=128138&buildTypeId=WF_MasterSecurityManager

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rhusar Radoslav Husar
                  Reporter:
                  mchoma Martin Choma
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: