Issue Type: Bug Bug
Affects Versions: 1.1.0.Final
Assignee: Jozef Hartinger
Components: Interceptors and Decorators
Created: 30/Aug/13 9:02 AM
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 simples application without Weld.

Environment: I am using message driven bean on local server weblogic 12c 12.1.1.0
Project: Weld
Priority: Blocker Blocker
Reporter: Luciano Conceição
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira