users@glassfish.java.net

Re: Embedded EJB Container: CCE on Remote beans

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Tue, 23 Nov 2010 16:54:51 -0800

Yes, I can see the same with ejb devtests 'remote'. It is not part of a
regular run because we run them parallel to a running GF, and there is
no support (yet) for finding different ports in the EJB embedded container.

This is the stack trace that I got:

     [java] Caused by: java.lang.ClassCastException
     [java] at
com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:262)
     [java] at
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
     [java] at
com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$12.read(DynamicMethodMarshallerImpl.java:353)
     [java] at
com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:483)
     [java] at
com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:203)
     [java] at
com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
     [java] at
com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227)
     [java] at
com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(com/sun/ejb/codegen/_GenericEJBHome_Generated_DynamicStub.java)
     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] at java.lang.reflect.Method.invoke(Method.java:597)
     [java] at
com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:422)
     [java] ... 9 more
     [java] Caused by: java.lang.ClassCastException: Object is not of
remote type java.rmi.Remote
     [java] at
com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:254)
     [java] ... 21 more


-marina

forums_at_java.net wrote:
> Bug with testcase filed: http://java.net/jira/browse/EMBEDDED_GLASSFISH-1
> [1]
>
> Briefly, EJBContainer blows up with a really weird ClassCastException
> if the
> bean under test is @Remote.
>
> Best,
> Laird
>
>
> [1] http://java.net/jira/browse/EMBEDDED_GLASSFISH-1
>
> --
>
> [Message sent by forum member 'ljnelson']
>
> View Post: http://forums.java.net/node/722676
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>