[jboss-jira] [JBoss JIRA] (WFCORE-4252) JmxControlledStateNotificationsTestCase test cases fail with security manager on Java 11
Ondrej Kotek (Jira)
issues at jboss.org
Tue Dec 11 10:11:00 EST 2018
Ondrej Kotek created WFCORE-4252:
------------------------------------
Summary: JmxControlledStateNotificationsTestCase test cases fail with security manager on Java 11
Key: WFCORE-4252
URL: https://issues.jboss.org/browse/WFCORE-4252
Project: WildFly Core
Issue Type: Bug
Components: JMX, Test Suite
Affects Versions: 8.0.0.Beta1
Environment: Java 11
Reporter: Ondrej Kotek
Assignee: ehsavoie Hugonnet
Three JmxControlledStateNotificationsTestCase test cases fail with security manager on Java 11 due to missing permissions:
{noformat}
[ERROR] Failure when constructing test Time elapsed: 0.004 s <<< FAILURE!
java.lang.AssertionError:
{"outcome" => "failed","failure-description" => {"WFLYCTL0080: Failed services" => {"test.deployment.jmx" => "java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/home/okotek/test/asts-core-intermit/testsuite/standalone/target/notifications/data/jmx-facade\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/home/okotek/test/asts-core-intermit/testsuite/standalone/target/notifications/data/jmx-facade\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")"}},"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.JMXListenerDeploymentSetupTask.deploy(JMXListenerDeploymentSetupTask.java:97)
at org.wildfly.test.jmx.JMXListenerDeploymentSetupTask.setup(JMXListenerDeploymentSetupTask.java:66)
at org.wildfly.core.testrunner.WildflyTestRunner.runSetupTasks(WildflyTestRunner.java:121)
at org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:107)
at org.junit.runners.Suite.runChild(Suite.java:128)
...
{noformat}
The failing tests:
* {{org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase}}
* {{org.wildfly.core.test.standalone.mgmt.events.JmxControlledStateNotificationsTestCase}}
* {{org.jboss.as.test.integration.jmx.JmxControlledStateNotificationsTestCase}}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list