[
http://jira.jboss.com/jira/browse/EJBTHREE-1058?page=all ]
Andrew Rubinger resolved EJBTHREE-1058.
---------------------------------------
Resolution: Rejected
This construct is a violation of EJB3 Spec 4.6.6 Bullet 1:
"The interface must not extend the javax.ejb.EJBObject or javax.ejb.EJBLocalObject
interface."
Cannot invoke EJBObject methods on EJBs without explicit Home
Interface Defined
-------------------------------------------------------------------------------
Key: EJBTHREE-1058
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-1058
Project: EJB 3.0
Issue Type: Bug
Reporter: Andrew Rubinger
Assigned To: Andrew Rubinger
Fix For: AS 5.0.0.Beta3
Original Estimate: 4 hours
Remaining Estimate: 4 hours
Assuming:
public interface StatefulRemote extends EJBObject{...}
...and:
@Stateful
@Remote(StatefulRemote.class)
@RemoteBinding(jndiBinding = StatefulRemote.JNDI_NAME_REMOTE)
public class StatefulRemoteBean
..when invoking:
Object obj = getInitialContext().lookup(StatefulRemote.JNDI_NAME_REMOTE);
EJBObject ejbObject = (EJBObject) obj;
ejbObject.remove();
...the following exception is encountered:
Could not resolve beanClass method from proxy call
java.lang.RuntimeException: Could not resolve beanClass method from proxy call
at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:330)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:135)
at $Proxy2.remove(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira