I wonder someone modified the cmpRoster App Client example from j2ee tutorial to execute
the method getMoreInfo, instead of the method getSomeInfo. When I run the client, I am getting the
stack below.

 
C:\j2eetutorial\examples\ears>runclient -client RosterApp.ear -name RosterClient -textauth
Initiating login ...
Enter Username:guest
Enter Password:guest123
Binding name:`java:comp/env/ejb/SimpleRoster`
Caught an exception:
java.lang.ClassCastException
        at
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
        at
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
        at client.RosterClient.main(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:229)
        at com.sun.enterprise.appclient.Main.main(Main.java:155)
C:\j2eetutorial\examples\ears>

 
 
It seems the line 134
 
System.out.println(details.toString());
 
Kindly,
 
Luis A Q Araujo
 
(21) 2422-0168
(21) 9131-4989
 
 
 
 
 
 
Atenciosamente,
 
Luis A Q Araujo
 
(21) 2422-0168
(21) 9131-4989
 

Reply via email to