[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-1453) Invoking a bean method which accepts a superclass param throws NoSuchMethodException
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Thu Aug 7 10:05:50 EDT 2008
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
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