]
Jan Tymel updated WFCORE-2193:
------------------------------
Environment: IBM JDK
JmxControlledStateNotificationsTestCase fails with security manager
in WF core
------------------------------------------------------------------------------
Key: WFCORE-2193
URL:
https://issues.jboss.org/browse/WFCORE-2193
Project: WildFly Core
Issue Type: Bug
Components: Test Suite
Environment: IBM JDK
Reporter: Jan Tymel
Assignee: Ingo Weiss
Fix For: 3.0.0.Alpha23
*org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase*
{{cd testsuite/domain/}}
{{mvn test -DtestLogToFile=false -Dtest=JmxControlledStateNotificationsTestCase
-Dsecurity.manager}}
*org.wildfly.core.test.standalone.mgmt.events.JmxControlledStateNotificationsTestCase*
{{cd testsuite/manualmode/}}
{{mvn test -DtestLogToFile=false -Dtest=JmxControlledStateNotificationsTestCase
-Dsecurity.manager}}
Both test cases fail with:
{code}
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec <<<
FAILURE! - in
org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase
org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase Time
elapsed: 0.007 sec <<< FAILURE!
java.lang.AssertionError: {"outcome" =>
"failed","result" => undefined,"failure-description"
=> {"WFLYDC0074: Operation failed or was rolled back on all servers. Server
failures:" => {"server-group" => {"main-server-group" =>
{"host" => {"master" => {"main-one" =>
{"WFLYCTL0080: Failed services" => {"test.deployment.jmx" =>
"org.jboss.msc.service.StartException in service test.deployment.jmx:
java.security.AccessControlException: WFSM000001: Permission check failed (permission
\"(\"java.util.PropertyPermission\" \"user.dir\"
\"read\")\" in code source
\"(vfs:/content/test-jmx-notifications-deployment.jar <no signer
certificates>)\" of \"ModuleClassLoader for Module
\"deployment.test-jmx-notifications-deployment.jar:main\" from Service Module
Loader\")
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed
(permission \"(\"java.util.PropertyPermission\" \"user.dir\"
\"read\")\" in code source
\"(vfs:/content/test-jmx-notifications-deployment.jar <no signer
certificates>)\" of \"ModuleClassLoader for Module
\"deployment.test-jmx-notifications-deployment.jar:main\" from Service Module
Loader\")"},"WFLYCTL0412: Required services that are not installed:"
=> ["test.deployment.jmx"],"WFLYCTL0180: Services with
missing/unavailable dependencies" => undefined}}}}}}},"rolled-back"
=> true,"server-groups" => {"main-server-group" =>
{"host" => {"master" => {"main-one" =>
{"response" => {"outcome" =>
"failed","failure-description" => {"WFLYCTL0080: Failed
services" => {"test.deployment.jmx" =>
"org.jboss.msc.service.StartException in service test.deployment.jmx:
java.security.AccessControlException: WFSM000001: Permission check failed (permission
\"(\"java.util.PropertyPermission\" \"user.dir\"
\"read\")\" in code source
\"(vfs:/content/test-jmx-notifications-deployment.jar <no signer
certificates>)\" of \"ModuleClassLoader for Module
\"deployment.test-jmx-notifications-deployment.jar:main\" from Service Module
Loader\")
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed
(permission \"(\"java.util.PropertyPermission\" \"user.dir\"
\"read\")\" in code source
\"(vfs:/content/test-jmx-notifications-deployment.jar <no signer
certificates>)\" of \"ModuleClassLoader for Module
\"deployment.test-jmx-notifications-deployment.jar:main\" from Service Module
Loader\")"},"WFLYCTL0412: Required services that are not installed:"
=> ["test.deployment.jmx"],"WFLYCTL0180: Services with
missing/unavailable dependencies" => undefined},"rolled-back" =>
true}}}}}}}
at org.junit.Assert.fail(Assert.java:88)
at
org.jboss.as.test.integration.management.rbac.RbacUtil.checkOperationResult(RbacUtil.java:115)
at
org.jboss.as.test.integration.management.rbac.RbacUtil.executeOperation(RbacUtil.java:100)
at
org.wildfly.test.jmx.JMXFacadeListenerDeploymentSetupTask.setup(JMXFacadeListenerDeploymentSetupTask.java:75)
at
org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase.setupDomain(JmxControlledStateNotificationsTestCase.java:66)
org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase Time
elapsed: 0.014 sec <<< FAILURE!
java.lang.AssertionError: {"outcome" =>
"failed","result" => undefined,"failure-description"
=> {"WFLYDC0074: Operation failed or was rolled back on all servers. Server
failures:" => {"server-group" => {"main-server-group" =>
{"host" => {"master" => {"main-one" =>
"WFLYCTL0216: Management resource '[(\"deployment\" =>
\"test-jmx-notifications-deployment.jar\")]' not
found"}}}}}},"rolled-back" => true,"server-groups" =>
{"main-server-group" => {"host" => {"master" =>
{"main-one" => {"response" => {"outcome" =>
"failed","failure-description" => "WFLYCTL0216: Management
resource '[(\"deployment\" =>
\"test-jmx-notifications-deployment.jar\")]' not
found","rolled-back" => true}}}}}}}
at org.junit.Assert.fail(Assert.java:88)
at
org.jboss.as.test.integration.management.rbac.RbacUtil.checkOperationResult(RbacUtil.java:115)
at
org.jboss.as.test.integration.management.rbac.RbacUtil.executeOperation(RbacUtil.java:100)
at
org.wildfly.test.jmx.JMXFacadeListenerDeploymentSetupTask.tearDown(JMXFacadeListenerDeploymentSetupTask.java:115)
at
org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase.tearDownDomain(JmxControlledStateNotificationsTestCase.java:71)
{code}