Re: [greenstone-users] gsdl v2.53

From Chaitra Rao
DateFri, 11 Mar 2005 10:34:02 +0530 (IST)
Subject Re: [greenstone-users] gsdl v2.53
In-Reply-To (4230D077-4020604-cs-waikato-ac-nz)
Sorry I forgot abt the config file..Here it is :)

creator
creatorchaitra@it.iitb.ac.in
maintainerchaitra@it.iitb.ac.in
maintainer
publictrue

defaultindexdocument:dc.Description,dc.Subject,dc.Title

classifyAutoHierarchy -metadata agr.Commodity -buttonname
Commodity -hlist_at_top

classifyAutoHierarchy -metadata agr.Disease -buttonname Disease
-hlist_at_top

pluginImagePlug -input_encoding utf8
pluginGAPlug -input_encoding utf8
pluginHTMLPlug -file_is_url
pluginArcPlug -input_encoding utf8
pluginRecPlug -input_encoding utf8 -how_progress
-use_metadata_files

#indexesdc.Subject dc.Description

indexesdocument:dc.Description,dc.Subject,dc.Title

#levelsdocument section

format DateList "<td>[link][icon][/link]</td>
<td>[highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight]</td>
<td>[ex.Date]</td>"

format HList
"[link][highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight][/link]"

format VList "<td><td valign='top'>[link][thumbicon][/link]</td>
<td valign='top'>[dc.Title]<br></td></td>"

format CL2DateList "<td>[link][icon][/link]</td>
<td>[highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight]</td>
<td><i>([dc.Date])</i></td>"

format CL1HList
"&nbsp;&nbsp;[link][highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight][/link]<br><br>"

format CL3HList
"&nbsp;&nbsp;[link][highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight][/link]<br><br>"

format CL3VList "<td></td>
{If}{[dc.Relation],<td valign='top'>[link][thumbicon][/link]</td><td
valign='top'> : [dc.Relation]<br> : [dc.Title]</td>}"

format CL4HList
"[link][highlight]{Or}{[dc.Title],[dls.Title],[ex.Title],Untitled}[/highlight][/link]"

format CL2HList
"&nbsp;&nbsp;[link][highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight][/link]<br><br>"

format CL4VList "<td><td valign='top'>[link][thumbicon][/link]</td>
<td valign='top'>[dc.Title]<br>[dc.Relation]</td></td>"

format CL4DateList "<td>[link][icon][/link]</td>
<td>[highlight] : {Or}{[dc.Title],[dls.Title],[ex.Title],Untitled}<br> :
[dc.Relation][/highlight]</td>
<td>[dc.Date]</td>"

format CL1VList "<td><td valign='top'>[link][thumbicon][/link]</td>
<td
valign='top'>[dc.Title]<br>{If}{[dc.Relation],<i>([dc.Relation])</i>}</td></td>"

format CL2VList "<td valign='top'>[link][thumbicon][/link]</td><td
valign='top'>{If}{[dc.Relation], : [dc.Relation]<br>} :
[dc.Title]</td>"

format DocumentButtons "Detach|Highlight|"

format DocumentText "<center><table width=\'537\'>
<tr><td><img src=\'/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[Image]\'>
<br><b>[dc.Title]</b><br>[dc.Description]<br><br><a
href=\'[dc.Source]\'>[dc.Source]</a></table></center>
"

collectionmeta.dc.Subject [l=en] "Subject"
collectionmeta.dc.Subject [l=hi] ""
collectionmeta.section [l=en] "section"
collectionmeta.document [l=en] "doc"
collectionmeta.dc.Description [l=en] "Description"
collectionmeta.document:dc.Description,dc.Subject,dc.Title [l=en]
"Details"

Thanx!

Regards,
Chaitra

On Fri, 11 Mar 2005, Michael Dewsnip wrote:

> Hi,
>
> Please send me your collect.cfg file -- we can't tell what is going
> wrong with the format statement parsing without it.
>
> Regards,
>
> Michael
>
>
>
> Chaitra Rao wrote:
>
> >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
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
>