[greenstone-users] Re: [greenstone-devel] gsdl-2.74b-macOSx.tar.gz

From Qiu
DateWed, 31 Oct 2007 15:38:09 +1300
Subject [greenstone-users] Re: [greenstone-devel] gsdl-2.74b-macOSx.tar.gz
In-Reply-To (595b9ab20710300718v460df089ua9f0ea279dafd588-mail-gmail-com)
Hi Stephen

It looks the XML parser couldn't parse the plugin list correctly. In
order to test whether the XML parser works or not, you need "cd" to the
GSDLHOME directory, setup the gsdl environment by run "source
setup.bash", and then run "pluginfo.pl -xml -listall ", a list of
plugins should be displayed in the XML format. Check the plugin list to
see whether it has being well formed. If you get the error message, take
a look at the wiki page:
http://wiki.greenstone.org/wiki/index.php/Building_Greenstone_collections#How_do_I_fix_XML::Parser_errors


Regards
Quan

Stephen De Gabrielle wrote:
> Hi Guys,
> I'm having some troubles getting 2.74b[or 2.74] on osx (10.4 intel)
> going;
>
> The GLI won't let me open the demo collection - first attempt gives an
> a 'the collection at ... cannot be opened' error popup - second
> attempt leads to the gli locking up with the blue java
> 'spinning-ball-of-doom'.
>
> deleting ~/.gli/config.xml seems to have no impact, nor does reseting
> permissions to 777.
> (I had a similar problem with 2.71 but have no idea how it was resolved)
>
> I can't seem to find the file that holds the <PluginList> tag that
> isn't closed with a </PluginList> closing tag
>
> Any advice would be appreciated.
>
> I have appended the output from starting the gli at the end of this email.
>
> Cheers,
>
> Stephen
>
> Notes:
> - the download page mac os x link downloads the 2.74, rather than
> 2.74b - you have to go via the sourceforge project downloads link.
> - on install the Directory Name for install is /opt/greentone - /opt
> does not exist in a default osx install and hitting 'next' normally
> fails - I think you need to both create and change the permissions for
> /opt for this to succeed. [Not my real issue, I just cheated and
> changed it to /Applications/greenstone , but I feel this is a barrier
> for beginners]
>
> -log-
>
>
> Last login: Tue Oct 30 13:52:49 on ttyp1
> Welcome to Darwin!
> cd '/Applications/greenstone/'
> uclic36:~ stephen$ cd '/Applications/greenstone/'
> uclic36:/Applications/greenstone stephen$ source setup.bash
> Your environment has successfully been set up to run Greenstone
> uclic36:/Applications/greenstone stephen$ cd gli
> uclic36:/Applications/greenstone/gli stephen$ ./gli.sh
>
> Greenstone Librarian Interface (GLI)
> Copyright (C) 2006, 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
> Checking Perl: /usr/bin/perl
> Checking Java: /usr/bin/java
>
> Running the Greenstone Librarian Interface...
> Version: v2.74
>
> Java vendor: Apple Computer, Inc.
> Note that the Librarian Interface has been developed and tested with
> Java from Sun Microsystems.
> SAX exception: The markup in the document preceding the root element
> must be well-formed.
> org.xml.sax.SAXParseException : The markup in the document preceding
> the root element must be well-formed.
> at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
> at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError
> (XMLDocumentScanner.java:626)
> at
> org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:809)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java
> :381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at
> org.greenstone.gatherer.util.XMLTools.parseXML(XMLTools.java:436)
> at org.greenstone.gatherer.util.XMLTools.parseXML
> (XMLTools.java:412)
> at
> org.greenstone.gatherer.gui.DownloadPane.loadDownload(DownloadPane.java:256)
> at
> org.greenstone.gatherer.gui.DownloadPane.<init>(DownloadPane.java:106)
> at org.greenstone.gatherer.gui.GUIManager.display
> (GUIManager.java:363)
> at org.greenstone.gatherer.Gatherer.openGUI(Gatherer.java:431)
> at org.greenstone.gatherer.GathererProg.main(GathererProg.java:80)
> SAX exception: The element type "PluginList" must be terminated by the
> matching end-tag "</PluginList>".
> org.xml.sax.SAXParseException: The element type "PluginList" must be
> terminated by the matching end-tag "</PluginList>".
> at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java :1196)
> at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:635)
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.endOfInput(XMLDocumentScanner.java
> :1462)
> at
> org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocumentScanner.java:418)
> at
> org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifications(XMLValidator.java:694)
>
> at
> org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultEntityHandler.java:1026)
> at
> org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityReader.java:168)
> at org.apache.xerces.readers.AbstractCharReader.changeReaders
> (AbstractCharReader.java:150)
> at
> org.apache.xerces.readers.AbstractCharReader.scanContent(AbstractCharReader.java:1097)
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java
> :1150)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at org.greenstone.gatherer.util.XMLTools.parseXML
> (XMLTools.java:436)
> at
> org.greenstone.gatherer.greenstone.Plugins.parsePluginsListXML(Plugins.java:302)
> at
> org.greenstone.gatherer.greenstone.Plugins.loadPluginsList(Plugins.java:232)
> at org.greenstone.gatherer.Gatherer.openGUI (Gatherer.java:458)
> at org.greenstone.gatherer.GathererProg.main(GathererProg.java:80)
> java.lang.NullPointerException
> at
> org.greenstone.gatherer.greenstone.Plugins.parsePluginsListXML(Plugins.java
> :303)
> at
> org.greenstone.gatherer.greenstone.Plugins.loadPluginsList(Plugins.java:232)
> at org.greenstone.gatherer.Gatherer.openGUI(Gatherer.java:458)
> at org.greenstone.gatherer.GathererProg.main
> (GathererProg.java:80)
> SAX exception: The markup in the document preceding the root element
> must be well-formed.
> org.xml.sax.SAXParseException: The markup in the document preceding
> the root element must be well-formed.
> at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
> at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:626)
> at
> org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch
> (XMLDocumentScanner.java:809)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at
> org.greenstone.gatherer.util.XMLTools.parseXML(XMLTools.java:436)
> at
> org.greenstone.gatherer.util.XMLTools.parseXML(XMLTools.java:412)
> at
> org.greenstone.gatherer.collection.ScriptOptions.loadArguments
> (ScriptOptions.java:252)
> at
> org.greenstone.gatherer.collection.ScriptOptions.<init>(ScriptOptions.java:43)
> at
> org.greenstone.gatherer.collection.Collection.<init>(Collection.java:113)
> at
> org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:969)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:856)
> java.lang.NullPointerException
> at
> org.greenstone.gatherer.collection.ScriptOptions.loadArguments
> (ScriptOptions.java:255)
> at
> org.greenstone.gatherer.collection.ScriptOptions.<init>(ScriptOptions.java:43)
> at
> org.greenstone.gatherer.collection.Collection.<init>(Collection.java:113)
> at
> org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:969)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:856)
> SAX exception: The markup in the document preceding the root element
> must be well-formed.
> org.xml.sax.SAXParseException : The markup in the document preceding
> the root element must be well-formed.
> at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
> at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError
> (XMLDocumentScanner.java:626)
> at
> org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:809)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java
> :381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at
> org.greenstone.gatherer.util.XMLTools.parseXML(XMLTools.java:436)
> at org.greenstone.gatherer.util.XMLTools.parseXML
> (XMLTools.java:412)
> at
> org.greenstone.gatherer.collection.ScriptOptions.loadArguments(ScriptOptions.java:252)
> at
> org.greenstone.gatherer.collection.ScriptOptions.<init>(ScriptOptions.java:43)
> at
> org.greenstone.gatherer.collection.Collection.<init>(Collection.java:114)
> at
> org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:969)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:856)
> java.lang.NullPointerException
> at
> org.greenstone.gatherer.collection.ScriptOptions.loadArguments(ScriptOptions.java:255)
> at
> org.greenstone.gatherer.collection.ScriptOptions.<init>(ScriptOptions.java:43)
> at org.greenstone.gatherer.collection.Collection
> .<init>(Collection.java:114)
> at
> org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:969)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200
> (CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:856)
> java.lang.NullPointerException
> at org.greenstone.gatherer.greenstone.Plugins.getPlugin
> (Plugins.java:74)
> at org.greenstone.gatherer.cdm.Plugin.create(Plugin.java:75)
> at
> org.greenstone.gatherer.cdm.DOMProxyListModel.getElementAt(DOMProxyListModel.java:221)
> at org.greenstone.gatherer.cdm.PluginManager
> .<init>(PluginManager.java:80)
> at
> org.greenstone.gatherer.cdm.CollectionDesignManager.loadDesignDetails(CollectionDesignManager.java:125)
> at org.greenstone.gatherer.cdm.CollectionDesignManager.<init>(
> CollectionDesignManager.java:100)
> at
> org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:1008)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200
> (CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:856)
> Exception in thread "Thread-6" java.lang.NullPointerException
> at
> org.greenstone.gatherer.collection.CollectionManager.saveCollection(CollectionManager.java:1275)
> at
> org.greenstone.gatherer.gui.GUIManager.saveThenCloseCurrentCollection(GUIManager.java:299)
> at
> org.greenstone.gatherer.gui.GUIManager$OpenCollectionTask.run(GUIManager.java:681)
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>