activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Message not redirected to DLQ when exception thrown by MDB
Date Thu, 17 Mar 2016 13:10:03 GMT
Sorry if you've said this already (it rings a bell but I couldn't find it
when I scanned this thread), but why is the AuthorizationInterceptor saying
that your onMessage() method is disallowed?

EJB Invocation failed on component TestMessageBeanLow for
method public void de.adesso.tma.test.ejb.
ic void de.adesso.tma.test.ejb.TestMessageBean.onMessage(javax.jms.Message)
of bean: TestMessageBeanLow is not allowed
        at
org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:134

Is that expected?

Tim
On Mar 16, 2016 8:28 AM, "THMayr" <Thomas.Mayr@adesso.de> wrote:

> Well, it's not my job to figure out who is responsibe for this error, as
> long
> as it is not my fault. I have to evaluate products for my customer.
>
> Consider also there is another difference between the WildFly/ActiveMQ and
> WebLogic/ActiveMQ configuration. In the Wildfly configuration, the ActiveMQ
> resource adapter is involved and with WebLogic the connection is made by
> the
> ActiveMQ JNDI connection factory.
>
> I have no idea how to turn on logging or tracing. But what I can see on the
> WildFliy console is, that WildFly throws an exception and afterwards the
> ActiveMQSession throws an exception caused by the first one. In this case I
> configured the MDB so, that the container is not allowed to invoke the
> method /onMessage()/:
>
> 08:31:53,279 ERROR [org.jboss.as.ejb3.invocation] (default-threads - 7)
> WFLYEJB0034: EJB Invocation failed on component TestMessageBeanLow for
> method public void de.adesso.tma.test.ejb.
> ic void de.adesso.tma.test.ejb.TestMessageBean.onMessage(javax.jms.Message)
> of bean: TestMessageBeanLow is not allowed
>         at
>
> org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:134)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:53)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
> org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
>         at
>
> org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)
>         at
>
> org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
> org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
>         at
>
> org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
>         at
> org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)
>         at
>
> org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
>         at
>
> org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
>         at
> de.adesso.tma.test.ejb.TestMessageBean$$$view10.onMessage(Unknown
> Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
>
> org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139)
>         at
>
> org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)
>         at
> de.adesso.tma.test.ejb.TestMessageBean$$$endpoint5.onMessage(Unknown
> Source)
>         at
>
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
>         at
>
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
>         at
> org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:1041)
>         at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
>         at
> org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:223)
>         at
>
> org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
>         at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)
>         at
> org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
>         at
> org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:828)
>         at java.lang.Thread.run(Unknown Source)
>         at org.jboss.threads.JBossThread.run(JBossThread.java:320)
>
> 08:31:53,284 ERROR [org.apache.activemq.ActiveMQSession] (default-threads -
> 7) error dispatching message: : javax.ejb.EJBAccessException: WFLYEJB0364:
> Invocation on method: public void
>         at
>
> org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:134)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:53)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
> org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
>         at
>
> org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)
>         at
>
> org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
> org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
>         at
>
> org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
>         at
> org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)
>         at
>
> org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
>         at
>
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
>         at
>
> org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
>         at
>
> org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
>         at
> de.adesso.tma.test.ejb.TestMessageBean$$$view10.onMessage(Unknown
> Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
>
> org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139)
>         at
>
> org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)
>         at
> de.adesso.tma.test.ejb.TestMessageBean$$$endpoint5.onMessage(Unknown
> Source)
>         at
>
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:123)
>         at
>
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:64)
>         at
> org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:1041)
>         at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
>         at
> org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:223)
>         at
>
> org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
>         at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)
>         at
> org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
>         at
> org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:828)
>         at java.lang.Thread.run(Unknown Source)
>         at org.jboss.threads.JBossThread.run(JBossThread.java:320)
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Message-not-redirected-to-DLQ-when-exception-thrown-by-MDB-tp4709187p4709451.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message