[
https://issues.jboss.org/browse/WFCORE-2193?page=com.atlassian.jira.plugi...
]
Jan Tymel reopened WFCORE-2193:
-------------------------------
Reopening due to the issue with IBM JDK. The test located in domain submodule of testsuite
fails with IBM JDK. On OpenJDK and "standard" (~Oracle) JDK passes.
The output is following:
{code}
[Server:main-one] 13:07:49,343 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6)
MSC000001: Failed to start service test.deployment.jmx:
org.jboss.msc.service.StartException in service test.deployment.jmx:
java.security.AccessControlException: WFSM000001: Permission check failed (permission
"("java.io.FilePermission"
"/home/jtymel/jboss-eap/src/7.1/jboss-eap-7.1.0.DR12-core/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master"
"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")
[Server:main-one] at
org.wildfly.test.jmx.ServiceActivatorDeployment.start(ServiceActivatorDeployment.java:111)
[Server:main-one] at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
[jboss-msc-1.2.7.SP1-redhat-1.jar:1.2.7.SP1-redhat-1]
[Server:main-one] at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
[jboss-msc-1.2.7.SP1-redhat-1.jar:1.2.7.SP1-redhat-1]
[Server:main-one] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
[rt.jar:1.8.0]
[Server:main-one] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[rt.jar:1.8.0]
[Server:main-one] at java.lang.Thread.run(Thread.java:785) [vm.jar:1.8.0]
[Server:main-one] Caused by: java.security.AccessControlException: WFSM000001: Permission
check failed (permission "("java.io.FilePermission"
"/home/jtymel/jboss-eap/src/7.1/jboss-eap-7.1.0.DR12-core/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master"
"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")
[Server:main-one] at
org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:278)
[wildfly-elytron-1.1.0.Beta25-redhat-1.jar:1.1.0.Beta25-redhat-1]
[Server:main-one] at
org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
[wildfly-elytron-1.1.0.Beta25-redhat-1.jar:1.1.0.Beta25-redhat-1]
[Server:main-one] at java.lang.SecurityManager.checkRead(SecurityManager.java:901)
[rt.jar:1.8.0]
[Server:main-one] at
org.wildfly.security.manager.WildFlySecurityManager.checkRead(WildFlySecurityManager.java:350)
[wildfly-elytron-1.1.0.Beta25-redhat-1.jar:1.1.0.Beta25-redhat-1]
[Server:main-one] at sun.nio.fs.UnixPath.checkRead(UnixPath.java:815) [rt.jar:1.8.0]
[Server:main-one] at
sun.nio.fs.UnixFileSystemProvider.checkAccess(UnixFileSystemProvider.java:302)
[rt.jar:1.8.0]
[Server:main-one] at java.nio.file.Files.createDirectories(Files.java:757)
[rt.jar:1.8.0]
[Server:main-one] at
org.wildfly.test.jmx.ControlledStateNotificationListener.init(ControlledStateNotificationListener.java:57)
[Server:main-one] at
org.wildfly.test.jmx.ControlledStateNotificationListener.<init>(ControlledStateNotificationListener.java:43)
[Server:main-one] at java.lang.J9VMInternals.newInstanceImpl(Native Method)
[vm.jar:1.8.0]
[Server:main-one] at java.lang.Class.newInstance(Class.java:1899) [vm.jar:1.8.0]
[Server:main-one] at
org.wildfly.test.jmx.ServiceActivatorDeployment.start(ServiceActivatorDeployment.java:106)
[Server:main-one] ... 5 more
[Server:main-one]
[Server:main-one] 13:07:49,353 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 7) WFLYCTL0013: Operation ("add") failed -
address: ([("deployment" =>
"test-jmx-notifications-deployment.jar")]) - failure description: {
[Server: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.io.FilePermission\"
\"/home/jtymel/jboss-eap/src/7.1/jboss-eap-7.1.0.DR12-core/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\"
\"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\")
[Server:main-one] Caused by: java.security.AccessControlException: WFSM000001:
Permission check failed (permission \"(\"java.io.FilePermission\"
\"/home/jtymel/jboss-eap/src/7.1/jboss-eap-7.1.0.DR12-core/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\"
\"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\")"},
[Server:main-one] "WFLYCTL0412: Required services that are not installed:"
=> ["test.deployment.jmx"]
[Server:main-one] }
[Server:main-one] 13:07:49,365 ERROR [org.jboss.as.server] (ServerService Thread Pool --
7) WFLYSRV0021: Deploy of deployment "test-jmx-notifications-deployment.jar" was
rolled back with the following failure message:
[Server:main-one] {
[Server: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.io.FilePermission\"
\"/home/jtymel/jboss-eap/src/7.1/jboss-eap-7.1.0.DR12-core/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\"
\"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\")
[Server:main-one] Caused by: java.security.AccessControlException: WFSM000001:
Permission check failed (permission \"(\"java.io.FilePermission\"
\"/home/jtymel/jboss-eap/src/7.1/jboss-eap-7.1.0.DR12-core/testsuite/domain/target/domains/JmxControlledStateNotificationsTestCase/master\"
\"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\")"},
[Server:main-one] "WFLYCTL0412: Required services that are not installed:"
=> ["test.deployment.jmx"]
[Server:main-one] }
[Server:main-one] 13:07:49,369 INFO [org.jboss.as.server.deployment] (MSC service thread
1-4) WFLYSRV0028: Stopped deployment test-jmx-notifications-deployment.jar (runtime-name:
test-jmx-notifications-deployment.jar) in 11ms
[Server:main-one] 13:07:49,377 INFO [org.jboss.as.controller] (ServerService Thread Pool
-- 7) WFLYCTL0183: Service status report
[Server:main-one] WFLYCTL0186: Services which failed to start: service
test.deployment.jmx
[Server:main-one]
Failed: {
"address" => [
("server-group" => "main-server-group"),
("deployment" => "test-jmx-notifications-deployment.jar")
],
"operation" => "add",
"enabled" => true
}
{code}
The test located in manualmode submodule passes fine on all JDKs.
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}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)