You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Getty Images USA License <li...@gettyimages.com> on 2004/03/25 15:35:14 UTC

'Getty=001-602-950'Problem adding a document

Hello and thank you for your email. We strive to respond to all email inquiries within one business day. If your issue cannot wait that long, please call us at 877-438-8966. Our hours are 6:00 a.m. to 6:00 p.m. Pacific Standard Time, Monday through Friday. 

For reference, your assigned case ID is:1602950



-----Original Message-----
From: Oliver Klee [oliver.klee@fit.fraunhofer.de]
Sent: Thursday, Mar 25 2004 6:31AM
To: xindice-users@xml.apache.org [xindice-users@xml.apache.org]
Subject: Problem adding a document



Hi, 

I have problems adding document to a collection and would appreciate any 
help. 

My system is: 
SuSE Linux 8.2 
Sun JRE 1.4.1-23 
Apache Tomcat 4.1.18-25 
Xindice 1.1b3 

I compiled and installed Xindice like described in 
http://xml.apache.org/xindice/community/howto/ <http://xml.apache.org/xindice/community/howto/>  . In addition, I use the 
command line tools from the location where I had put the source. 

In order to get the command line tools to work, I had to change to 
Tomcat port from 8080 to 8888 and manually set XINDICE_HOME to ".." 
(relative to the bin/ directory). 

The "ugly browser 1.11" now works fine on port 8888. 

Adding a collection "data" as a subcollection of /db worked fine, too. 
Then the trouble began: Adding an XML test document (containing just a 
root element) fails: 

icon-01:/tmp/xindice-1.1b3/bin # ./xindice ad -c /db/data -v -f 
/home/klee/bib/test.xml -n hallo 
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces' 
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/' 
[DEBUG] CollectionImpl - -Using URL: ' http://127.0.0.1:8888/xindice/' <http://127.0.0.1:8888/xindice/'>  
XMLDB Exception with code 1 
org.xmldb.api.base.XMLDBException: :[Thread-6] '/db/data' putDocument: 
docKey=<hallo>: Error compressing Document 'hallo' 
         at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:201) 
         at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(CollectionImpl.java:318) 
         at 
org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:139) 
         at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:336) 
         at org.apache.xindice.tools.XMLTools.process(XMLTools.java:213) 
         at org.apache.xindice.tools.XMLTools.main(XMLTools.java:124) 


Displaying the (empty) list of documents in that collection fails, too: 

icon-01:/tmp/xindice-1.1b3/bin # ./xindice ld -v -c /db/data 
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces' 
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/' 
[DEBUG] CollectionImpl - -Using URL: ' http://127.0.0.1:8888/xindice/' <http://127.0.0.1:8888/xindice/'>  
XMLDB Exception with code 1 
org.xmldb.api.base.XMLDBException: :Filer is closed 
         at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:201) 
         at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.listResources(CollectionImpl.java:563) 
         at 
org.apache.xindice.tools.command.ListCollectionDocuments.execute(ListCollectionDocuments.java:96) 
         at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:336) 
         at org.apache.xindice.tools.XMLTools.process(XMLTools.java:213) 
         at org.apache.xindice.tools.XMLTools.main(XMLTools.java:124) 


What can I do? Any ideas? 

Thanks a lot in advance, 


Oliver Klee 

-- 
Oliver Klee 
Fraunhofer Institute for Applied Information Technology (FhG-FIT) 
Office C5-118b, Schloss Birlinghoven, 53754 Sankt Augustin 
Phone +49 02241 14-2943, Mobile +49 179 9594731 



=======================================================
This email and its contents are confidential. If you
are not the intended recipient, please do not disclose
or use the information within this email or its
attachments. If you have received this email in error,
please delete it immediately. Thank you.
=======================================================