[
https://issues.jboss.org/browse/ISPN-6480?page=com.atlassian.jira.plugin....
]
Vojtech Juranek updated ISPN-6480:
----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
https://github.com/infinispan/infinispan/pull/4228
SecurityManagerCacheAuthorizationTest fails
--------------------------------------------
Key: ISPN-6480
URL:
https://issues.jboss.org/browse/ISPN-6480
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Reporter: Vojtech Juranek
Assignee: Vojtech Juranek
{{ SecurityManagerCacheAuthorizationTest.testAllCombinations}} fails with
{noformat}
java.security.PrivilegedActionException: java.lang.Exception: Unexpected
non-SecurityException
at org.infinispan.security.Security.doAs(Security.java:145)
at
org.infinispan.security.CacheAuthorizationTest.testAllCombinations(CacheAuthorizationTest.java:143)
at
org.infinispan.security.SecurityManagerCacheAuthorizationTest.testAllCombinations(SecurityManagerCacheAuthorizationTest.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
at org.testng.SuiteRunner.run(SuiteRunner.java:254)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:205)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:108)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.lang.Exception: Unexpected non-SecurityException
at
org.infinispan.security.CacheAuthorizationTest$5.run(CacheAuthorizationTest.java:162)
at
org.infinispan.security.CacheAuthorizationTest$5.run(CacheAuthorizationTest.java:143)
at org.infinispan.security.Security.doAs(Security.java:143)
... 30 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.infinispan.security.CacheAuthorizationTest$5.run(CacheAuthorizationTest.java:147)
... 32 more
Caused by: org.infinispan.IllegalLifecycleStateException: ISPN000324: ___defaultcache is
in 'STOPPING' state and this is an invocation not belonging to an on-going
transaction, so it does not accept new invocations. Either restart it or recreate the
cache container.
at
org.infinispan.transaction.impl.TransactionTable.getOrCreateLocalTransaction(TransactionTable.java:425)
at
org.infinispan.context.TransactionalInvocationContextFactory.createInvocationContext(TransactionalInvocationContextFactory.java:70)
at org.infinispan.cache.impl.CacheImpl.getInvocationContext(CacheImpl.java:831)
at
org.infinispan.cache.impl.CacheImpl.getInvocationContextWithImplicitTransaction(CacheImpl.java:822)
at org.infinispan.cache.impl.CacheImpl.putIfAbsent(CacheImpl.java:1248)
at org.infinispan.cache.impl.CacheImpl.putIfAbsent(CacheImpl.java:1236)
at org.infinispan.cache.impl.CacheImpl.putIfAbsent(CacheImpl.java:256)
at
org.infinispan.security.impl.SecureCacheImpl.putIfAbsent(SecureCacheImpl.java:204)
at
org.infinispan.security.SecureCacheTestDriver.testPutIfAbsent_Object_Object_long_TimeUnit(SecureCacheTestDriver.java:281)
... 37 more
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)