Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2194

StartSuspendedTestCase fails with security manager in WF core

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.0.Alpha23
    • None
    • Test Suite
    • None

    Description

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

      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
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-iweiss Ingo Weiss
              jtymel Jan Tymel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: