-----Original Message-----
From: Cheung, Jamie [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 2:51 PM
To: xindice-users@xml.apache.org
Subject: retrieve_document errorHello all,
I'm having a problem with my just-installed xindice. I've been playing around with the command line tool and I'm getting a java.io.EOFException error when retreiving a document. At first I thought there was an error in the file itself, but when I add it to another collection, the retrieve command works just find. Any one else had this problem? Any help would be much appreciated!!!
I have on my machine Xindice 1.0, j2sdk1.41, and MS Windows 2000 Service Pack 3.
~Jamie
##This is the output when the server is started:
C:\xml-xindice-1.0>startup
java -classpath ";.;;C:\xml-xindice-1.0\bin\config;C:\xml-xindice-1.0\java\lib\ant-1.4.1.j
ar;C:\xml-xindice-1.0\java\lib\examples.jar;C:\xml-xindice-1.0\java\lib\infozone-tools.jar
;C:\xml-xindice-1.0\java\lib\openorb-1.2.0.jar;C:\xml-xindice-1.0\java\lib\openorb_tools-1
.2.0.jar;C:\xml-xindice-1.0\java\lib\xalan-2.0.1.jar;C:\xml-xindice-1.0\java\lib\xerces-1.
4.3.jar;C:\xml-xindice-1.0\java\lib\xindice.jar;C:\xml-xindice-1.0\java\lib\xml-apis-1.0.j
ar;C:\xml-xindice-1.0\java\lib\xmldb-sdk.jar;C:\xml-xindice-1.0\java\lib\xmldb-xupdate.jar
;C:\xml-xindice-1.0\java\lib\xmldb.jar;C:\j2sdk1.4.1_01\lib\tools.jar" -noverify org.apach
e.xindice.core.server.Xindice C:\xml-xindice-1.0\config\system.xmlXindice 1.0 (Birthday)
Database: 'db' initializing
Script: 'GET' added to script storage
Service: 'db' started
Service: 'HTTPServer' started @ http://jcheung-pc:4080/
Service: 'APIService' startedServer Running
##And this is the output where the described error occurs
C:\>xindiceadmin ac -c /db -n tester
Created : /db/tester
C:\>xindice ad -c /db/tester -f C:\cadm_xml\AllCADM_31JAN03_InstanceXML.xml -n instance
Added document /db/tester/instance
C:\>xindice ad -c /db/tester -f C:\cadm_xml\AllCADM_31JAN03_InstanceXML.xml -n instance
Added document /db/tester/instance
C:\>xindice rd -c /db/tester -n instance -f C:\instance.xml
DEBUG>
java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:278)
at org.apache.xindice.xml.XMLCompressedInput.readContentSize(XMLCompressedInput.java:182)
at org.apache.xindice.xml.dom.ElementImpl.loadAttributes(ElementImpl.java:174)
at org.apache.xindice.xml.dom.ElementImpl.<init>(ElementImpl.java:93)
at org.apache.xindice.xml.dom.ContainerNodeImpl.loadChildren(ContainerNodeImpl.java:155)
at org.apache.xindice.xml.dom.DocumentImpl.checkLoaded(DocumentImpl.java:150)
at org.apache.xindice.xml.dom.DocumentImpl.getDocumentElement(DocumentImpl.java:262)
at org.apache.xindice.client.corba.SymbolDeserializer.getSymbols(SymbolDeserializer.java:115)
at org.apache.xindice.client.xmldb.CollectionImpl.getResource(CollectionImpl.java:393)
at org.apache.xindice.tools.command.RetrieveDocument.execute(RetrieveDocument.java:100)
at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:331)
at org.apache.xindice.tools.XMLTools.process(XMLTools.java:257)
at org.apache.xindice.tools.XMLUserTools.main(XMLUserTools.java:98)
DEBUG>
java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:278)
at org.apache.xindice.xml.XMLCompressedInput.readContentSize(XMLCompressedInput.java:182)
at org.apache.xindice.xml.dom.ElementImpl.checkLoaded(ElementImpl.java:136)
at org.apache.xindice.xml.dom.ContainerNodeImpl.getElementsByTagName(ContainerNodeImpl.java:463)
at org.apache.xindice.xml.SymbolTable.streamFromXML(SymbolTable.java:248)
at org.apache.xindice.client.corba.SymbolDeserializer.getSymbols(SymbolDeserializer.java:115)
at org.apache.xindice.client.xmldb.CollectionImpl.getResource(CollectionImpl.java:393)
at org.apache.xindice.tools.command.RetrieveDocument.execute(RetrieveDocument.java:100)
at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:331)
at org.apache.xindice.tools.XMLTools.process(XMLTools.java:257)
at org.apache.xindice.tools.XMLUserTools.main(XMLUserTools.java:98)
ERROR :##Then I try creating a new collection, and it appears to work just fine...
C:\>xindiceadmin ac -c /db -n test
Created : /db/test
C:\>xindice ad -c /db/test -f C:\cadm_xml\AllCADM_31JAN03_InstanceXML.xml -n instance
Added document /db/test/instance
C:\>xindice rd -c /db/test -n instance -f C:\instance.xml
Writing...
Wrote file C:\instance.xml
Title: retrieve_document error
Ok,
well it seems I've managed to get rid of the error somewhat... it still occurs
every once in a awhile. But if anyone is interested, what I did was to set
the JAVACMD environment variable to the particular java.exe I wanted Xindice to
use. I *think* originally it was using the java command from another
source which was version 1.3.1... but Xindice uses Sun's SDK 1.3 and up
right? Ah well. Thanks!
- retrieve_document error Cheung, Jamie
- Cheung, Jamie