[kaffe] java.lang.UnsatisfiedLinkError: not enough memory
Ito Kazumitsu
ito.kazumitsu at hitachi-cable.co.jp
Mon May 12 17:32:02 PDT 2003
In message "Re: [kaffe] java.lang.UnsatisfiedLinkError: not enough memory"
on 03/05/13, Ito Kazumitsu <kaz at maczuka.gcd.org> writes:
> >>>>> ":" == Timothy Stack <stack at cs.utah.edu> writes:
>
> :> I think I saw this when debugging the OpenBSD problem, the libltdl was
> :> acting a little funny. So, can you update, configure and rebuild again.
>
> Yes, I did so.
>
> bash-2.05b$ kaffe -fullversion 2>&1 | grep ChangeLog
> ChangeLog head: 2003-05-11 Marc Kleine-Budde <kleine-budde at gmx.de>
>
> But it still shows:
>
> kaffe-bin in realloc(): warning: pointer to wrong page
> kaffe-bin in realloc(): warning: pointer to wrong page
> java.lang.ExceptionInInitializerError: [exception was java.lang.UnsatisfiedLinkError: not enough memory
> Adding its directory to LD_LIBRARY_PATH may help.]
On another machine, where the kaffe fullversion is also
"ChangeLog head: 2003-05-11 Marc Kleine-Budde <kleine-budde at gmx.de>",
this error does not occur, but another error occurs.
$ DISPLAY=xxxxxx:0 java org.hsqldb.util.DatabaseManager
java.lang.NullPointerException
at java.awt.image.ColorModel.<init>(ColorModel.java:145)
at java.awt.image.ColorModel.<init>(ColorModel.java:120)
at kaffe.awt.JavaColorModel.<init>(JavaColorModel.java:26)
at kaffe.awt.JavaColorModel.getSingleton(JavaColorModel.java:51)
at java.awt.image.MemoryImageSource.<init>(MemoryImageSource.java:63)
at org.hsqldb.util.DatabaseManager.main(DatabaseManager.java:301)
at org.hsqldb.util.DatabaseManager.main(DatabaseManager.java:234)
ColorModel.java reads:
public ColorModel(int bits)
{
this(bits * 4, // total bits, sRGB, four channels
nArray(bits, 4), // bits for each channel
null, // FIXME: should be sRGB
true, // has alpha
false, // not premultiplied
TRANSLUCENT,
Buffers.smallestAppropriateTransferType(bits * 4));
}
So until the FIXME part is fixed, the program will not work even if
the java.lang.UnsatisfiedLinkError is solved.
Fixing the FIXME part is a GNU Classpath's issue.
More information about the kaffe
mailing list