6 Replies Latest reply on Jun 11, 2008 6:52 PM by Dimitris Andreadis

    No Security Context regression

    Scott Stark Master

      Tests that were working this morning before updating trunk are now failing with the following exception. There is not security setup to check so there should be no such assertion in the client side interceptor.

      java.lang.RuntimeException: No Security Context
       at org.jboss.aspects.security.SecurityActions$2.run(SecurityActions.java:131)
       at org.jboss.aspects.security.SecurityActions$2.run(SecurityActions.java:127)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.jboss.aspects.security.SecurityActions.getPrincipal(SecurityActions.java:125)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:49)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
       at AOPProxy$0.getViewManager(AOPProxy$0.java)
       at org.jboss.test.profileservice.test.AbstractProfileServiceTest.getManagementView(AbstractProfileServiceTest.java:147)
       at org.jboss.test.profileservice.test.ProfileServiceUnitTestCase.testSarDeploymentType(ProfileServiceUnitTestCase.java:244)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)