Description:
|
DeltaSpike security tests failures
simpleInterceptorTest(org.apache.deltaspike.test.security.impl.authorization.secured.SecuredAnnotationTest): Unexpected Exception: java.lang.reflect.InvocationTargetException
interceptorTestWithStereotype(org.apache.deltaspike.test.security.impl.authorization.secured.SecuredAnnotationTest): Unexpected Exception: java.lang.reflect.InvocationTargetException
simpleInterceptorTestOnMethods(org.apache.deltaspike.test.security.impl.authorization.secured.SecuredAnnotationTest): Unexpected Exception: java.lang.reflect.InvocationTargetException
AccessDeniedException is the cause of the InvocationTargetException, so it seems sometings doesn't unwrap the exceptions...
14:44:37,447 INFO [stdout] (pool-4-thread-1) java.lang.reflect.InvocationTargetException
14:44:37,448 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,449 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,456 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,457 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,457 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.core.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:188)
14:44:37,458 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.core.util.metadata.builder.InjectableMethod.invoke(InjectableMethod.java:187)
14:44:37,458 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.security.impl.extension.Authorizer.authorize(Authorizer.java:98)
14:44:37,459 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.security.impl.extension.DefaultSecurityStrategy.execute(DefaultSecurityStrategy.java:56)
14:44:37,460 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.security.impl.extension.SecurityInterceptor.filterDeniedInvocations(SecurityInterceptor.java:44)
14:44:37,460 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,461 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,461 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,462 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,462 INFO [stdout] (pool-4-thread-1) at org.jboss.weld.interceptor.proxy.SimpleMethodInvocation.invoke(SimpleMethodInvocation.java:30)
14:44:37,463 INFO [stdout] (pool-4-thread-1) at org.jboss.weld.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:69)
14:44:37,463 INFO [stdout] (pool-4-thread-1) at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:113)
14:44:37,464 INFO [stdout] (pool-4-thread-1) at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:92)
14:44:37,468 INFO [stdout] (pool-4-thread-1) at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:52)
14:44:37,468 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.test.security.impl.authorization.secured.SecuredBean1$Proxy$_$$_WeldSubclass.getBlockedResult(Unknown Source)
14:44:37,469 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.test.security.impl.authorization.secured.SecuredBean1$Proxy$_$$_WeldClientProxy.getBlockedResult(Unknown Source)
14:44:37,470 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.test.security.impl.authorization.secured.SecuredAnnotationTest.simpleInterceptorTest(SecuredAnnotationTest.java:58)
14:44:37,470 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,477 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,478 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,479 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,479 INFO [stdout] (pool-4-thread-1) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
14:44:37,479 INFO [stdout] (pool-4-thread-1) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
14:44:37,480 INFO [stdout] (pool-4-thread-1) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
14:44:37,480 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
14:44:37,481 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
14:44:37,481 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,482 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,482 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,483 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,483 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
14:44:37,484 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
14:44:37,488 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
14:44:37,488 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
14:44:37,489 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
14:44:37,489 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
14:44:37,489 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)
14:44:37,490 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,490 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,497 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,498 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,498 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
14:44:37,499 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
14:44:37,499 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
14:44:37,500 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
14:44:37,500 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,501 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,501 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,502 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,502 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
14:44:37,503 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
14:44:37,503 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
14:44:37,504 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,507 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,508 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,508 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,509 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
14:44:37,509 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
14:44:37,510 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
14:44:37,517 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,517 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,518 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,518 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,518 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
14:44:37,519 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
14:44:37,519 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
14:44:37,520 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)
14:44:37,520 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
14:44:37,521 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
14:44:37,521 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
14:44:37,522 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
14:44:37,522 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
14:44:37,527 INFO [stdout] (pool-4-thread-1) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
14:44:37,528 INFO [stdout] (pool-4-thread-1) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
14:44:37,529 INFO [stdout] (pool-4-thread-1) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
14:44:37,529 INFO [stdout] (pool-4-thread-1) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
14:44:37,530 INFO [stdout] (pool-4-thread-1) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
14:44:37,530 INFO [stdout] (pool-4-thread-1) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
14:44:37,530 INFO [stdout] (pool-4-thread-1) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
14:44:37,531 INFO [stdout] (pool-4-thread-1) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
14:44:37,531 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
14:44:37,532 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
14:44:37,537 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
14:44:37,538 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
14:44:37,538 INFO [stdout] (pool-4-thread-1) at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
14:44:37,539 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
14:44:37,539 INFO [stdout] (pool-4-thread-1) at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
14:44:37,540 INFO [stdout] (pool-4-thread-1) at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
14:44:37,540 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)
14:44:37,541 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:129)
14:44:37,541 INFO [stdout] (pool-4-thread-1) at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:108)
14:44:37,542 INFO [stdout] (pool-4-thread-1) at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226)
14:44:37,542 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:44:37,547 INFO [stdout] (pool-4-thread-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:44:37,548 INFO [stdout] (pool-4-thread-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:44:37,548 INFO [stdout] (pool-4-thread-1) at java.lang.reflect.Method.invoke(Method.java:597)
14:44:37,549 INFO [stdout] (pool-4-thread-1) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
14:44:37,549 INFO [stdout] (pool-4-thread-1) at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
14:44:37,556 INFO [stdout] (pool-4-thread-1) at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
14:44:37,557 INFO [stdout] (pool-4-thread-1) at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
14:44:37,557 INFO [stdout] (pool-4-thread-1) at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
14:44:37,558 INFO [stdout] (pool-4-thread-1) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
14:44:37,558 INFO [stdout] (pool-4-thread-1) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
14:44:37,559 INFO [stdout] (pool-4-thread-1) at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:498)
14:44:37,559 INFO [stdout] (pool-4-thread-1) at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:246)
14:44:37,560 INFO [stdout] (pool-4-thread-1) at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)
14:44:37,560 INFO [stdout] (pool-4-thread-1) at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)
14:44:37,561 INFO [stdout] (pool-4-thread-1) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
14:44:37,561 INFO [stdout] (pool-4-thread-1) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
14:44:37,562 INFO [stdout] (pool-4-thread-1) at java.lang.Thread.run(Thread.java:662)
14:44:37,563 INFO [stdout] (pool-4-thread-1) Caused by: org.apache.deltaspike.security.api.authorization.AccessDeniedException
14:44:37,567 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.security.impl.authorization.SecuredAnnotationAuthorizer.invokeVoters(SecuredAnnotationAuthorizer.java:139)
14:44:37,568 INFO [stdout] (pool-4-thread-1) at org.apache.deltaspike.security.impl.authorization.SecuredAnnotationAuthorizer.doSecuredCheck(SecuredAnnotationAuthorizer.java:77)
14:44:37,569 INFO [stdout] (pool-4-thread-1) ... 114 more
|