Small note [Fwd: troubles with defineClass and Binary Compatibility on ARM-Linux]

Tom Tromey tromey@redhat.com
Thu Jun 22 18:43:00 GMT 2006


>>>>> "Philippe" == Philippe Laporte <philippe.laporte@gatespacetelematics.com> writes:

Philippe> for bundles:
Philippe> [Loaded (bytecode) org.knopflerfish.bundle.log.LogConfigImpl from (null
Philippe> <no certificates>)]
Philippe> So all is happy on x86.

On x86 in this case you are loading bytecode...

Philippe> Now on ARM,

Philippe> Caused by: java.lang.NullPointerException
Philippe>    at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int,
Philippe> int) (/usr/lib/libgcj.so.6)

You're hitting:

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27294

This is fixed on trunk -- there you would get a message about loading
bytecode without the interpreter being available.

The problem is as Andrew said -- no one has written the libffi closure
API for ARM, so the interpreter is not available.  This means that if
your class is not in the class cache, you'll get an exception.

Tom



More information about the Java mailing list