Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-2083

Jax-RS Resource annotated with @ManagedBean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tomee
    • Labels:
      None
    • Environment:
      Windows 7. TomEE JAXRS 1.6.0

      Description

      JAX-RS resource annotated with @ManagedBean throws the following exception when attempting to invoke a method on the resource:

      Caused by: org.apache.openejb.SystemException: java.lang.NullPointerException: Cannot obtain an instance of the stateful session bean with a null session id: Cannot obtain an instance of the stateful session bean with a null session id
      at org.apache.openejb.core.managed.ManagedContainer.obtainInstance(ManagedContainer.java:630)
      at org.apache.openejb.core.managed.ManagedContainer.businessMethod(ManagedContainer.java:586)
      ... 40 more

      The resource only has stateless session beans that are injected into it; no stateful session beans.

      The application works fine on TomEE JAX-RS 1.5.2.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              laloia Lou Aloia
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: