Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
The call of getHomeHandle() and getPrimaryKey() methods cause a throw of exceptions. I get following ones:
ERROR [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (management-handler-threads - 1) Failed: org.jboss.as.test.integration.ejb.ejb2.reference.annotation.ReferenceAnnotationDescriptorTestCase.testStateful21Interfaces: java.rmi.RemoteException: Cannot invoke getHomeHandle() on Proxy for remote EJB StatefulEJBLocator{appName='', moduleName='reference-ejb2-ejb3', distinctName='', beanName='StatefulSession30', view='interface org.jboss.as.test.integration.ejb.ej b2.reference.annotation.StatefulSession30Home', sessionId='{[89, -118, 54, 120, -112, 29, 76, -4, -113, -108, -109, -61, 57, -32, -47, 21]}'} at org.jboss.ejb.client.EJBInvocationHandler$GetHomeHandleHandler.invoke(EJBInvocationHandler.java:304) [jboss-ejb-client-1.0.0.Beta11.jar:1.0.0.Beta11] at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:89) [jboss-ejb-client-1.0.0.Beta11.jar:1.0.0.Beta11] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:83) [jboss-ejb-client-1.0.0.Beta11.jar:1.0.0.Beta11] at $Proxy34.getHomeHandle(Unknown Source) at org.jboss.as.test.integration.ejb.ejb2.reference.annotation.ReferenceAnnotationDescriptorTestCase.testStateful21Interfaces(ReferenceAnnotationDescriptorTestCase.java:311) [referenc e-ejb2-ejb3.jar:]
and
ERROR [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (management-handler-threads - 2) Failed: org.jboss.as.test.integration.ejb.ejb2.reference.annotation.ReferenceAnnotationDescriptorTestCase.testStateless21Interfaces: java.rmi.RemoteException: Cannot invoke getPrimaryKey() om Proxy for remote EJB StatelessEJBLocator{appName='', moduleName='reference-ejb2-ejb3', distinctName='', beanName='Session30', view='interface org.jboss.as.test.integration.ejb.ejb2.ref erence.global.Session30'} at org.jboss.ejb.client.EJBInvocationHandler$GetPrimaryKeyHandler.invoke(EJBInvocationHandler.java:252) [jboss-ejb-client-1.0.0.Beta11.jar:1.0.0.Beta11] at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:89) [jboss-ejb-client-1.0.0.Beta11.jar:1.0.0.Beta11] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:83) [jboss-ejb-client-1.0.0.Beta11.jar:1.0.0.Beta11] at $Proxy33.getPrimaryKey(Unknown Source) at org.jboss.as.test.integration.ejb.ejb2.reference.annotation.ReferenceAnnotationDescriptorTestCase.testStateless21Interfaces(ReferenceAnnotationDescriptorTestCase.java:368) [referen ce-ejb2-ejb3.jar:]
Method getHomeHandle() does not work for stateful bean. It works for stateless bean.
Method getPrimaryKey() does not work for stateless and stateful beans.