FailedStartup

Reporting and discussion about bugs.

Moderator: lpaatero

Post Reply
geoff
Posts: 3
Joined: Sun Sep 14, 2008 12:02 pm

FailedStartup

Post by geoff »

Hello,

I am trying to run GOWrite 2.2.21 under Ubuntu 8.04 with Java JRE 1.6.0_06.
I was successfully runnning GOWrite 2.2.21 under the previous version of Ubuntu, but since the Ubuntu upgrade I have had no luck.

I uninstalled GOWrite 2.2.20.
I downloaded GOWrite 2.2.21. This is a .rpm package, so I converted it to .deb and installed it via the commands:
alien -k gowrite-2.2.21-1.noarch.rpm
dpkg -i gowrite_2.2.20-1_all.deb

This installs the program into the /opt folder.

Now when I try to run gowrite2, the splash screen appears but that is all.
When I run gowrite, I get a Java exception as shown in the following messages:

=================================
geoff@metasphere:~$ cd /opt
geoff@metasphere:/opt$ cd gowrite2
geoff@metasphere:/opt/gowrite2$ ./gowrite2
geoff@metasphere:/opt/gowrite2$ ./gowrite
0: start 1.5.0
Exception during event dispatch:
java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.Class.initializeClass(libgcj.so.81)
at java.lang.reflect.Method.invoke(libgcj.so.81)
at javax.swing.UIDefaults.getUI(libgcj.so.81)
at javax.swing.UIManager.getUI(libgcj.so.81)
at javax.swing.JTree.updateUI(libgcj.so.81)
at javax.swing.JTree.<init>(libgcj.so.81)
at javax.swing.JTree.<init>(libgcj.so.81)
at gowrite.gui.TreePane.initComponents(TreePane.java:128)
at gowrite.gui.TreePane.<init>(TreePane.java:99)
at gowrite.gui.EditingPane.initComponents(EditingPane.java:107)
at gowrite.gui.EditingPane.<init>(EditingPane.java:38)
at gowrite.gui.TopFrame.initComponents(TopFrame.java:237)
at gowrite.gui.TopFrame.<init>(TopFrame.java:55)
at gowrite.gui.FrameManager.createTopFrame(FrameManager.java:255)
at gowrite.gui.FrameManager$createFrame.run(FrameManager.java:164)
at java.awt.event.InvocationEvent.dispatch(libgcj.so.81)
at java.awt.EventQueue.dispatchEvent(libgcj.so.81)
at java.awt.EventDispatchThread.run(libgcj.so.81)
Caused by: java.awt.IllegalComponentStateException: component java.awt.Label not showing
at java.awt.Component.getLocationOnScreen(libgcj.so.81)
at java.awt.event.MouseEvent.<init>(libgcj.so.81)
at java.awt.event.MouseEvent.<init>(libgcj.so.81)
at javax.swing.plaf.basic.BasicTreeUI.<clinit>(libgcj.so.81)
at java.lang.Class.initializeClass(libgcj.so.81)
...18 more
==============================

I would be most grateful if you could tell me what I am doing wrong!

Best Wishes,

Geoff
lpaatero
Go liiton hallitus
Posts: 535
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: FailedStartup

Post by lpaatero »

Hi,

It seems there is something going wrong in Java's UI initialization. I don't know what it could be, have to take a look at it.

One thing I noted:
gowrite output shows it is using java 1.5.0.
Perhaps gowrite is attemping to use GNU-classpath based java?
GNU java is not yet mature, so different problems could be seen with it.

you could test which java is used by default using
java -version
just to ensure it is what you expect.

regards
Lauri
geoff
Posts: 3
Joined: Sun Sep 14, 2008 12:02 pm

Re: FailedStartup

Post by geoff »

Hi Lauri,

You are right - this is what I got:

Code: Select all

geoff@metasphere:~$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)
This is strange to me because when I look through synaptic I can confirm that only sun-java6_bin, sun-java6_jre, and sun-java6_plugin have been installed. None of the sun_java_5 is installed, and nor are any of the classpath packages installed.

However gij-4.2 and gij-4.2 are both installed.

Open Office claims to use Java JRE 1.6.0_06.

I hope this helps to narrow the problem, and many thanks for your time.

Geoff Kaniuk.
lpaatero
Go liiton hallitus
Posts: 535
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: FailedStartup

Post by lpaatero »

Hi,

GIJ (and GNU classpath) is still in development, and its UI support is somewhat lacking. Not much to be done there.

In order to change default java in ubuntu, you could look at https://help.ubuntu.com/community/Java. This shoud fix the problem.

regards
Lauri
Post Reply