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

OpenEJB runs EJB Business Interface Method on Proxy instead of Bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.7.0
    • None
    • None

    Description

      If an EJB overrides a method of a base class with a narrowed return type, OpenEJB runs the method on the dynamic proxy instead of the EJB class.

      I have prepared a slightly modified version of the DemoApp that is created by the maven-tomes-plugin that shows the effect.

      If you run it on tomee and try to list the available books, you get an NPE in BookService.getAllBooks() and the System.err-Stream shows the message:

      > getAllBooks called on class de.nobiscum.mff.bridgemethodbug.application.BookService$$LocalBeanProxy

      Attachments

        1. BridgeMethodBug.zip
          21 kB
          Markus Frisch

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            MarkusFrisch Markus Frisch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: