[jboss-jira] [JBoss JIRA] (WFLY-9063) TxException*TestCase fail with security manager
Ondrej Kotek (JIRA)
issues at jboss.org
Mon Jul 10 04:26:01 EDT 2017
[ https://issues.jboss.org/browse/WFLY-9063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondrej Kotek moved JBEAP-12005 to WFLY-9063:
--------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-9063 (was: JBEAP-12005)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: EJB
Test Suite
Transactions
(was: EJB)
(was: Test Suite)
(was: Transactions)
Affects Version/s: 11.0.0.Beta1
(was: 7.1.0.ER2)
> TxException*TestCase fail with security manager
> -----------------------------------------------
>
> Key: WFLY-9063
> URL: https://issues.jboss.org/browse/WFLY-9063
> Project: WildFly
> Issue Type: Bug
> Components: EJB, Test Suite, Transactions
> Affects Versions: 11.0.0.Beta1
> Reporter: Ondrej Kotek
> Labels: security-manager
> Attachments: TxExceptionEjbClientTestCase-output.txt, TxExceptionTestCase-output.txt
>
>
> {{TxException*TestCase}} fail with security manager because of missing permission "("java.lang.RuntimePermission" "accessDeclaredMembers")":
> {noformat}
> ERROR [org.jboss.as.ejb3.invocation] (default task-9) WFLYEJB0034: EJB Invocation failed on component CmtEjb3 for method public abstract void org.jboss.as.test.integration.ejb.transaction.exception.bean.TestBean.throwExceptionFromTm(org.jboss.as.test.integration.ejb.transaction.exception.TestConfig$TxManagerException) throws java.lang.Exception: javax.ejb.EJBTransactionRolledbackException: WFLYEJB0457: Unexpected Error
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:154)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:257)
> ...
> Caused by: java.lang.ExceptionInInitializerError
> at org.jboss.as.test.integration.ejb.transaction.exception.TestXAResource.createXATestExceptionClass(TestXAResource.java:164)
> at org.jboss.as.test.integration.ejb.transaction.exception.TestXAResource.createDriverSpecificXAException(TestXAResource.java:144)
> ...
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "accessDeclaredMembers")" in code source "(vfs:/content/tx-exception-test.ear/ejb.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.tx-exception-test.ear.ejb.jar" 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 java.lang.Class.checkMemberAccess(Class.java:2348)
> ...
> {noformat}
> After adding the permission, there are some issues with javassist, see attached logs.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list