Groups > Weblogic > WebLogic Enterprise JavaBeans > java.lang.ClassCastException: Cannot narrow remote object




java.lang.ClassCastException: Cannot narrow remote object

java.lang.ClassCastException: Cannot narrow remote object
Wed, 9 Apr 2008 13:01:36 -0700
Hi,

I am trying to deploy ejb3.0 on weblogic 10 server. I am able to find the JNDI
name of the stateless session bean correctly, but getting an exception while
narrowing it down. My ejb3.0 client is a standalone java client. I am trying to
access the stateless session ejb3.0 bean.Please help me. i have been trying it
for many days.

thanks in advance,
Sanjeev

[sanpraka@localhost certEjb]$ java  -cp
./:/usr/weblogic/bea/wlserver_10.0/server/lib/weblogic.jar:/usr/weblogic/bea/wls
erver_10.0/server/lib/wlclient.jar com.titan.clients.Client
Object is weblogic.rmi.internal.BasicRemoteRef - hostID:
'5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesSer
ver', oid: '302', channel: 'null'
java.lang.ClassCastException: Cannot narrow remote object
weblogic.rmi.internal.BasicRemoteRef - hostID:
'5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesSer
ver', oid: '302', channel: 'null' to com.titan.travelagent.TravelAgentRemote
        at
weblogic.corba.server.naming.ReferenceHelperImpl.narrow(ReferenceHelperImpl.java
:206)
        at
weblogic.rmi.extensions.PortableRemoteObject.narrow(PortableRemoteObject.java:88
)
        at
weblogic.iiop.PortableRemoteObjectDelegateImpl.narrow(PortableRemoteObjectDelega
teImpl.java:32)
        at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
        at com.titan.clients.Client.main(Client.java:24)
Post Reply
about | contact