Details
-
Bug
-
Resolution: Won't Do
-
Blocker
-
None
-
1.1.4.Final
-
None
Description
When my Message Driven Bean is executed by container the class org.jboss.weld.ejb.SessionBeanInterceptor is executed but the created InvocationContext has a null contextData field. That generate the following error in the MDB execution.
java.lang.IllegalStateException: getMessageContext() can only be called while servicing a request
at com.sun.xml.ws.server.AbstractWebServiceContext.getMessageContext(AbstractWebServiceContext.java:74)
at com.oracle.pitchfork.intercept.MethodInvocationInvocationContext.getContextData(MethodInvocationInvocationContext.java:92)
at org.jboss.weld.context.ejb.EjbRequestContextImpl.dissociate(EjbRequestContextImpl.java:40)
at org.jboss.weld.context.ejb.EjbRequestContextImpl.dissociate(EjbRequestContextImpl.java:12)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:56)
Truncated. see log file for complete stacktrace
The same MessageDrivenBean was executed with sucess when I did execute in a simple application without Weld.