PDA

View Full Version : weka gui is crashing



rgilaard
09-24-2006, 12:26 PM
Hi peeps,

I've installed weka on my freebsd system and I can use it from the command line but the gui keeps crashing if I click on explorer I get the following error:

java -Xmx2000M -jar weka.jar
/usr/X11R6/share/themes/Clearlooks/gtk-2.0/gtkrc:49: Engine "clearlooks" is unsu pported, ignoring
---Registering Weka Editors---
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
weka.gui.explorer.PreprocessPanel.addPropertyChangeListener(Unknown Sour ce)
javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.java:4 9)
javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38)
javax.swing.JComponent.setUI(JComponent.java:652)
javax.swing.JPanel.setUI(JPanel.java:131)
javax.swing.JPanel.updateUI(JPanel.java:104)
javax.swing.JPanel.<init>(JPanel.java:64)
javax.swing.JPanel.<init>(JPanel.java:87)
javax.swing.JPanel.<init>(JPanel.java:95)
weka.gui.explorer.PreprocessPanel.<init>(Unknown Source)
weka.gui.explorer.Explorer.<init>(Unknown Source)
weka.gui.GUIChooser$2.actionPerformed(Unknown Source)
java.awt.Button.processActionEvent(Button.java:388)
java.awt.Button.processEvent(Button.java:356)
java.awt.Component.dispatchEventImpl(Component.java:3955)
java.awt.Component.dispatchEvent(Component.java:3803)
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea d.java:242)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. java:163)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

at weka.gui.explorer.PreprocessPanel.addPropertyChangeListener(Unknown S ource)
at javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.jav a:49)
at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38)
at javax.swing.JComponent.setUI(JComponent.java:652)
at javax.swing.JPanel.setUI(JPanel.java:131)
at javax.swing.JPanel.updateUI(JPanel.java:104)
at javax.swing.JPanel.<init>(JPanel.java:64)
at javax.swing.JPanel.<init>(JPanel.java:87)
at javax.swing.JPanel.<init>(JPanel.java:95)
at weka.gui.explorer.PreprocessPanel.<init>(Unknown Source)
at weka.gui.explorer.Explorer.<init>(Unknown Source)
at weka.gui.GUIChooser$2.actionPerformed(Unknown Source)
at java.awt.Button.processActionEvent(Button.java:388)
at java.awt.Button.processEvent(Button.java:356)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


What could be wrong here?
I'm using weka 3.5.3.

Brgds

mbatchelor
09-25-2006, 04:32 AM
Since freebsd uses JDKs that aren't from Sun (they're ports obtained from freebsd.org), I think that the only place to get resolution to this issue is by reporting it on the freebsd mailing list - here is the excerpt from the freebsd website:



I have a bug!

If you find an application that does not work, or crashes, here are the steps you should follow before reporting it:

1. Try it again.
2. Check your settings for this application. Check to see if you made a mistake in starting it up.
3. Try it on a different platform. If you have access to a reference platform, try it there. (We need to determine if it is an application error, a Java bug, or a FreeBSD specific bug.)
4. Narrow down the problem. If it is your own code, narrow down the bug to the offending code. Otherwise, determine the steps required to reproduce the problem.
5. Notify the JDK porting team. Send email to freebsd-java@FreeBSD.org. Be sure to include the steps you have followed.
6. Finally, and most importantly, be willing to work with the team to fix the problem.


In looking through the mailing list archives, I've seen various problems that they've had with NPEs showing similar information that turned out to be issues in their port of java.

Take care,

Marc

rgilaard
09-26-2006, 01:17 PM
See below,

the people from the freebsd java team could help me ressolve this issue as described below

*************************
Thanks!!

I found something which I could use. I had to make a LookAndFeel.props
file and after that everything seems to work!!

Many thanks for the intervention.

Brgds
Robert

On Tue, 2006-09-26 at 00:13 +0300, Georgi wrote:
> Probably this is the problem : From wekas web site
> "
> Note:
> Java 1.5 in combination with Linux/Gnome has problems with the default
> Look'n'Feel.
> A workaround for the problem was introduced with version 3.4.5/3.5.0.
> For more information refer to this post in the mailing list archives."
>
> check weka web site .
>
> georgi
>

Post edited by: rgilaard, at: 2006/09/26 17:22