Uploaded image for project: '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.

      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.

        Gliffy Diagrams

          Attachments

          1. JBAS-8780.patch
            6 kB
          2. JBMDR-73.ear
            7 kB
          3. JBMDR-73.patch
            10 kB
          4. JBMDR-73.zip
            26 kB
          5. jboss-mdr.jar
            188 kB
          6. jboss-mdr.jar
            188 kB

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: