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 Enzo Formigoni <en...@infocamere.it> on 2003/11/25 13:33:55 UTC

Error on adding document

Hello ... can't get something!
I'm tring  xindice 1.0, the embedded version start up correctly ...
output says:
__________________________________________________
Xindice 1.0 (Birthday)

Database: 'db' initializing
Script: 'GET' added to script storage
Service: 'db' started
Service: 'HTTPServer' started @ http://ENZOFORMIGONI:4080/
Service: 'APIService' started

Server Running
___________________________________________________

using xindice.bat/xindiceadmin.bat i can navigate/create  collections
but when i try to add a document in a (existing) collection using

xindice ad -c /db/test/ -f Chap0701.xml -v

 i got the following error
___________________________________________________________________
ERROR : Connection timed out: connect
Document name = null
java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:1
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
        at java.net.Socket.connect(Socket.java:425)
        at java.net.Socket.connect(Socket.java:375)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:292)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:253)
        at sun.net.www.http.HttpClient.New(HttpClient.java:321)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:301)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURL
ction.java:469)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConne
.java:460)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpU
nection.java:562)
        at java.net.URL.openStream(URL.java:955)
        at org.apache.xerces.readers.DefaultReaderFactory.createReader(Defa
aderFactory.java:149)
        at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromE
alEntity(DefaultEntityHandler.java:767)
        at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromE
alSubset(DefaultEntityHandler.java:566)
        at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTD
er.java:1139)
        at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(X
umentScanner.java:2145)
        at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocum
anner.java:2100)
        at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.
tch(XMLDocumentScanner.java:831)
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
canner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
        at org.apache.xindice.tools.command.AddDocument.execute(AddDocument
:134)
        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)
____________________________________________________________________________

I suppose that no httpserver is needed using embedded versions of xindice
...
The xml document i'm tring to add, exists: i tryed using wrong path and got
other error! but was ok!

Any clue!

java version "1.4.0_02"
OS= win2K
xindice 1.0 embedded

Have a nice day!
Enzo


Re: probleme on adding collection

Posted by Enzo Formigoni <en...@infocamere.it>.
Try

xindiceadmin ac -c /db -n address
 i'm using the 1.0 but if i don't put a blank
between "-n" and "address" got an error!

Ciao
Enzo

----- Original Message -----
From: "Majirus FANSI" <ma...@yahoo.fr>
To: <xi...@xml.apache.org>
Sent: Wednesday, November 26, 2003 6:30 PM
Subject: probleme on adding collection


> Hi all,
> i perform the command line for adding collection like
> this: ac -c /db -n/address
> My prompt is: e:\tomcat\webapps\xindice-1.1b2\web-inf>
> I obtained this:
> [DEBUG] DatabaseImpl- -Using Sax Driver: 'xerces'
> [DEBUG] DatabaseImpl- -Using Service location:
> '/xindice/'
> [DEBUG] CollectionImpl- -Using
> URL:'http://127.0.0.1:8888/xindice'
> XMLDB Exception with code 0,
>
> Have anybody know why this command don't work?
>
> os:WINDOWS 2000 Prof
>
> thanks,
> Majirus
>
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com


probleme on adding collection

Posted by Majirus FANSI <ma...@yahoo.fr>.
 Hi all,
i perform the command line for adding collection like
this: ac -c /db -n/address
My prompt is: e:\tomcat\webapps\xindice-1.1b2\web-inf>
I obtained this:
[DEBUG] DatabaseImpl- -Using Sax Driver: 'xerces'
[DEBUG] DatabaseImpl- -Using Service location:
'/xindice/'
[DEBUG] CollectionImpl- -Using
URL:'http://127.0.0.1:8888/xindice'
XMLDB Exception with code 0,

Have anybody know why this command don't work?

os:WINDOWS 2000 Prof

thanks,
Majirus


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

Re: Error on adding document

Posted by Enzo Formigoni <en...@infocamere.it>.
I found out the reason!
At the beginning of the xml document there was the following line
<!DOCTYPE ITEXT SYSTEM "http://itext.sourceforge.net/itext.dtd">

the XMLParser was tring to read that url but the proxy did not allow the
connection to be done!

David,  thanks for the help!
Ciao

Enzo


----- Original Message -----
From: "David Kensche" <da...@rwth-aachen.de>
To: <xi...@xml.apache.org>
Sent: Tuesday, November 25, 2003 3:46 PM
Subject: Re: Error on adding document


> Enzo Formigoni wrote:
>
> >Hi David
> >
> >i tried your suggestion: now "Document name" in not null, but the problem
> >persists
> >_____________________________________________
> >Document name = Chap0701
> >java.net.ConnectException: Connection timed out: connect
> >...
> >______________________________________________
> >it seems the client (xindice/xindiceadmin) is not able
> >to find the server application!
> >
> >Ciao
> >Enzo
> >
> >
> >
> Hi again,
> Since the Exception comes from the HttpURLConnection and is thrown during
> the connection setup (this is how I interpret "connect"), this doesn't
> seem to be a problem with xindice but maybe with your network setup?
> This is all I can say.
>
>     Good luck,
>        David
>
>


Re: Error on adding document

Posted by David Kensche <da...@rwth-aachen.de>.
Enzo Formigoni wrote:

>Hi David
>
>i tried your suggestion: now "Document name" in not null, but the problem
>persists
>_____________________________________________
>Document name = Chap0701
>java.net.ConnectException: Connection timed out: connect
>...
>______________________________________________
>it seems the client (xindice/xindiceadmin) is not able
>to find the server application!
>
>Ciao
>Enzo
>
>  
>
Hi again,
Since the Exception comes from the HttpURLConnection and is thrown during
the connection setup (this is how I interpret "connect"), this doesn't
seem to be a problem with xindice but maybe with your network setup?
This is all I can say.

    Good luck,
       David



Re: Error on adding document

Posted by Enzo Formigoni <en...@infocamere.it>.
Hi David

i tried your suggestion: now "Document name" in not null, but the problem
persists
_____________________________________________
Document name = Chap0701
java.net.ConnectException: Connection timed out: connect
...
______________________________________________
it seems the client (xindice/xindiceadmin) is not able
to find the server application!

Ciao
Enzo



----- Original Message -----
From: "David Kensche" <da...@rwth-aachen.de>
To: <xi...@xml.apache.org>
Sent: Tuesday, November 25, 2003 1:49 PM
Subject: Re: Error on adding document


> Enzo Formigoni wrote:
>
> >Hello ... can't get something!
> >I'm tring  xindice 1.0, the embedded version start up correctly ...
> >output says:
> >__________________________________________________
> >Xindice 1.0 (Birthday)
> >
> >Database: 'db' initializing
> >Script: 'GET' added to script storage
> >Service: 'db' started
> >Service: 'HTTPServer' started @ http://ENZOFORMIGONI:4080/
> >Service: 'APIService' started
> >
> >Server Running
> >___________________________________________________
> >
> >using xindice.bat/xindiceadmin.bat i can navigate/create  collections
> >but when i try to add a document in a (existing) collection using
> >
> >xindice ad -c /db/test/ -f Chap0701.xml -v
> >
> > i got the following error
> >___________________________________________________________________
> >ERROR : Connection timed out: connect
> >Document name = null
> >java.net.ConnectException: Connection timed out: connect
> >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
> >        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:1
> >        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
> >        at java.net.Socket.connect(Socket.java:425)
> >        at java.net.Socket.connect(Socket.java:375)
> >        at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
> >
> >
> >
> I assume the problem is that you didn't specify a name for the document
> (Document name = null).
> You could try
>
> xindice ad -c /db/test/ -f Chap0701.xml -n Chap0701.xml -v
>
>
>
> instead.
>
>     Bye,
>
>        David
>
>


Re: Error on adding document

Posted by David Kensche <da...@rwth-aachen.de>.
Enzo Formigoni wrote:

>Hello ... can't get something!
>I'm tring  xindice 1.0, the embedded version start up correctly ...
>output says:
>__________________________________________________
>Xindice 1.0 (Birthday)
>
>Database: 'db' initializing
>Script: 'GET' added to script storage
>Service: 'db' started
>Service: 'HTTPServer' started @ http://ENZOFORMIGONI:4080/
>Service: 'APIService' started
>
>Server Running
>___________________________________________________
>
>using xindice.bat/xindiceadmin.bat i can navigate/create  collections
>but when i try to add a document in a (existing) collection using
>
>xindice ad -c /db/test/ -f Chap0701.xml -v
>
> i got the following error
>___________________________________________________________________
>ERROR : Connection timed out: connect
>Document name = null
>java.net.ConnectException: Connection timed out: connect
>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
>        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:1
>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
>        at java.net.Socket.connect(Socket.java:425)
>        at java.net.Socket.connect(Socket.java:375)
>        at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
>
>  
>
I assume the problem is that you didn't specify a name for the document 
(Document name = null).
You could try

xindice ad -c /db/test/ -f Chap0701.xml -n Chap0701.xml -v



instead.

    Bye,

       David