[greenstone-users] SAX exception and GLI

From qq6@cs.waikato.ac.nz
DateTue Feb 12 11:42:51 2008
Subject [greenstone-users] SAX exception and GLI
In-Reply-To (391594-62586-qm-web26511-mail-ukl-yahoo-com)
Hi Del

It is because the Perl XML parser couldn't work properly to generate a
plugin list in XML format. An instruction about how to fix this problem is
available online at:
http://wiki.greenstone.org/wiki/index.php/Building_Greenstone_collections#How_do_I_fix_XML::Parser_errors

Regards
Quan

> Dear friends,
>
> I installed GSDL 2.80 on Linux. I'm using Debian based SimplyMepis 7
> distro with Sun Java 6 and Perl 5.8 installed. All is ok (i can see demo
> collection in browser... when starting gli (gli.sh) , GLI interface appear
> but it's impossible open collections and create it. Message : imposible to
> open files at usr/local/gsdl/demo/demo.col
>
> There are the following error in the shell (I saw somebody had a similar
> problem but I didn't find a real solution ):
>
> 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 "</Plugi
> nList>".
> 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:1
> 462)
> 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:115
> 0)
> 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.init(Gatherer.java:441)
> at org.greenstone.gatherer.Gatherer.<init>(Gatherer.java:201)
> at org.greenstone.gatherer.GathererProg.main(GathererProg.java:77)
> 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.init(Gatherer.java:441)
> at org.greenstone.gatherer.Gatherer.<init>(Gatherer.java:201)
> at org.greenstone.gatherer.GathererProg.main(GathererProg.java:77)
> 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:480)
> 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:97
> 4)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:85
> 6)
> 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:97
> 4)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:85
> 6)
> 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:97
> 4)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:85
> 6)
> 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:97
> 4)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:85
> 6)
> 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:12
> 5)
> at
> org.greenstone.gatherer.cdm.CollectionDesignManager.<init>(CollectionDesignManager.java:100)
> at
> org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:10
> 13)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:85
> 6)
> 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:12
> 5)
> at
> org.greenstone.gatherer.cdm.CollectionDesignManager.<init>(CollectionDesignManager.java:100)
> at
> org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:10
> 13)
> at
> org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:82)
> at
> org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:85
>
> Thanks a lot in advance for any help!
>
> Delo
>
>
> ---------------------------------
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
> Mail _______________________________________________
> greenstone-users mailing list
> greenstone-users&#64;list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>