In my case, this error was caused by including the wrong jboss-client.jar
file in my client's classpath.  If you are building jBoss from CVS, make
sure that you include ~/jboss/dist/client/jboss-client.jar instead of
~/jboss/client/jboss-client.jar.  Should do the trick.  Error is caused when
class loader loads an incorrect version of an expected class, or can't find
an expected class.

Jeff Mc

-----Original Message-----
From: Craig Day [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 12:08 AM
To: jBoss
Subject: [jBoss-User] simple client code


Can someone point out what might be causing the following
exception given this simple client code:

Context initial = new InitialContext();
Object objref = initial.lookup("SecurityInfo");
SecurityInfoHome home = 
  (SecurityInfoHome)PortableRemoteObject.narrow(objref,        
SecurityInfoHome.class);
SecurityInfo securityInfo = (SecurityInfo) home.create("NAB");

last line causes the following exception:

java.lang.reflect.UndeclaredThrowableException: java.io.EOFException:
Expecting code
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)

        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
        at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn
Source)
        at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:221)
        at $Proxy0.create(Unknown Source)
        at client.Client.main(Client.java:22)


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to