gcjwebplugin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcjwebplugin-devel] Kudos and some issues


From: Fridrich Strba
Subject: [Gcjwebplugin-devel] Kudos and some issues
Date: Mon, 23 May 2005 13:07:01 +0200
User-agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513)

Hello, after a success of gcj-4.0.x in openoffice.org, I was tempted to
try to make the open implementation of Java the default java on my
machines. I am playing since some weeks with gcjwebplugin, more exactly
with gcjappletviewer.

I really like what I see. I tried many of the applets from
http://math.hws.edu/javanotes/ (awt and swing) and
http://math.hws.edu/eck/cs124/javanotes3/ (awt only)

I have some problems with the swing applets which is undertandable since
the free swing implementation is not as mature as the open awt
implementation. Nevertheless, I discovered an applet that has a very
strange behaviour and I was just wondering whether someone is interested
to check and try to understand the problem. Its source is to be found at
http://math.hws.edu/eck/cs124/javanotes3/source/ColorChooserApplet.java
The following applet (representative of quite a number applets) throws a
java.lang.NullPointerException. Nevetheless, it is thrown only with
native gcjappletviewer. If I use the script gcjappletviewer with gij as
bytecode interpreter, the exception is thrown too. If I launch the
script gcjappletviewer with Sun's Java 1.5.0_03, it works well.

The "trace" is:
address@hidden java-examples]$ gcjappletviewer Mandelbrot.class
raw arguments:
 Mandelbrot.class
parsed applet tags:
 tag 0:
  name=
  code=Mandelbrot.class
  codebase=
  archive=[]
  parameters={width=320, height=200}
  documentbase=file:/home/fridrich/java-examples/

Exception during event dispatch:
java.lang.NullPointerException
   at Mandelbrot$Display.actionPerformed(java.awt.event.ActionEvent)
(Unknown Source)
   at
javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
(/usr/lib/libgcj.so.6.0.0)
   at
javax.swing.AbstractButton$1.actionPerformed(java.awt.event.ActionEvent)
(/usr/lib/libgcj.so.6.0.0)
   at
javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
(/usr/lib/libgcj.so.6.0.0)
   at javax.swing.DefaultButtonModel.changeState(int, boolean)
(/usr/lib/libgcj.so.6.0.0)
   at javax.swing.DefaultButtonModel.setPressed(boolean)
(/usr/lib/libgcj.so.6.0.0)
   at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Component.processEvent(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Container.processEvent(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Component.dispatchEvent(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.LightweightDispatcher.handleEvent(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.Component.dispatchEvent(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
(/usr/lib/libgcj.so.6.0.0)
   at java.awt.EventDispatchThread.run() (/usr/lib/libgcj.so.6.0.0)
   at .GC_start_routine (/usr/lib/libgcj.so.6.0.0)
   at .__clone (/lib/libc-2.3.5.so)

Hope this helps to make gcjappletviewer better software. I am trying to
swallow as much java as possible so that I can contribute in future.

Cheers

Fridrich STrba

P.S. Everything is run on a up2date Fedora Core 4 test3. The Sun's java
is packaged using the *nosrc.rpm from jpackage project.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]