[jboss-jira] [JBoss JIRA] (WFCORE-2194) StartSuspendedTestCase fails with security manager in WF core

Jan Tymel (JIRA) issues at jboss.org
Mon Jan 16 04:49:00 EST 2017


Jan Tymel created WFCORE-2194:
---------------------------------

             Summary: StartSuspendedTestCase fails with security manager in WF core
                 Key: WFCORE-2194
                 URL: https://issues.jboss.org/browse/WFCORE-2194
             Project: WildFly Core
          Issue Type: Bug
          Components: Test Suite
            Reporter: Jan Tymel
            Assignee: Tomaz Cerar


*org.jboss.as.test.manualmode.suspend.StartSuspendedTestCase#testStartSuspended*
{{cd testsuite/manualmode/}}
{{mvn test -Dtest=StartSuspendedTestCase -DtestLogToFile=false -Dsecurity.manager}}

{code}
10:44:10,392 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.test-undertow-server: org.jboss.msc.service.StartException in service jboss.test-undertow-server: Failed to start service
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1919)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "createXnioWorker")" in code source "(vfs:/content/web-suspend.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.web-suspend.jar:main" from Service Module Loader")
	at io.undertow.Undertow.start(Undertow.java:206)
	at org.wildfly.test.suspendresumeendpoint.TestUndertowService.start(TestUndertowService.java:94)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1963)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1896)
	... 3 more
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "createXnioWorker")" in code source "(vfs:/content/web-suspend.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.web-suspend.jar:main" from Service Module Loader")
	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:278)
	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
	at org.xnio.XnioWorker.<init>(XnioWorker.java:108)
	at org.xnio.nio.NioXnioWorker.<init>(NioXnioWorker.java:83)
	at org.xnio.nio.NioXnio.createWorker(NioXnio.java:214)
	at org.xnio.Xnio.createWorker(Xnio.java:466)
	at org.xnio.Xnio.createWorker(Xnio.java:453)
	at io.undertow.Undertow.start(Undertow.java:117)
	... 6 more
{code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list