-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Beta27
-
None
When running on a server with Security Manager enabled the EJBLocator requires ReflectPermission("suppressAccessChecks") due to its static initialization code[1], see the following stracktrace:
Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError ... 191 more Caused by: java.lang.ExceptionInInitializerError at org.jboss.ejb.client.EJBRootContext.lookupNative(EJBRootContext.java:154) at org.wildfly.naming.client.AbstractContext.lookup(AbstractContext.java:88) at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:153) at javax.naming.InitialContext.lookup(InitialContext.java:417) at javax.naming.InitialContext.lookup(InitialContext.java:417) at org.jboss.as.test.multinode.transaction.async.ClientBean.getRemote(ClientBean.java:53) at org.jboss.as.test.multinode.transaction.async.ClientBean.callToStatusByTransactionmanager(ClientBean.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:327) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240) at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:103) ... 188 more Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.reflect.ReflectPermission" "suppressAccessChecks")" in code source "(vfs:/content/client-txt-propag-async.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.client-txt-propag-async.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.reflect.AccessibleObject.setAccessible(AccessibleObject.java:128) at org.jboss.ejb.client.EJBLocator.<clinit>(EJBLocator.java:71) ... 211 more
- causes
-
WFLY-8375 Some tests fail with security manager due to lack of permission to read EJB client
- Closed
- is cloned by
-
JBEAP-10968 EJBLocator requires ReflectPermission("suppressAccessChecks") when running on server with Security Manager enabled
- Closed
- is incorporated by
-
WFLY-8796 Upgrade EJB client to 4.0.0.Beta28
- Closed