[JBoss JIRA] (WFLY-11349) Tests in org.jboss.as.test.clustering.cluster fails with security manager
by Radoslav Husar (Jira)
[ https://issues.jboss.org/browse/WFLY-11349?page=com.atlassian.jira.plugin... ]
Radoslav Husar reassigned WFLY-11349:
-------------------------------------
Assignee: Radoslav Husar
> Tests in org.jboss.as.test.clustering.cluster fails with security manager
> -------------------------------------------------------------------------
>
> Key: WFLY-11349
> URL: https://issues.jboss.org/browse/WFLY-11349
> Project: WildFly
> Issue Type: Bug
> Components: Clustering, Test Suite
> Affects Versions: 14.0.0.Final
> Reporter: Martin Choma
> Assignee: Radoslav Husar
> Priority: Major
> Labels: security-manager
>
> {noformat}
> org.jboss.as.test.clustering.cluster.cdi (1)
> CdiFailoverTestCase.test
> org.jboss.as.test.clustering.cluster.jsf (2)
> JSFFailoverTestCase.testGracefulSimpleFailover
> JSFFailoverTestCase.testGracefulUndeployFailover
> org.jboss.as.test.clustering.cluster.provider (1)
> ServiceProviderRegistrationTestCase.test
> org.jboss.as.test.clustering.cluster.singleton (4)
> SingletonBackupServiceTestCase.testSingletonService
> SingletonDeploymentDescriptorTestCase.test
> SingletonDeploymentJBossAllTestCase.test
> SingletonPartitionTestCase.testSingletonService
> org.jboss.as.test.clustering.cluster.xsite (1)
> XSiteSimpleTestCase.test
> {noformat}
> Seems to me doPrivileged block is missing in server code somewhere. There are errors like
> {noformat}
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect")" in code source "(vfs:/content/CdiFailoverTestCase.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.CdiFailoverTestCase.war" from Service Module Loader")
> at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:294)
> at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:191)
> at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1564)
> at org.wildfly.security.manager.WildFlySecurityManager.checkPackageAccess(WildFlySecurityManager.java:490)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:318)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at org.jboss.modules.JDKSpecific.getSystemClass(JDKSpecific.java:180)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:395)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
> at org.jboss.marshalling.river.Protocol.<clinit>(Protocol.java:310)
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.lang.RuntimePermission\" \"accessDeclaredMembers\")\" in code source \"(vfs:/content/XSiteSimpleTestCase.war/WEB-INF/classes <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.XSiteSimpleTestCase.war\" from Service Module Loader\")"}}}}
> Caused by: java.lang.ExceptionInInitializerError
> at org.jboss.marshalling.river.RiverMarshaller.<clinit>(RiverMarshaller.java:1274)
> {noformat}
> [1] https://ci.wildfly.org/viewLog.html?buildId=128138&buildTypeId=WF_MasterS...
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 8 months
[JBoss JIRA] (WFLY-5574) org.wildfly.test.extension.rts InboundBridgeTestCase failing when transaction uses JTS
by Tom Jenkinson (Jira)
[ https://issues.jboss.org/browse/WFLY-5574?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson reassigned WFLY-5574:
-----------------------------------
Assignee: Michael Musgrove
> org.wildfly.test.extension.rts InboundBridgeTestCase failing when transaction uses JTS
> --------------------------------------------------------------------------------------
>
> Key: WFLY-5574
> URL: https://issues.jboss.org/browse/WFLY-5574
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite, Transactions
> Affects Versions: 10.0.0.CR3
> Reporter: Ondra Chaloupka
> Assignee: Michael Musgrove
> Priority: Minor
> Attachments: server.log
>
>
> There is failures in testcase org.wildfly.test.extension.rts.InboundBridgeTestCase when transaction uses JTS.
> Example of the failure
> {code}
> testCommit(org.wildfly.test.extension.rts.InboundBridgeTestCase) Time elapsed: 2.54 sec <<< FAILURE!
> java.lang.AssertionError: expected:<4> but was:<5>
> {code}
> The JBOSS_HOME distribution is change to transaction to be run with JTS: changing the {{docs/example/standalone-rts.xml}} to switch transactions parameter in iiop orb subsystem to {{full}} and adding {{jts}} element to transactions subsystem.
> When JBOSS_HOME is set then I've run the test in this way
> {{./integration-tests.sh clean install -Dts.noSmoke -Dts.rts -Djboss.dist=$JBOSS_HOME -Dtest=InboundBridgeTestCase}}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 8 months