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

SharedBindingTestCase fails with security manager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR6
    • 7.0.0.ER7
    • Test Suite
    • None

      org.jboss.as.test.integration.naming.shared.SharedBindingTestCase#test

      ./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.naming.shared.SharedBindingTestCase#test -Dsecurity.manager

      Fails with:

      14:45:49,197 ERROR [stderr] (ServerService Thread Pool -- 66) java.security.AccessControlException: WFSM000001: Permission check failed (permission "("org.wildfly.naming.java.permission.JndiPermission" "global/sharedbinds/two" "rebind")" in code source "(vfs:/content/BEAN_ONE.jar <no signer certificates>)" of "null")
      14:45:49,198 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
      14:45:49,199 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      14:45:49,200 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.naming.NamingContext.check(NamingContext.java:591)
      14:45:49,201 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.naming.NamingContext.rebind(NamingContext.java:294)
      14:45:49,205 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.naming.InitialContext$DefaultInitialContext.rebind(InitialContext.java:273)
      14:45:49,206 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.naming.NamingContext.rebind(NamingContext.java:309)
      14:45:49,206 ERROR [stderr] (ServerService Thread Pool -- 66) 	at javax.naming.InitialContext.rebind(InitialContext.java:433)
      14:45:49,207 ERROR [stderr] (ServerService Thread Pool -- 66) 	at javax.naming.InitialContext.rebind(InitialContext.java:433)
      14:45:49,209 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.test.integration.naming.shared.BeanOne.postConstruct(BeanOne.java:46)
      14:45:49,210 ERROR [stderr] (ServerService Thread Pool -- 66) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:45:49,211 ERROR [stderr] (ServerService Thread Pool -- 66) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      14:45:49,212 ERROR [stderr] (ServerService Thread Pool -- 66) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      14:45:49,213 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.lang.reflect.Method.invoke(Method.java:498)
      14:45:49,214 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96)
      14:45:49,215 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,216 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:114)
      14:45:49,216 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:103)
      14:45:49,217 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,218 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
      14:45:49,218 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
      14:45:49,219 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
      14:45:49,219 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,219 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:53)
      14:45:49,220 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,220 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:107)
      14:45:49,221 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,221 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28)
      14:45:49,222 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,223 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56)
      14:45:49,223 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,224 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.weld.ejb.Jsr299BindingsCreateInterceptor.processInvocation(Jsr299BindingsCreateInterceptor.java:100)
      14:45:49,224 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,224 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
      14:45:49,225 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,225 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
      14:45:49,226 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:349)
      14:45:49,226 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:68)
      14:45:49,227 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,227 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
      14:45:49,228 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,229 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
      14:45:49,229 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,230 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
      14:45:49,231 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,231 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
      14:45:49,232 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,233 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
      14:45:49,233 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.security.AccessController.doPrivileged(Native Method)
      14:45:49,234 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:568)
      14:45:49,235 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:75)
      14:45:49,235 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
      14:45:49,236 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
      14:45:49,237 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
      14:45:49,237 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
      14:45:49,238 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
      14:45:49,239 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:124)
      14:45:49,239 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:138)
      14:45:49,240 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
      14:45:49,240 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      14:45:49,241 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      14:45:49,241 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      14:45:49,242 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      14:45:49,242 ERROR [stderr] (ServerService Thread Pool -- 66) 	at java.lang.Thread.run(Thread.java:745)
      14:45:49,243 ERROR [stderr] (ServerService Thread Pool -- 66) 	at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

            istudens@redhat.com Ivo Studensky
            jtymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: