Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1491

SessionBeanInterceptor error on MessageDrivenBean

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Blocker
    • None
    • 1.1.4.Final
    • None
    • Hide

      Configure a simple MDB and send one message to the Queue. The reported error will be generated on the message driven bean activate

      Show
      Configure a simple MDB and send one message to the Queue. The reported error will be generated on the message driven bean activate

    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.

      Attachments

        Activity

          People

            rhn-engineering-jharting Jozef Hartinger
            lconceicao Luciano Conceição (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: