[jboss-jira] [JBoss JIRA] (WFLY-6190) SingletonReentrantTestCase fails with security manager enabled

Eduardo Silva (JIRA) issues at jboss.org
Sun Feb 28 13:17:00 EST 2016


    [ https://issues.jboss.org/browse/WFLY-6190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169257#comment-13169257 ] 

Eduardo Silva commented on WFLY-6190:
-------------------------------------

The test only pass if -Dsecurity.manager is removed not verifying if the jar is signed. 

./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false  -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase



> SingletonReentrantTestCase fails with security manager enabled
> --------------------------------------------------------------
>
>                 Key: WFLY-6190
>                 URL: https://issues.jboss.org/browse/WFLY-6190
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Hynek Švábek
>
> *org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase#testReadCall*
> *org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase#testWriteCall*
> {{./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false -Dsecurity.manager -Dts.basic -Dts.noSmoke -Dtest=org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase}} 
> fails with
> {code}
> java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "modifyThread")" in code source "(vfs:/content/reentrant-test.jar <no signer certificates>)" of "null")
> 	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
> 	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
> 	at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:735)
> 	at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:1387)
> 	at java.util.concurrent.Executors$DelegatedExecutorService.shutdown(Executors.java:669)
> 	at org.jboss.as.test.integration.ejb.singleton.reentrant.SingletonReentrantTestCase.testWriteCall(SingletonReentrantTestCase.java:90)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list