[kaffe] NullPointerException in classpath/gnu/java/awt/peer/gtk/GtkImage.java
Jesper Larsen
jla at iotech.dk
Wed Apr 19 04:46:07 PDT 2006
Hi
When running Kaffe 1.1.7 on PowerPC I get the following error when
trying to run the classpath Swing demo:
# kaffe gnu/classpath/examples/swing/Demo
Exception during event dispatch:
java.lang.NullPointerException
at gnu.java.awt.peer.gtk.GtkImage.drawPixelsScaled (GtkImage.java)
at gnu.java.awt.peer.gtk.GtkImage.drawImage (GtkImage.java:548)
at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:234)
at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:221)
at gnu.java.awt.peer.gtk.GdkGraphics.drawImage (GdkGraphics.java:227)
at javax.swing.ImageIcon.paintIcon (ImageIcon.java:407)
at gnu.classpath.examples.swing.DemoDesktop.paintComponent
(DemoDesktop.java:79)
at javax.swing.JComponent.paint (JComponent.java:1700)
at javax.swing.JLayeredPane.paint (JLayeredPane.java:710)
at javax.swing.JComponent.paintChildren (JComponent.java:1798)
at javax.swing.JComponent.paint (JComponent.java:1702)
at javax.swing.JComponent.paintChildren (JComponent.java:1798)
at javax.swing.JComponent.paint (JComponent.java:1702)
at javax.swing.JComponent.paintChildren (JComponent.java:1798)
at javax.swing.JComponent.paint (JComponent.java:1702)
at javax.swing.JLayeredPane.paint (JLayeredPane.java:710)
at javax.swing.JComponent.paintChildren (JComponent.java:1798)
at javax.swing.JComponent.paint (JComponent.java:1702)
at javax.swing.JComponent.paintDoubleBuffered (JComponent.java:1925)
at javax.swing.JComponent.paint (JComponent.java:1694)
at java.awt.Container$GfxPaintVisitor.visit (Container.java:1835)
at java.awt.Container.visitChild (Container.java:1642)
at java.awt.Container.visitChildren (Container.java:1612)
at java.awt.Container.paint (Container.java:789)
at javax.swing.JFrame.update (JFrame.java:265)
at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent
(GtkComponentPeer.java:320)
at java.awt.Component.dispatchEventImpl (Component.java:4836)
at java.awt.Container.dispatchEventImpl (Container.java:1662)
at java.awt.Window.dispatchEventImpl (Window.java:623)
at java.awt.Component.dispatchEvent (Component.java:2313)
at java.awt.EventQueue.dispatchEvent (EventQueue.java:474)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)
at java.lang.VMThread.run (VMThread.java:123)
The demo runs fine on my x86 machine, so I guess there's a problem with
kaffe, not classpath.
I've been trying to find out why the exception is thrown, without any luck.
Kaffe was compiled with GTK 2.8.16 and X.org X11R7.0.
The X server is running on my x86 machine.
Any hints to go on?
--
Kind regards
Jesper Larsen
More information about the kaffe
mailing list