[kaffe] Awt Qt backend problems in 1.1.5.

gian paolo ciceri gp.ciceri at acm.org
Wed Apr 6 23:15:04 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
I've a simple graphical application that runs fine under plain vanilla
1.1.5 (so with classpath gtk/X Awt backend).

But when I run it under a kaffe built with Qt backend for Awt I take the
following.

[gpciceri at sandra DisplayButton]$ /usr/local/kaffe-1.1.5-JIT-qt/bin/kaffe
- -Xkaffe-qt-awt ButtonFrame
java.lang.NoSuchMethodError:
java/awt/EventQueue.invokeLater(Ljava/lang/Runnable;)V
~   at ButtonFrame.main (ButtonFrame.java:185)

I've tried both thinlet lwvcl demos, too, and with Awt Qt backend I
takes errors:

with thinlet
[gpciceri at sandra lib]$ /usr/local/kaffe-1.1.5-JIT-qt/bin/kaffe
- -Xkaffe-qt-awt -jar demo.jar

java.lang.ArrayIndexOutOfBoundsException
~   at java.awt.ComponentEvt.getEvent (ComponentEvt.java:98)
~   at java.awt.Toolkit.evtGetNextEvent (Toolkit.java)
~   at java.awt.EventQueue.getNextEvent (EventQueue.java:174)
~   at java.awt.EventDispatchThread.run (EventDispatchThread.java:34)
~   at java.lang.VMThread.run (VMThread.java:123)
java.lang.ArrayIndexOutOfBoundsException
~   at java.awt.ComponentEvt.getEvent (ComponentEvt.java:98)
~   at java.awt.Toolkit.evtGetNextEvent (Toolkit.java)
~   at java.awt.EventQueue.getNextEvent (EventQueue.java:174)
~   at java.awt.EventDispatchThread.run (EventDispatchThread.java:34)
~   at java.lang.VMThread.run (VMThread.java:123)
QtAWT - Warning: QImage::setPixel: x=0 out of range
QtAWT - Warning: QImage::setPixel: x=1 out of range
...

with lwvcl
[gpciceri at sandra lwvcl-4.50]$ sh lw-samples.sh
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
~   at java.lang.Object.getClass (Object.java)
~   at java.lang.System.arraycopy (System.java:67)
~   at java.lang.String.getChars (String.java:324)
~   at java.lang.StringBuffer.append (StringBuffer.java:314)
~   at java.lang.StackTraceElement.toString (StackTraceElement.java:188)
~   at java.lang.Throwable.stackTraceStringBuffer (Throwable.java:477)
~   at java.lang.Throwable.stackTraceString (Throwable.java:418)
~   at java.lang.Throwable.printStackTrace (Throwable.java:363)
~   at java.awt.EventDispatchThread.run (EventDispatchThread.java:50)
~   at java.lang.VMThread.run (VMThread.java:123)


I'm perplexed, perhaps I've done some errors building kaffe: I used

~  $ ./configure --enable-pure-java-math --build=i686-linux --without-esd
- --with-kaffe-qt-awt --without-kaffe-x-awt --with-engine=jit
- --with-qtdir=/usr/lib/qt-3.3 --without-classpath-gtk-awt
- --prefix=/usr/local/kaffe-1.1.5-JIT-qt

(BTW, during the build process there's a rather annoying -LNONE instead
of -L<X11 library dir.> in many Makefiles.


Anyone having suggestion to help me improving the situation?

TIA
/gp


- --
gian paolo ciceri - japanman
suddenthinks, excellence through refactoring
++39 340 7218101
gp.ciceri at acm.org
gp.ciceri at suddenthinks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFCVM/c5CXmEF0gaHgRAoqZAJ4/c1/cJe6ouffrYzY7xUJpOz0TcACgvG++
FE898//BgC/OE+MpfzOOGsA=
=Bvfz
-----END PGP SIGNATURE-----

-- 
gian paolo ciceri - japanman
suddenthinks, excellence through refactoring
++39 340 7218101
gp.ciceri at acm.org
gp.ciceri at suddenthinks.com



More information about the kaffe mailing list