This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
ClassLoader: unexpected exception during linking
- From: Per Bothner <per at bothner dot com>
- To: java at gcc dot gnu dot org
- Date: Tue, 03 Dec 2002 11:08:02 -0800
- Subject: ClassLoader: unexpected exception during linking
Does this ring a bell with anyone? Notice that the "cause"
is in _Jv_SetVTableEntries.
This is using the gcc trunk (cvs update on Dec 2 5pm PST) on
Red Hat 8.0. I compiled Kawa (using the configure --with-gcj
--enable-kawa-frontend). I then get the following.
To me this suggests ClassLoaders are pretty broken ...
$ bin/kawa
#|kawa:1|# (define (foo x) x)
java.lang.InternalError: unexpected exception during linking
at java.lang.ClassLoader.resolveClass0(java.lang.Class)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at java.lang.ClassLoader.resolveClass(java.lang.Class)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at gnu.bytecode.ArrayClassLoader.loadClass(java.lang.String,
boolean) (/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
at gnu.expr.ModuleExp.evalToClass(gnu.expr.Compilation)
(/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
at gnu.expr.ModuleExp.evalModule(gnu.mapping.Environment,
gnu.mapping.CallContext, gnu.expr.Compilation)
(/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
at kawa.Shell.run(gnu.expr.Interpreter, gnu.mapping.Environment,
gnu.mapping.InPort, gnu.lists.Consumer, gnu.mapping.OutPort)
(/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
at kawa.Shell.run(gnu.expr.Interpreter, gnu.mapping.Environment,
gnu.mapping.InPort, gnu.mapping.OutPort, gnu.mapping.OutPort)
(/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
at kawa.Shell.run(gnu.expr.Interpreter, gnu.mapping.Environment)
(/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
at kawa.Shell.run(gnu.expr.Interpreter)
(/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
at kawa.repl.main(java.lang.String[])
(/new-root/tmp/kawa/bin/.libs/libkawa.so.0.0.0)
Caused by: java.lang.NullPointerException
at _Jv_SetVTableEntries(java.lang.Class, _Jv_VTable)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at _Jv_SetVTableEntries(java.lang.Class, _Jv_VTable)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at _Jv_SetVTableEntries(java.lang.Class, _Jv_VTable)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at _Jv_SetVTableEntries(java.lang.Class, _Jv_VTable)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at _Jv_SetVTableEntries(java.lang.Class, _Jv_VTable)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at _Jv_MakeVTable(java.lang.Class)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
at _Jv_PrepareClass(java.lang.Class)
(/home/bothner/GNU/linux/lib/libgcj.so.3.0.0)
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/