[
http://jira.jboss.com/jira/browse/EJBTHREE-1059?page=all ]
Andrew Lee Rubinger updated EJBTHREE-1059:
------------------------------------------
Description:
EJB 3 Core Specification Section 4.6.8: The return type for a create<METHOD> method
must be the session bean's remote interface type.
EJB 3 Core Specification Section 4.6.10: The return type for a create<METHOD> method
must be the session bean's local interface type.
Using the proxy as if it would be an EJBObject/EJBLocalObject results in class cast
exceptions.
java.lang.ClassCastException: $Proxy9
at
org.jboss.ejb3.test.stateful.unit.RemoteUnitTestCase.testEJBObject(RemoteUnitTestCase.java:208)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
was:
EJB 3 Core Specification Section 4.6.8: The return type for a create<METHOD> method
must be the session bean's remote interface type.
Using the proxy as if it would be an EJBObject results in class cast exceptions.
java.lang.ClassCastException: $Proxy9
at
org.jboss.ejb3.test.stateful.unit.RemoteUnitTestCase.testEJBObject(RemoteUnitTestCase.java:208)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Return a business interface from a home create method must not be
allowed
-------------------------------------------------------------------------
Key: EJBTHREE-1059
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-1059
Project: EJB 3.0
Issue Type: Bug
Affects Versions: AS 4.2.2.GA
Reporter: Carlo de Wolf
Assigned To: Andrew Lee Rubinger
EJB 3 Core Specification Section 4.6.8: The return type for a create<METHOD> method
must be the session bean's remote interface type.
EJB 3 Core Specification Section 4.6.10: The return type for a create<METHOD>
method must be the session bean's local interface type.
Using the proxy as if it would be an EJBObject/EJBLocalObject results in class cast
exceptions.
java.lang.ClassCastException: $Proxy9
at
org.jboss.ejb3.test.stateful.unit.RemoteUnitTestCase.testEJBObject(RemoteUnitTestCase.java:208)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
--
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