Re: [greenstone-users] gsdl v2.53

From Chaitra Rao
DateThu, 10 Mar 2005 11:27:49 +0530 (IST)
Subject Re: [greenstone-users] gsdl v2.53
In-Reply-To (422FC116-70103-cs-waikato-ac-nz)
Hi Michael,
Thank you so much!!
Actually, I had created a new metadata set for the agri
domain(agr.mds) and had used this in a collection which used another
collection as a base collection(the base collection uses the dublin core
metadata set). After doing so I had removed the dublin.mds set and added
the agr.mds set. I also edited the classifiers to include the metadata
from agri.mds. After that I edited the format features statements. The GLI
freezes at this point. I just went through the collect.cfg file and for
some reason, although the irrelevant format statements were deleted from
the gli, it was not replaced in the collect.cfg file.

But, I'm not able to open this collection using the GLI due to the same
old lock problem. The stack trace is shown below:

java.lang.NullPointerException
at org.greenstone.gatherer.cdm.Format.<init>(Format.java:97)
at org.greenstone.gatherer.cdm.Format.create(Format.java:145)
at
org.greenstone.gatherer.cdm.DOMProxyListModel.getElementAt(DOMProxyLi
stModel.java:207)
at
org.greenstone.gatherer.cdm.FormatManager.<init>(FormatManager.java:8
1)
at
org.greenstone.gatherer.cdm.CollectionDesignManager.loadDesignDetails
(CollectionDesignManager.java:132)
at
org.greenstone.gatherer.cdm.CollectionDesignManager.<init>(Collection
DesignManager.java:91)
at
org.greenstone.gatherer.collection.CollectionManager.loadCollectionIn
ternal(CollectionManager.java:877)
at
org.greenstone.gatherer.collection.CollectionManager.access$100(Colle
ctionManager.java:80)
at
org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTa
sk.run(CollectionManager.java:754)

Please help!!

Regards,
Chaitra

On Thu, 10 Mar 2005, Michael Dewsnip wrote:

> Hi,
>
> Does this happen for all collections or just one? Have you checked that
> all the format statements in your collect.cfg look valid? The null
> pointer exception seems to indicate that one of the format statements is
> missing a feature -- ie. format "..." rather than format <feature>
> "...". It would help to see your collect.cfg file.
>
> Regarding opening the locked collections, what happens exactly? Does the
> GLI get stuck/crash completely/throw exceptions/display an error
> message/...? Please give a lot more information when reporting problems.
>
> Regards,
>
> Michael
>
>
>
> Chaitra Rao wrote:
>
> >Hi,
> > Here's the stack trace of the exception thrown when I select Replace
> >format option on the GLI
> >
> >java.lang.NullPointerException
> > at org.greenstone.gatherer.cdm.Format.<init>(Format.java:97)
> > at org.greenstone.gatherer.cdm.Format.create(Format.java:145)
> > at
> >org.greenstone.gatherer.cdm.DOMProxyListModel.getElementAt(DOMProxyLi
> >stModel.java:207)
> > at
> >javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java
> >:1146)
> > at
> >javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI
> >.java:1097)
> > at
> >javax.swing.plaf.basic.BasicListUI$ListSelectionHandler.valueChanged(
> >BasicListUI.java:1465)
> > at
> >javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
> >ectionModel.java:187)
> > at
> >javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
> >ectionModel.java:167)
> > at
> >javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
> >ectionModel.java:214)
> > at
> >javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultList
> >SelectionModel.java:546)
> > at
> >javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(Ba
> >sicListUI.java:1560)
> > at
> >javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.j
> >ava:160)
> > at
> >org.greenstone.gatherer.cdm.DOMProxyListModel.remove(DOMProxyListMode
> >l.java:253)
> > at
> >org.greenstone.gatherer.cdm.DOMProxyListModel.remove(DOMProxyListMode
> >l.java:241)
> > at
> >org.greenstone.gatherer.cdm.FormatManager.removeFormat(FormatManager.
> >java:160)
> > at
> >org.greenstone.gatherer.cdm.FormatManager.access$3100(FormatManager.j
> >ava:50)
> > at
> >org.greenstone.gatherer.cdm.FormatManager$FormatControl$ReplaceListen
> >er.actionPerformed(FormatManager.java:804)
> > at
> >javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
> >64)
> > at
> >javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
> >ctButton.java:1817)
> > at
> >javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
> >.java:419)
> > at
> >javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
> >)
> > at
> >javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
> >istener.java:245)
> > at
> >java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
> >27)
> > at java.awt.Component.processMouseEvent(Component.java:5134)
> > at java.awt.Component.processEvent(Component.java:4931)
> > at java.awt.Container.processEvent(Container.java:1566)
> > at java.awt.Component.dispatchEventImpl(Component.java:3639)
> > at java.awt.Container.dispatchEventImpl(Container.java:1623)
> > at java.awt.Component.dispatchEvent(Component.java:3480)
> > at
> >java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
> >)
> > at
> >java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
> >
> > at
> >java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
> > at java.awt.Container.dispatchEventImpl(Container.java:1609)
> > at java.awt.Window.dispatchEventImpl(Window.java:1590)
> > at java.awt.Component.dispatchEvent(Component.java:3480)
> > at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
> > at
> >java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
> >read.java:197)
> > at
> >java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
> >ad.java:150)
> > at
> >java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
> >
> > at
> >java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
> >
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
> >
> >
> >
> >
> > The lock problem still persists...I'm unable to open the collection
> >even after deleting the gli.lck file :( Please help !!!
> >
> >Regards,
> >Chaitra
> >
> >On Tue, 8 Mar 2005, Michael Dewsnip wrote:
> >
> >
> >
> >>Hi,
> >>
> >>
> >>
> >>> I have been using gs v2.53 for the past few days. I have been facing
> >>>strange problems since this morning.
> >>>
> >>>(i) When I use the replace format option, the GLI freezes and throws a
> >>>Null pointer exception and windows restarts after flashing a RPC error!!!
> >>>I'm not sure if this is coz of greenstone or something else...This happens
> >>>only when greenstone is running!
> >>>
> >>>
> >>>
> >>>
> >>I've tried this here and have been unable to reproduce the problem. Are
> >>you able to see the stack trace to find out which line of code caused
> >>the null pointer exception?
> >>
> >>
> >>
> >>>(ii) I'm unable to open some collections using the GLI. It shows a same
> >>>old lock error...
> >>>
> >>>
> >>>
> >>>
> >>You can delete the gli.lck files from the affected collections, then
> >>they should open fine.
> >>
> >>Regards,
> >>
> >>Michael
> >>
> >>
> >>
> >
> >
> >
> >
>