[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1453) Invoking a bean method which accepts a superclass param throws NoSuchMethodException

jaikiran pai (JIRA) jira-events at lists.jboss.org
Sat Aug 9 07:20:50 EDT 2008


     [ https://jira.jboss.org/jira/browse/EJBTHREE-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai resolved EJBTHREE-1453.
------------------------------------

    Resolution: Done


Test cases and fix committed. SVN Revision: 76848


> Invoking a bean method which accepts a superclass param throws NoSuchMethodException
> ------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-1453
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1453
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: proxy
>            Reporter: jaikiran pai
>            Assignee: jaikiran pai
>         Attachments: EJBTHREE-1453 proposed fix.patch, EJBTHREE-1453 Testcase.patch
>
>
> The following scenario fails:
> @Stateless
> @Local (MyBeanInterface.class)
> public class MyBean implements MyBeanInterface {
>  public void printObject(Object obj) {
>     // do something
>  }
> }
> SessionContainer sc = Utils.createSlsb(MyBean.class);
> ...
> Context ctx = new InitialContext();
> MyBeanInterface bean = (MyBeanInterface) ctx.lookup("blahblahblah");
> bean.printObject(new String("i am a string"));
> Fails with:
> Caused by: java.lang.NoSuchMethodException: 
> org.jboss.ejb3.test.proxy.jndiregistrar.MySLSBLocal.printObject(java.lang.String)
> 	at java.lang.Class.getDeclaredMethod(Class.java:1909)
> 	at org.jboss.ejb3.test.proxy.common.container.SessionContainer.invoke(SessionContainer.java:188)
> 	at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecPro
> xyInvocationHandlerBase.java:120)
> 	... 28 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list