I am trying to work a
java RMI program(typical calculator) on my RedHat linux 8.0 machine. My java is J2SDK 1.4. I have compiled the interface, client, server, programs.
When I use rmic for the implementation file to create stub and skeleton, i am getting an error
rmic CalculatorImpl
java.lang.NullPointerException
at 0x4027812c: java.lang.Throwable.Throwable() (/usr/lib/libgcj.so.3)
at 0x4026b0af: java.lang.Exception.Exception() (/usr/lib/libgcj.so.3)
at 0x4026e9b3: java.lang.RuntimeException.RuntimeException() (/usr/lib/libgcj.so.3)
at 0x4026e0a7: java.lang.NullPointerException.NullPointerException() (/usr/lib/libgcj.so.3)
at 0x4022a547: _Jv_ThrowNullPointerException (/usr/lib/libgcj.so.3)
at 0x4033099f: ?? (??:0)
at 0x4032ce5d: gnu.java.rmi.rmic.RMIC.generateStub() (/usr/lib/libgcj.so.3)
at 0x4032bd25: gnu.java.rmi.rmic.RMIC.processClass(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x4032bc7c: gnu.java.rmi.rmic.RMIC.run() (/usr/lib/libgcj.so.3)
at 0x4032bb3b: gnu.java.rmi.rmic.RMIC.main(java.lang.String[]) (/usr/lib/libgcj.so.3)
at 0x40252308: gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/libgcj.so.3) at 0x402bd0b1: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
at 0x4025efdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
at 0x4022b78c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
at 0x4022b8ad: JvRunMain (/usr/lib/libgcj.so.3)
at 0x080485a0: ?? (??:0)
at 0x420158d4: ?? (??:0)
at 0x080484ed: ?? (??:0)
Class path is provided correctly. All other programs including,
servlets,JSPs,
JDBC etc are working fine on linux. Is it the problem on linux. I need it to do in RMI only as it is in the University syllabus.
Please provide a help to me.......