[jboss-jira] [JBoss JIRA] Updated: (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 04:17:49 EDT 2008
[ https://jira.jboss.org/jira/browse/EJBTHREE-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jaikiran pai updated EJBTHREE-1453:
-----------------------------------
Attachment: EJBTHREE-1453 Testcase.patch
Attached the test case (EJBTHREE-1453 Testcase.patch) which illustrates:
1) NoSuchMethodException
2) NullPointerException
> 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 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