JBoss MetaData Repository
  1. JBoss MetaData Repository
  2. JBMDR-73

"No original methods found" error when deploying EJBs that extend base classes

    Details

    • Affects:
      Compatibility/Configuration
    • Workaround Description:
      Hide

      Override and call 'super' on every subclassed method. Do not use any final methods in the base class.

      Show
      Override and call 'super' on every subclassed method. Do not use any final methods in the base class.
    • Similar Issues:
      Show 10 results 

      Description

      An error, new to JBoss 6 (works okay in JBoss 5.1.0)...

      "java.lang.IllegalStateException: No original methods found"

      ...halts deployment when you try to deploy an EJB that subclasses a base class with public methods.

      For example, if you have a base class 'PersistentEntityBean' that has a bunch of methods related to loading/saving/deleting, and then you extend that base class with 'EventBean' simply to override loading/saving (but without adding any extra methods), it will fail to deploy.

      A workaround (from the forum) appears to be to override every subclassed method and just call 'super'. However this error even occurs for public final methods, which clearly cannot be overridden.

      1. JBAS-8780.patch
        6 kB
        jaikiran pai
      2. JBMDR-73.patch
        10 kB
        jaikiran pai

        Issue Links

          Activity

          Hide
          Ales Justin
          added a comment -

          >> Will this still make it into 6.0.1?
          Sure, the cut of date is in early March.

          Show
          Ales Justin
          added a comment - >> Will this still make it into 6.0.1? Sure, the cut of date is in early March.
          Hide
          Robert Geisler
          added a comment -

          jboss-mdr.jar (19/Jan/11) solves the issue for me, too.
          thanks!!

          Show
          Robert Geisler
          added a comment - jboss-mdr.jar (19/Jan/11) solves the issue for me, too. thanks!!
          Hide
          Duc Le
          added a comment -

          Hi, did JbossAS team fix this bug in JBOSS AS 6.0.0 final?

          Show
          Duc Le
          added a comment - Hi, did JbossAS team fix this bug in JBOSS AS 6.0.0 final?
          Hide
          Richard Kennard
          added a comment -

          Duc Le,

          No. I am expecting it in 6.0.1.

          Regards,

          Richard.

          Show
          Richard Kennard
          added a comment - Duc Le, No. I am expecting it in 6.0.1. Regards, Richard.
          Hide
          Emannuel Silveira
          added a comment -

          What is the forecast for the version 6.0.1? This issue really will be fixed in this version?

          Show
          Emannuel Silveira
          added a comment - What is the forecast for the version 6.0.1? This issue really will be fixed in this version?

            People

            • Assignee:
              Ales Justin
              Reporter:
              Richard Kennard
            • Votes:
              11 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: