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 Sathish Vadhiyar <vs...@cs.utk.edu> on 2002/10/04 03:05:13 UTC
error during insertDocument
Hi.
This has been posted before but Iam not able to see reply for it.
Sometimes when I do insertDocument, I get,
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
abd in the xindice console, I get
Fatal error parsing XML: org.xml.sax.SAXParseException: Document contains
illegal control character with value 0
Anyone has any ideas?
Thanks.
---------------------------------------------------------------------
Sathish S. Vadhiyar
PhD Candidate Research Assistant, Innovative Computing Laboratory
Computer Science Department
University of Tennessee
Knoxville
Ph: (865)946-4558 (H) , (865)974-6323 (O).
Re: error during insertDocument
Posted by Jonathan Mark <jh...@xenops.com>.
If you are using Xindice 1.0, you may be encountering the problem with
Xindice's HTTP server corrupting long documents. A patch for this
problem is described here:
http://marc.theaimsgroup.com/?l=xindice-dev&m=102149794111784&w=2
best regards,
Jonathan Mark
----- Original Message -----
From: "Carlos Henrique Odenique Jardim" <cj...@grad.icmc.usp.br>
To: <xi...@xml.apache.org>
Sent: Friday, October 04, 2002 10:44 AM
Subject: Re: error during insertDocument
>
> I think this is a string encodig problem because of the message
> in xindice developers list in the link below.
>
> http://marc.theaimsgroup.com/?l=xindice-dev&m=101718421018051&w=2
>
> There are some messages about xml-rpc encoding problem in the xindice
> developers lists. I suggest you to read it. I don't have time to read
it
> yet. Searche for "encoding problem" in the archieve:
>
> http://marc.theaimsgroup.com/?l=xindice-dev&r=1&w=2
>
> I hope to have helped.
>
> Carlos Henrique
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13302
>
> On Fri, 4 Oct 2002, Sathish Vadhiyar wrote:
>
> >
> > Iam using XML RPC C client program.
> >
> > Thanks.
> >
> >
> > On Fri, 4 Oct 2002, Carlos Henrique Odenique Jardim wrote:
> >
> > >
> > > I already had this problem when I was using RPC. How are you
> > > inserting the documents, RPC, command line tool, XML:DB API? This
error
> > > don't occurs always. I think this is a string enconding problem.
Now I'm
> > > inseting document whith XML:DB API and I didn't have any problem.
> > >
> > > Carlo Henrique
> > >
> > > On Thu, 3 Oct 2002, Vladimir Bossicard wrote:
> > >
> > > > > Sometimes when I do insertDocument, I get,
> > > > >
> > > > > java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
> > > > >
> > > > > abd in the xindice console, I get
> > > > >
> > > > > Fatal error parsing XML: org.xml.sax.SAXParseException:
Document contains
> > > > > illegal control character with value 0
> > > >
> > > > Looks like your document has a problem. The main question is:
can you
> > > > always reproduce the bug with the same document?
> > > >
> > > > If you can provide the document, it would be very helpful. I
recommand
> > > > that you open a new bug on http://nagoya.apache.org/bugzilla/ so
that
> > > > the developers know what's going on.
> > > >
> > > > -Vladimir
> > > >
> > >
> > > --
> > >
> > > ______________________________________________
> > > Carlos Henrique Odenique Jardim
> > > Bacharelado em Ciência da Computação
> > > ICMC - USP - São Carlos
> > > ICQ UIN: 112116045
> > > LINUX USER: 217111
> > > e-mail: cjardim@grad.icmc.usp.br
> > >
> > > "Quem quer passar além do Bojador
> > > Tem que passar além da dor."
> > > (Fernando Pessoa)
> > > ______________________________________________
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> >
> > Sathish S. Vadhiyar
> > PhD Candidate Research Assistant, Innovative Computing Laboratory
> > Computer Science Department
> > University of Tennessee
> > Knoxville
> >
> > Ph: (865)946-4558 (H) , (865)974-6323 (O).
> >
>
> --
>
> ______________________________________________
> Carlos Henrique Odenique Jardim
> Bacharelado em Ciência da Computação
> ICMC - USP - São Carlos
> ICQ UIN: 112116045
> LINUX USER: 217111
> e-mail: cjardim@grad.icmc.usp.br
>
> "Quem quer passar além do Bojador
> Tem que passar além da dor."
> (Fernando Pessoa)
> ______________________________________________
>
>
>
>
>
>
>
Re: error during insertDocument
Posted by Carlos Henrique Odenique Jardim <cj...@grad.icmc.usp.br>.
I think this is a string encodig problem because of the message
in xindice developers list in the link below.
http://marc.theaimsgroup.com/?l=xindice-dev&m=101718421018051&w=2
There are some messages about xml-rpc encoding problem in the xindice
developers lists. I suggest you to read it. I don't have time to read it
yet. Searche for "encoding problem" in the archieve:
http://marc.theaimsgroup.com/?l=xindice-dev&r=1&w=2
I hope to have helped.
Carlos Henrique
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13302
On Fri, 4 Oct 2002, Sathish Vadhiyar wrote:
>
> Iam using XML RPC C client program.
>
> Thanks.
>
>
> On Fri, 4 Oct 2002, Carlos Henrique Odenique Jardim wrote:
>
> >
> > I already had this problem when I was using RPC. How are you
> > inserting the documents, RPC, command line tool, XML:DB API? This error
> > don't occurs always. I think this is a string enconding problem. Now I'm
> > inseting document whith XML:DB API and I didn't have any problem.
> >
> > Carlo Henrique
> >
> > On Thu, 3 Oct 2002, Vladimir Bossicard wrote:
> >
> > > > Sometimes when I do insertDocument, I get,
> > > >
> > > > java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> > > >
> > > > abd in the xindice console, I get
> > > >
> > > > Fatal error parsing XML: org.xml.sax.SAXParseException: Document contains
> > > > illegal control character with value 0
> > >
> > > Looks like your document has a problem. The main question is: can you
> > > always reproduce the bug with the same document?
> > >
> > > If you can provide the document, it would be very helpful. I recommand
> > > that you open a new bug on http://nagoya.apache.org/bugzilla/ so that
> > > the developers know what's going on.
> > >
> > > -Vladimir
> > >
> >
> > --
> >
> > ______________________________________________
> > Carlos Henrique Odenique Jardim
> > Bacharelado em Ci�ncia da Computa��o
> > ICMC - USP - S�o Carlos
> > ICQ UIN: 112116045
> > LINUX USER: 217111
> > e-mail: cjardim@grad.icmc.usp.br
> >
> > "Quem quer passar al�m do Bojador
> > Tem que passar al�m da dor."
> > (Fernando Pessoa)
> > ______________________________________________
> >
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
>
> Sathish S. Vadhiyar
> PhD Candidate Research Assistant, Innovative Computing Laboratory
> Computer Science Department
> University of Tennessee
> Knoxville
>
> Ph: (865)946-4558 (H) , (865)974-6323 (O).
>
--
______________________________________________
Carlos Henrique Odenique Jardim
Bacharelado em Ci�ncia da Computa��o
ICMC - USP - S�o Carlos
ICQ UIN: 112116045
LINUX USER: 217111
e-mail: cjardim@grad.icmc.usp.br
"Quem quer passar al�m do Bojador
Tem que passar al�m da dor."
(Fernando Pessoa)
______________________________________________
Re: error during insertDocument
Posted by Sathish Vadhiyar <vs...@cs.utk.edu>.
Iam using XML RPC C client program.
Thanks.
On Fri, 4 Oct 2002, Carlos Henrique Odenique Jardim wrote:
>
> I already had this problem when I was using RPC. How are you
> inserting the documents, RPC, command line tool, XML:DB API? This error
> don't occurs always. I think this is a string enconding problem. Now I'm
> inseting document whith XML:DB API and I didn't have any problem.
>
> Carlo Henrique
>
> On Thu, 3 Oct 2002, Vladimir Bossicard wrote:
>
> > > Sometimes when I do insertDocument, I get,
> > >
> > > java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> > >
> > > abd in the xindice console, I get
> > >
> > > Fatal error parsing XML: org.xml.sax.SAXParseException: Document contains
> > > illegal control character with value 0
> >
> > Looks like your document has a problem. The main question is: can you
> > always reproduce the bug with the same document?
> >
> > If you can provide the document, it would be very helpful. I recommand
> > that you open a new bug on http://nagoya.apache.org/bugzilla/ so that
> > the developers know what's going on.
> >
> > -Vladimir
> >
>
> --
>
> ______________________________________________
> Carlos Henrique Odenique Jardim
> Bacharelado em Ci�ncia da Computa��o
> ICMC - USP - S�o Carlos
> ICQ UIN: 112116045
> LINUX USER: 217111
> e-mail: cjardim@grad.icmc.usp.br
>
> "Quem quer passar al�m do Bojador
> Tem que passar al�m da dor."
> (Fernando Pessoa)
> ______________________________________________
>
>
>
>
>
>
---------------------------------------------------------------------
Sathish S. Vadhiyar
PhD Candidate Research Assistant, Innovative Computing Laboratory
Computer Science Department
University of Tennessee
Knoxville
Ph: (865)946-4558 (H) , (865)974-6323 (O).
Re: error during insertDocument
Posted by Carlos Henrique Odenique Jardim <cj...@grad.icmc.usp.br>.
I already had this problem when I was using RPC. How are you
inserting the documents, RPC, command line tool, XML:DB API? This error
don't occurs always. I think this is a string enconding problem. Now I'm
inseting document whith XML:DB API and I didn't have any problem.
Carlo Henrique
On Thu, 3 Oct 2002, Vladimir Bossicard wrote:
> > Sometimes when I do insertDocument, I get,
> >
> > java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> >
> > abd in the xindice console, I get
> >
> > Fatal error parsing XML: org.xml.sax.SAXParseException: Document contains
> > illegal control character with value 0
>
> Looks like your document has a problem. The main question is: can you
> always reproduce the bug with the same document?
>
> If you can provide the document, it would be very helpful. I recommand
> that you open a new bug on http://nagoya.apache.org/bugzilla/ so that
> the developers know what's going on.
>
> -Vladimir
>
--
______________________________________________
Carlos Henrique Odenique Jardim
Bacharelado em Ci�ncia da Computa��o
ICMC - USP - S�o Carlos
ICQ UIN: 112116045
LINUX USER: 217111
e-mail: cjardim@grad.icmc.usp.br
"Quem quer passar al�m do Bojador
Tem que passar al�m da dor."
(Fernando Pessoa)
______________________________________________
Re: error during insertDocument
Posted by Vladimir Bossicard <vl...@adnovum.com>.
A bug report has been filed
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13302)
Do not expect a fix in the next hour but at least we have a description
of your bug.
-Vladimir
Re: error during insertDocument
Posted by Sathish Vadhiyar <vs...@cs.utk.edu>.
Forgot to mention in my previous mail.
I get the error in the 3rd step and not in the 1st step even though I use
the same document.
Thanks.
On Thu, 3 Oct 2002, Vladimir Bossicard wrote:
> > Sometimes when I do insertDocument, I get,
> >
> > java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> >
> > abd in the xindice console, I get
> >
> > Fatal error parsing XML: org.xml.sax.SAXParseException: Document contains
> > illegal control character with value 0
>
> Looks like your document has a problem. The main question is: can you
> always reproduce the bug with the same document?
>
> If you can provide the document, it would be very helpful. I recommand
> that you open a new bug on http://nagoya.apache.org/bugzilla/ so that
> the developers know what's going on.
>
> -Vladimir
>
---------------------------------------------------------------------
Sathish S. Vadhiyar
PhD Candidate Research Assistant, Innovative Computing Laboratory
Computer Science Department
University of Tennessee
Knoxville
Ph: (865)946-4558 (H) , (865)974-6323 (O).
Re: error during insertDocument
Posted by Vladimir Bossicard <vl...@adnovum.com>.
> Well. This is how I get the error. I do
> 1. insertDocument
> 2. removeDocument ( the doument that was inserted in step 1)
> 3. insertDocument (the same document that I inserted in the 1st step)
Do you use the command-line tool?
Do you use a key to insert the document?
How do you retrieve the document?
Well, what I really need is _step-by-step_ how you execute your
commands. Before fixing a bug you need to reproduce it and in order to
reproduce it I need to _exactly_ know what you did.
Thanks for the additional infos.
-Vladimir
PS : you can directly add these informations to the bug report on
bugzilla
Re: error during insertDocument
Posted by Sathish Vadhiyar <vs...@cs.utk.edu>.
> Looks like your document has a problem. The main question is: can you
> always reproduce the bug with the same document?
Well. This is how I get the error. I do
1. insertDocument
2. removeDocument ( the doument that was inserted in step 1)
3. insertDocument (the same document that I inserted in the 1st step)
>
> If you can provide the document, it would be very helpful.
Following is my document.
<?xml version="1.0"?>
<function name="dgesv">
<owner>general</owner>
<version>0</version>
<description>From LAPACK -
Compute the solution to a real system of linear equations
A * X = b
where A is an N-by-B matrix and X and B are N-by-NRHS matrices.
MATLAB Example : [x y z info ] = netsolve('dgesv',a,b)
http://www.netlib.org/lapack/
</description>
<type>sequential</type>
<language>Fortran</language>
<call>
<argCount>8</argCount>
<arg>
<inout>IN</inout>
<datatype>int</datatype>
<objecttype>scalar</objecttype>
<name>N</name>
</arg>
<arg>
<inout>IN</inout>
<datatype>int</datatype>
<objecttype>scalar</objecttype>
<name>NRHS</name>
</arg>
<arg>
<inout>INOUT</inout>
<datatype>double</datatype>
<objecttype>matrix</objecttype>
<name>A</name>
<rowExpression>LDA</rowExpression>
<colExpression>N</colExpression>
</arg>
<arg>
<inout>IN</inout>
<datatype>int</datatype>
<objecttype>scalar</objecttype>
<name>LDA</name>
</arg>
<arg>
<inout>OUT</inout>
<datatype>int</datatype>
<objecttype>vector</objecttype>
<name>IPIV</name>
<sizeExpression>N</sizeExpression>
</arg>
<arg>
<inout>INOUT</inout>
<datatype>double</datatype>
<objecttype>matrix</objecttype>
<name>B</name>
<rowExpression>LDB</rowExpression>
<colExpression>NRHS</colExpression>
</arg>
<arg>
<inout>IN</inout>
<datatype>int</datatype>
<objecttype>scalar</objecttype>
<name>LDB</name>
</arg>
<arg>
<inout>OUT</inout>
<datatype>int</datatype>
<objecttype>scalar</objecttype>
<name>INFO</name>
</arg>
</call>
</function>
Thanks.
---------------------------------------------------------------------
Sathish S. Vadhiyar
PhD Candidate Research Assistant, Innovative Computing Laboratory
Computer Science Department
University of Tennessee
Knoxville
Ph: (865)946-4558 (H) , (865)974-6323 (O).
Re: error during insertDocument
Posted by Vladimir Bossicard <vl...@adnovum.com>.
> Sometimes when I do insertDocument, I get,
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>
> abd in the xindice console, I get
>
> Fatal error parsing XML: org.xml.sax.SAXParseException: Document contains
> illegal control character with value 0
Looks like your document has a problem. The main question is: can you
always reproduce the bug with the same document?
If you can provide the document, it would be very helpful. I recommand
that you open a new bug on http://nagoya.apache.org/bugzilla/ so that
the developers know what's going on.
-Vladimir