S
Shin
If you have time, take a look at this trace I got (see below).
Basically, my code tries to export a RMI object. The weird thing is
that through disassembly, the class XXX doesn't even have static
initialization code to run., but nonetheless, the trace says it's
because when executing initilization code for XXX, a
NullPointerException occurred.
Any suggestions of how I might proceed from here are welcome.
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at YYY_Stub.class$(Unknown Source)
at YYY_Stub.<clinit>(Unknown Source)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.getLong(Field.java:527)
at
java.ibjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1559)
at
java.ibjectStreamClass.access$600(ObjectStreamClass.java:47)
at java.ibjectStreamClass$2.run(ObjectStreamClass.java:381)
at java.security.AccessController.doPrivileged(Native Method)
at java.ibjectStreamClass.<init>(ObjectStreamClass.java:373)
at java.ibjectStreamClass.lookup(ObjectStreamClass.java:268)
at
java.ibjectStreamClass.initNonProxy(ObjectStreamClass.java:504)
at
java.ibjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at
java.ibjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at
java.ibjectInputStream.readObject0(ObjectInputStream.java:1299)
at
java.ibjectInputStream.readObject(ObjectInputStream.java:339)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at
sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at XXX.<clinit>(dist.java:134)
-Shin
Basically, my code tries to export a RMI object. The weird thing is
that through disassembly, the class XXX doesn't even have static
initialization code to run., but nonetheless, the trace says it's
because when executing initilization code for XXX, a
NullPointerException occurred.
Any suggestions of how I might proceed from here are welcome.
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at YYY_Stub.class$(Unknown Source)
at YYY_Stub.<clinit>(Unknown Source)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.getLong(Field.java:527)
at
java.ibjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1559)
at
java.ibjectStreamClass.access$600(ObjectStreamClass.java:47)
at java.ibjectStreamClass$2.run(ObjectStreamClass.java:381)
at java.security.AccessController.doPrivileged(Native Method)
at java.ibjectStreamClass.<init>(ObjectStreamClass.java:373)
at java.ibjectStreamClass.lookup(ObjectStreamClass.java:268)
at
java.ibjectStreamClass.initNonProxy(ObjectStreamClass.java:504)
at
java.ibjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at
java.ibjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at
java.ibjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at
java.ibjectInputStream.readObject0(ObjectInputStream.java:1299)
at
java.ibjectInputStream.readObject(ObjectInputStream.java:339)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at
sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at XXX.<clinit>(dist.java:134)
-Shin