[greenstone-users] Problem with remote gli

From Chris Hammond-Thrasher
DateWed Apr 16 08:38:17 2008
Subject [greenstone-users] Problem with remote gli
In-Reply-To (47FD84C5-4020309-cs-waikato-ac-nz)
Michael,

Your suggestion was very useful. Using the URL that you provided, I
received a very clear error message stating that XML::SAX::Expat was not
in gsdl's perllib directory. I installed this module in my own perl path
with a nice Debian

apt-get install libxml-sax-expat-perl

and then copied the module files from my perl module directory to the
appropriate directory under gsdl/perllib.

This raises that question, was Expat accidentally omitted from the 2.80
release of gsdl?

-cht

On Thu, 2008-04-10 at 15:08 +1200, Michael Dewsnip wrote:
> Hi Chris,
>
> To debug these errors, try running the commands that produce errors
> from a web browser and see what output you get.
>
> This is the same as running the "check-installation" command during
> the setup process, but with different CGI arguments. So instead of
> accessing
>
> gliserver.pl?cmd=check-installation
>
> you might try
>
>
> gliserver.pl?cmd=get-script-options&script=pluginfo.pl&xml=&language=en&listall&un=<username>&pw=<password>
>
> Once you see the output (or the error messages, more likely) it's
> normally fairly obvious where the problem is -- often it's with the
> XML::Parser module.
>
> Regards,
>
> Michael
> --
> DL Consulting
> Greenstone Digital Library and Digitisation Specialists
> contact@dlconsulting.com
> www.dlconsulting.com
>
>
>
> Chris Hammond-Thrasher wrote:
> > List,
> >
> > I have installed gsdl 2.80 on a debian etch box (ok, a xen vm) and need
> > to access it from another debian etch box. I created a user account in
> > the group all-collections-editor on the server. I downloaded the gli
> > 2.80 client unpacked it on the client box. I ran the client, entered the
> > server address, entered my username/password, went to file->new, entered
> > info on the new collection and made it not personal, and hit ok.
> >
> > After a few moments the client console is full of errors (see below) and
> > the gli gui is frozen and has to be forced to quit. /home/cht/.gli is
> > writable by user cht on the client machine and all gsdl directories on
> > the server are world r/w/x. Help?
> >
> > Here is the content of the gli console (sorry for the length, but I
> > wanted to include the whole session). Note that I get the same behavior
> > if I use Sun Java 1.6.
> >
> > -cht
> >
> > cht@libsysmgr:~/Desktop/gli-client-2.80$ ./client-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 Java: /usr/local/j2re1.4.2_16//bin/java
> >
> > Running the Greenstone Librarian Interface...
> > Version: 2.80
> >
> > Deleting user's local collect directory...
> > Done.
> > gliserver args:
> > cmd=get-script-options&script=classinfo.pl&xml=&language=en&listall
> > gliserver args:
> > cmd=get-script-options&script=pluginfo.pl&xml=&language=en&listall
> > 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.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)
> > gliserver args: cmd=download-collection-configurations
> > Script name: mkcol.pl
> > Collection name: test8408
> > Script args: &win31compat=false
> > gliserver args:
> > cmd=run-script&c=test8408&script=mkcol.pl&language=en&win31compat=false
> > gliserver args: cmd=download-collection&c=test8408
> > gliserver args: cmd=new-collection-directory&c=test8408&directory=import
> > gliserver args:
> > cmd=get-script-options&script=buildcol.pl&xml=&language=en
> > 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.collection.ScriptOptions.loadArguments(ScriptOptions.java:228)
> > 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.createCollectionInternal(CollectionManager.java:410)
> > at org.greenstone.gatherer.collection.CollectionManager.access
> > $000(CollectionManager.java:82)
> > at org.greenstone.gatherer.collection.CollectionManager
> > $CreateCollectionTask.run(CollectionManager.java:360)
> > 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.createCollectionInternal(CollectionManager.java:410)
> > at org.greenstone.gatherer.collection.CollectionManager.access
> > $000(CollectionManager.java:82)
> > at org.greenstone.gatherer.collection.CollectionManager
> > $CreateCollectionTask.run(CollectionManager.java:360)
> > gliserver args: cmd=get-script-options&script=import.pl&xml=&language=en
> > 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.collection.ScriptOptions.loadArguments(ScriptOptions.java:228)
> > 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.createCollectionInternal(CollectionManager.java:410)
> > at org.greenstone.gatherer.collection.CollectionManager.access
> > $000(CollectionManager.java:82)
> > at org.greenstone.gatherer.collection.CollectionManager
> > $CreateCollectionTask.run(CollectionManager.java:360)
> > 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.createCollectionInternal(CollectionManager.java:410)
> > at org.greenstone.gatherer.collection.CollectionManager.access
> > $000(CollectionManager.java:82)
> > at org.greenstone.gatherer.collection.CollectionManager
> > $CreateCollectionTask.run(CollectionManager.java:360)
> > gliserver URL: http://144.120.32.137/gsdl/cgi-bin/gliserver.pl
> > gliserver args:
> > cmd=upload-collection-file&c=test8408&file=test8408-1207714814682.zip&directory=&zip=true
> > gliserver URL: http://144.120.32.137/gsdl/cgi-bin/gliserver.pl
> > gliserver args:
> > cmd=upload-collection-file&c=test8408&file=test8408-1207714815268.zip&directory=&zip=true
> > gliserver args:
> > cmd=get-script-options&script=classinfo.pl&xml=&language=en&classifier=AZList
> > 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.createCollectionInternal(CollectionManager.java:472)
> > at org.greenstone.gatherer.collection.CollectionManager.access
> > $000(CollectionManager.java:82)
> > at org.greenstone.gatherer.collection.CollectionManager
> > $CreateCollectionTask.run(CollectionManager.java:360)
> > java.lang.NullPointerException
> > at
> > org.greenstone.gatherer.collection.CollectionManager.saveCollection(CollectionManager.java:1295)
> > at
> > org.greenstone.gatherer.gui.GUIManager.saveThenCloseCurrentCollection(GUIManager.java:299)
> > at
> > org.greenstone.gatherer.gui.GUIManager.exit(GUIManager.java:461)
> > at
> > org.greenstone.gatherer.gui.GUIManager.exit(GUIManager.java:451)
> > at
> > org.greenstone.gatherer.gui.GUIManager.processWindowEvent(GUIManager.java:849)
> > at java.awt.Window.processEvent(Unknown Source)
> > at java.awt.Component.dispatchEventImpl(Unknown Source)
> > at java.awt.Container.dispatchEventImpl(Unknown Source)
> > at java.awt.Window.dispatchEventImpl(Unknown Source)
> > at java.awt.Component.dispatchEvent(Unknown Source)
> > at java.awt.EventQueue.dispatchEvent(Unknown Source)
> > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
> > Source) at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> > at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> > at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> > at java.awt.EventDispatchThread.run(Unknown Source)
> >
> >
> >
> >
> >
> >
> >
> >
> > ____________________________________________________________________
> >
> > _______________________________________________
> > greenstone-users mailing list
> > greenstone-users@list.scms.waikato.ac.nz
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> >
>