[jboss-jira] [JBoss JIRA] (AS7-3157) Methods getHomeHandle() and getPrimaryKey() throw exception

Ondřej Chaloupka (Created) (JIRA) jira-events at lists.jboss.org
Mon Jan 2 09:40:09 EST 2012


Methods getHomeHandle() and getPrimaryKey() throw exception
-----------------------------------------------------------

                 Key: AS7-3157
                 URL: https://issues.jboss.org/browse/AS7-3157
             Project: Application Server 7
          Issue Type: Bug
          Components: EJB
            Reporter: Ondřej Chaloupka
            Assignee: John Bailey


The call of getHomeHandle() and getPrimaryKey() methods cause a throw of exceptions. I get following ones:

{code}
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:]   
{code}

and

{code}
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:]
{code}

Method getHomeHandle() does not work for stateful bean. It works for stateless bean.
Method getPrimaryKey() does not work for stateless and stateful beans.

Test for check:
https://github.com/ochaloup/jboss-as/blob/JBQA-5483-test-migration-ejb2refer-annotation/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/ejb2/reference/annotation/ReferenceAnnotationDescriptorTestCase.java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list