[jboss-jira] [JBoss JIRA] Commented: (JBMDR-73) "No original methods found" error when deploying EJBs that extend base classes

jaikiran pai (JIRA) jira-events at lists.jboss.org
Wed Jan 19 08:11:50 EST 2011


    [ https://issues.jboss.org/browse/JBMDR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576488#comment-12576488 ] 

jaikiran pai commented on JBMDR-73:
-----------------------------------

Ales, the exception that Richard is mentioning is slightly different (although it lies in the same method of that class) from what appears to have been fixed. This newer issue is due to a *overloaded* method which causes this exception to be thrown. I have attached a new testcase (against current jboss-mdr trunk) JBMDR-73.patch which reproduces this issue.
 

> "No original methods found" error when deploying EJBs that extend base classes
> ------------------------------------------------------------------------------
>
>                 Key: JBMDR-73
>                 URL: https://issues.jboss.org/browse/JBMDR-73
>             Project: JBoss MetaData Repository
>          Issue Type: Bug
>          Components: Loader, MetaData
>            Reporter: Richard Kennard
>            Assignee: Ales Justin
>            Priority: Critical
>         Attachments: JBAS-8780.patch, JBMDR-73.ear, JBMDR-73.patch, JBMDR-73.zip, jboss-mdr.jar
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list