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

NullPointer Exception on trying to deploy MessageDrivenBean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.7.0
    • ejb3 simplified
    • None
    • All

    Description

      I am getting a NullPointerException on trying to deploy an MDB. The error occurs due to a ClassCastException in EjbJarUtils.
      This is because in the code a MessageDrivenBean is tried to be cast as a SessionBean. Fixing this reveals a lot of other errors because I guess the MDB container impl is incomplete . I am attaching two patches. mdb.patch is from <openejb3 home>\itests\openejb-itests-beans\src\main\java\org\apache\openejb\test directory while ejb-jar.patch is from
      <openejb3 home>\itests\openejb-itests-beans\src\main\resources\META-INF directory. Deploying this bean causes these errors.

      Attachments

        1. ejb-jar.patch
          2 kB
          Manu T George
        2. mdb.patch
          0.9 kB
          Manu T George
        3. patch[1]_r487986_OPENEJB-409.patch
          9 kB
          Manu T George

        Activity

          People

            manucet Manu T George
            manucet Manu T George
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: