[ http://jira.codehaus.org/browse/SUREFIRE-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed SUREFIRE-170. --------------------------------- Assignee: Brett Porter Resolution: Duplicate Fix Version/s: (was: 2.3) > Failed to load test: java.security.AccessControlException: > ---------------------------------------------------------- > > Key: SUREFIRE-170 > URL: http://jira.codehaus.org/browse/SUREFIRE-170 > Project: Maven Surefire > Issue Type: Bug > Components: classloading > Affects Versions: 2.0 (2.2 plugin) > Environment: windows XP SP1 and linux AS 4 > maven 2.0.4 > jdk 1.5.0_06/09 > Reporter: Christophe Lallement > Assigned To: Brett Porter > > We try to load a testsuite with a test case wich start a RMI server and we > have this error: > > mvn test > Running deai.tt.rhino.cache.mgr.CommonCacheManagerTest > INFO: Created RMIRegistry on port: 10098 > org.apache.maven.surefire.booter.SurefireExecutionException: > deai.tt.rhino.cache.mgr.CommonCacheManagerTest; nested exception is > java.security.AccessControlException: access denied > (java.lang.RuntimePermission setIO); nested exception is > org.apache.maven.surefire.testset.TestSetFailedException: > deai.tt.rhino.cache.mgr.CommonCacheManagerTest; nested exception is > java.security.AccessControlException: access denied > (java.lang.RuntimePermission setIO) > org.apache.maven.surefire.testset.TestSetFailedException: > deai.tt.rhino.cache.mgr.CommonCacheManagerTest; nested exception is > java.security.AccessControlException: access denied > (java.lang.RuntimePermission setIO) > java.security.AccessControlException: access denied > (java.lang.RuntimePermission setIO) > at > java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) > at > java.security.AccessController.checkPermission(AccessController.java:427) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > at java.lang.System.checkIO(System.java:208) > at java.lang.System.setOut(System.java:148) > at > org.apache.maven.surefire.report.ReporterManager.resetStreams(ReporterManager.java:313) > at > org.apache.maven.surefire.report.ReporterManager.testFailed(ReporterManager.java:291) > at > org.apache.maven.surefire.report.ReporterManager.testError(ReporterManager.java:276) > at > org.apache.maven.surefire.junit.TestListenerInvocationHandler.handleAddError(TestListenerInvocationHandler.java:163) > at > org.apache.maven.surefire.junit.TestListenerInvocationHandler.invoke(TestListenerInvocationHandler.java:134) > at $Proxy0.addError(Unknown Source) > at junit.framework.TestResult.addError(TestResult.java:36) > at junit.framework.TestResult.runProtected(TestResult.java:133) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > 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 > org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:160) > at org.apache.maven.surefire.Surefire.run(Surefire.java:81) > 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 > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:182) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:743) > [INFO] > ------------------------------------------------------------------------ > I suppose it's a pb of java policy ? > Any idea > Thx -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira