RMI err
Martin Willemoes Hansen
mwh@sysrq.dk
Mon Sep 9 03:01:00 GMT 2002
Hi there!
I was wondering about if RMI is well supported in gcj 3.1.1, I guess its
not working perfectly since I get errs while trying to use it ;)
Just to try RMI out I created a Server and a client plus a remote object
to invocate and its interface.
First I create classes of the remote object and its interface.
Then when I run the gcj rmic I get this err:
/usr/bin/rmic RemoteMapAdapter
java.lang.NullPointerException
at 0x4026e3c1: java.lang.Throwable.Throwable() (/usr/lib/libgcj.so.3)
at 0x4025ed5f: java.lang.Exception.Exception() (/usr/lib/libgcj.so.3)
at 0x4026348f: java.lang.RuntimeException.RuntimeException()
(/usr/lib/libgcj.so.3)
at 0x402628ff: java.lang.NullPointerException.NullPointerException()
(/usr/lib/libgcj.so.3)
at 0x40219fa5: _Jv_ThrowNullPointerException (/usr/lib/libgcj.so.3)
at 0x40351505: ?? (??:0)
at 0x4034d8c4: gnu.java.rmi.rmic.RMIC.generateStub()
(/usr/lib/libgcj.so.3)
at 0x4034c6be: gnu.java.rmi.rmic.RMIC.processClass(java.lang.String)
(/usr/lib/libgcj.so.3)
at 0x4034c60a: gnu.java.rmi.rmic.RMIC.run() (/usr/lib/libgcj.so.3)
at 0x4034c4ae: gnu.java.rmi.rmic.RMIC.main(java.lang.String[])
(/usr/lib/libgcj.so.3)
at 0x40245911: gnu.gcj.runtime.FirstThread.call_main()
(/usr/lib/libgcj.so.3)
at 0x402c26e8: gnu.gcj.runtime.FirstThread.run()
(/usr/lib/libgcj.so.3)
at 0x402522b6: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
at 0x4021af32: _Jv_RunMain(java.lang.Class, byte const, int, byte
const, boolean) (/usr/lib/libgcj.so.3)
at 0x4021b028: JvRunMain (/usr/lib/libgcj.so.3)
at 0x080485bd: main (??:0)
at 0x405e48d0: __libc_start_main (/lib/libc.so.6)
at 0x080484f1: _start (??:0)
The java stub is generated but did obviously not compile.
The std. java rmic 1.4.0 does work okay. And generates stub and skel
classes.
Is rmic just not working or does one have to do some mojo to get it to
work?
Also when I do use java rmic to generate the stub and skel and use gcj
binaries of client and server I get errs too like this:
client localhost
RemoteMapClient locating RMI registry on remote host: localhost
RemoteMapClient looking up service RemoteMap
RemoteMapClient problem with RemoteMap exception:
java.rmi.RemoteException: call return failed: ; nested exception is:
Connection reset by peer
So is it posible to mix java rmic generated classes with gcj generated
binaries?
If I start the java version of the server and use the client gcj binary
it just stalls:
client localhost
RemoteMapClient locating RMI registry on remote host: localhost
RemoteMapClient looking up service RemoteMap
Found remotemap
Anybody know what the status of RMI is in gcj and the best way to use
it. Maybe a tutorial, sample code which are targeted towards gcj?
Hope somebody can help out there.
--
Martin Willemoes Hansen
--------------------------------------------------------
E-Mail mwh@sysrq.dk Website mwh.sysrq.dk
IRC MWH, openprojects
--------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rmiTest.tar.gz
Type: application/x-gzip
Size: 1214 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20020909/aad24386/attachment.bin>
More information about the Java
mailing list