Re: [greenstone-users] problems with GLI

From Michael Dewsnip
DateTue, 30 May 2006 10:26:16 +1200
Subject Re: [greenstone-users] problems with GLI
In-Reply-To (595b9ab20605260552v215ea2bev7efa1ccab6fa798d-mail-gmail-com)
Hi Stephen,

Looks like this is another case where the Apple JVM does things slightly
differently, causing a bug in our code. I've fixed this; you can
download a new version of the Greenstone
"gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java" file
from
http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/temp-2.70/ArgumentConfiguration.java,
then run makegli.sh.

Thanks for pointing this out,

Michael

Stephen DeGabrielle wrote:

> Hi,
>
> I am having some difficulties with the GLI;
>
> Neither the 'add plugin' nor the 'configure plugin' buttons work.
>
> I have attached the output for each event respectively below.
>
> I am using osx 10.4
> java -versionjava version "1.5.0_06"Java(TM) 2 Runtime Environment,
> Standard Edition (build 1.5.0_06-112)Java HotSpot(TM) Client VM (build
> 1.5.0_06-64, mixed mode, sharing)
>
> any help - much appreciated
>
> Stephen De Gabrielle
>
>
> ---
> ******* NOTE: I have rebuilt the gli to see if that fixes the problem:
>
> stephen:/Applications/greenstone/gli spdegabrielle$ ./clean.sh
>
> Removing the Greenstone Librarian Interface class files...
> Done!
>
> stephen:/Applications/greenstone/gli spdegabrielle$ ./makegli.sh
>
> Greenstone Librarian Interface (GLI)
> Copyright (C) 2005, New Zealand Digital Library Project, University Of
> Waikato
> GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
> This is free software, and you are welcome to redistribute it
>
> Checking Javac: /Library/Java/Home//bin/javac
>
> Removing the Greenstone Librarian Interface class files...
> Done!
>
> Compiling the Greenstone Librarian Interface...
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Done!
>
>
> ---
> Last login: Fri May 26 00:20:50 on ttyp2
> Welcome to Darwin!
> stephen:~ spdegabrielle$ cd /Applications/greenstone/gli/
> stephen:/Applications/greenstone/gli spdegabrielle$ ./gli.sh
>
> Greenstone Librarian Interface (GLI)
> Copyright (C) 2005, New Zealand Digital Library Project, University Of
> Waikato
> GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
> This is free software, and you are welcome to redistribute it
>
> Checking GSDL: /Applications/greenstone
> Your environment has successfully been set up to run Greenstone
> Checking Perl: /usr/bin/perl
> Checking Java: /Library/Java/Home//bin/java
>
> Running the Greenstone Librarian Interface...
> Java vendor: Apple Computer, Inc.
> Note that the Librarian Interface has been developed and tested with
> Java from Sun Microsystems.
>
> **********this is the output when I hit 'add plugin'
>
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration$ArgumentControl$ListOption.compareTo
> (ArgumentConfiguration.java:951)
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration$ArgumentControl$ListOption.equals(ArgumentConfiguration.java:958)
> at apple.laf.AquaComboBoxRenderer.getListCellRendererComponent
> (AquaComboBoxRenderer.java:98)
> at
> javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1155)
> at
> javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1105)
> at
> javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2226)
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
> at javax.swing.DefaultListSelectionModel.fireValueChanged
> (DefaultListSelectionModel.java:167)
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
> at
> javax.swing.DefaultListSelectionModel.insertIndexInterval(DefaultListSelectionModel.java
> :566)
> at
> javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(BasicListUI.java:2184)
> at
> javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:130)
> at javax.swing.DefaultComboBoxModel.addElement
> (DefaultComboBoxModel.java:124)
> at
> org.greenstone.gatherer.gui.GComboBox$Model.add(GComboBox.java:272)
> at org.greenstone.gatherer.gui.GComboBox.init(GComboBox.java:141)
> at org.greenstone.gatherer.gui.GComboBox
> .<init>(GComboBox.java:100)
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration$ArgumentControl.<init>(ArgumentConfiguration.java:337)
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration.generateControls
> (ArgumentConfiguration.java:239)
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration.<init>(ArgumentConfiguration.java:153)
> at
> org.greenstone.gatherer.cdm.PluginManager$PluginControl$AddListener.actionPerformed
> (PluginManager.java:875)
> at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
> at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
> at javax.swing.DefaultButtonModel.fireActionPerformed
> (DefaultButtonModel.java:420)
> at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
> at
> java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
> at java.awt.Component.processMouseEvent(Component.java:5554)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
> at java.awt.Component.processEvent(Component.java:5319)
> at java.awt.Container.processEvent(Container.java:2010)
> at java.awt.Component.dispatchEventImpl(Component.java:4021)
> at java.awt.Container.dispatchEventImpl(Container.java:2068)
> at java.awt.Component.dispatchEvent(Component.java:3869)
> at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
> at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
> at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
> at java.awt.Container.dispatchEventImpl(Container.java:2054)
> at java.awt.Window.dispatchEventImpl(Window.java:1774)
> at java.awt.Component.dispatchEvent(Component.java:3869)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy
> (EventDispatchThread.java:269)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
>
>
> **********this is the output when I hit 'configure plugin'
>
>
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration$ArgumentControl$ListOption.compareTo(ArgumentConfiguration.java:951)
>
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration$ArgumentControl$ListOption.equals(ArgumentConfiguration.java:958)
> at
> apple.laf.AquaComboBoxRenderer.getListCellRendererComponent(AquaComboBoxRenderer.java
> :98)
> at
> javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1155)
> at
> javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1105)
> at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged
> (BasicListUI.java:2226)
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java
> :167)
> at
> javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
> at
> javax.swing.DefaultListSelectionModel.insertIndexInterval(DefaultListSelectionModel.java:566)
> at
> javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(BasicListUI.java:2184)
> at
> javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:130)
> at javax.swing.DefaultComboBoxModel.addElement
> (DefaultComboBoxModel.java:124)
> at
> org.greenstone.gatherer.gui.GComboBox$Model.add(GComboBox.java:272)
> at org.greenstone.gatherer.gui.GComboBox.init(GComboBox.java:141)
> at org.greenstone.gatherer.gui.GComboBox
> .<init>(GComboBox.java:100)
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration$ArgumentControl.<init>(ArgumentConfiguration.java:337)
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration.generateControls
> (ArgumentConfiguration.java:239)
> at
> org.greenstone.gatherer.cdm.ArgumentConfiguration.<init>(ArgumentConfiguration.java:153)
> at
> org.greenstone.gatherer.cdm.PluginManager$PluginControl$ConfigureListener.actionPerformed
> (PluginManager.java:933)
> at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
> at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
> at javax.swing.DefaultButtonModel.fireActionPerformed
> (DefaultButtonModel.java:420)
> at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
> at
> java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
> at java.awt.Component.processMouseEvent(Component.java:5554)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
> at java.awt.Component.processEvent(Component.java:5319)
> at java.awt.Container.processEvent(Container.java:2010)
> at java.awt.Component.dispatchEventImpl(Component.java:4021)
> at java.awt.Container.dispatchEventImpl(Container.java:2068)
> at java.awt.Component.dispatchEvent(Component.java:3869)
> at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
> at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
> at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
> at java.awt.Container.dispatchEventImpl(Container.java:2054)
> at java.awt.Window.dispatchEventImpl(Window.java:1774)
> at java.awt.Component.dispatchEvent(Component.java:3869)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy
> (EventDispatchThread.java:269)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>