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

Richard Kennard (JIRA) jira-events at lists.jboss.org
Sun Jan 16 21:56:49 EST 2011


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

Richard Kennard edited comment on JBMDR-73 at 1/16/11 9:56 PM:
---------------------------------------------------------------

Ales,

Many thanks for attaching the JAR. I'm afraid it does not seem to work for me in my production app?

I have gone through and stripped my production app back to form a reproducible test case. The test case is 8 classes and 4 interfaces containing only skeleton implementations. Hopefully that's small enough? Please find attached the EAR which fails to deploy with the error...

"No original methods found: public com.genericapp.entity.NamedEntity com.genericapp.session.EventBean.loadByExample(java.lang.Class,java.util.Map)"

I also attach full source code.

Regards,

Richard.

      was (Author: kennardconsulting):
    Ales,

Many thanks for attaching the JAR. I'm afraid it does not seem to work for me in my production app?

I have gone through and stripped my production app back to form a reproducible test case. The test case is 8 classes and 4 interfaces containing only skeleton implementations. Hopefully that's enough? Please find attached the EAR which fails to deploy with the error...

"No original methods found: public com.genericapp.entity.NamedEntity com.genericapp.session.EventBean.loadByExample(java.lang.Class,java.util.Map)"

I also attach full source code.

Regards,

Richard.
  
> "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.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 'EmployerBean' 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