sure... here are the 2 files
i am actually calling the Xindice XMLRPC call thru the PHP interface
(http://sourceforge.net/projects/phpxindice/)
here's the series of actions:
1. (php) read in uploaded file
2. (php) call insertDocument (xindice.inc)
3. (php) make an XMLRPC call to 'db.insertDocument', with the appropriate
values for collection, key, and content.
The actual socket opening is inside the xmlrpc.inc..
altho this seems like this stack is or should be the prime suspect, i don't
think this php stuff is the cause of the problem. amazingly this command
line:
xindice ad -c /db/addressbook -f php_test2_fail.xml -n php_cmd_line4
successfully adds this document. so this would indicate a problem in the
XMLRPC server or XMLRPC client it would seem. but... that assumes that the
'xindice' executable doesn't use XMLRPC to upload documents. is that a
correct assumption? if so, is this the correct mailing list to ask about
the XMLRPC server?
thanks
dave
-----Original Message-----
From: Mark J. Stang [mailto:[EMAIL PROTECTED]
Sent: Monday, April 22, 2002 3:13 PM
To: [email protected]
Subject: Re: newbie question
The limits are much larger than what you are seeing. Can you post the
entire document? Are you doing this through the command-line or via
your own program?
Mark
David Viner wrote:
> hi
> i'm trying to insert a document thru the XMLRPC interface to
xindice. but i
> continue getting this error message:
> java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
>
> also in my console window in which xindice was started I get this error
> message:
> Fatal error parsing XML: Document contains illegal control
character with
> value 0
>
> i can successfully insert a small version of the file. but when i add
this
> line:
>
> <para>As the 6th leading cause of chronic disease in America, allergies
> deserve a serious look.</para>
>
> i get the error messages described. this additional line of xml doesn't
> look particularly harmful nor peculiar, so i think i'm just missing
> something obvious. is there some size limit?
>
> thanks
> dave
<?xml version="1.0"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Dave Viner (Yahoo) -->
<article>
<title>Allergy Treatments</title>
<titleabbrev>Treatments</titleabbrev>
<articleinfo></articleinfo>
<highlights><para>As the 6th leading cause of chronic disease in America, allergies deserve a serious look.</para>
</highlights>
<para>
As the 6th leading cause of chronic disease in America, allergies deserve a serious look. They affect over 50 million children and adults, accounting for millions of lost work and school days. Allergies have been estimated to tote up $18 billion in annual costs.
</para>
<section>
<title>Allergies Linked to Serious Illness</title>
<para>
Originally viewed as trivial and easily self medicated, allergies have now been linked to serious chronic respiratory illnesses such as sinusitis and asthma. Both doctors and patients are realizing the need for focused and managed approaches in the treatment of symptoms ranging from mild annoyances to severe handicaps.
</para>
</section>
<section>
<title>Good News</title>
<para>While allergies cannot be cured, they can be controlled. The good news is that allergy sufferers can lead normal and productive lives with the help of medications and proper management.
</para>
</section>
<section>
<title>Quick Relief</title>
<para>Both over-the counter and prescription medications are available for quick relief of allergy symptoms. These include antihistamines and mast cell stabilizers to relieve sneezing, itchy, watery eyes, and runny nose as well as decongestants and corticosteroid nasal sprays to relieve stuffiness.
</para>
</section>
<section>
<title>Long-Term Relief</title>
<para>Long-term relief should always include efforts to avoid the "triggers" that provoke an allergic reaction in daily life.
</para>
<para>Allergy shots (immunotherapy) are an option for some allergy sufferers and may be necessary for long-term treatment. The allergy shots gradually increase tolerance to the specific allergen that triggers the allergic reaction, eventually minimizing or in some cases even eliminating symptoms.
</para>
</section>
<section>
<title>Emergency Relief</title>
<para>Some allergy sufferers can experience severe reactions known as anaphylaxis. Anaphylactic reactions can include intense itching all over the body, total body swelling, respiratory distress and can even lead to shock that is life threatening. These reactions demand prompt medical attention and may require not only antihistamines and corticosteroids for relief, but also a form of adrenaline known as epinephrine. People who are highly susceptible to anaphylactic reactions should always carry a syringe of epinephrine with them and wear a medical alert bracelet.
</para>
</section>
<section>
<title>Talk to Your Physician</title>
<para>Both over-the-counter and prescribed allergy relief medications can:
<itemizedlist>
<listitem>
<para>
cause adverse reactions when combined with other drugs
</para>
</listitem>
<listitem>
<para>
have a variety of side effects such as drowsiness or increased blood pressure.
</para>
</listitem>
</itemizedlist>
</para>
<para>Therefore, you should always consult with your physician before taking them. Your physician may have specific instructions on the correct medication and dose for your particular medical condition.
</para>
</section>
</article>
<?xml version="1.0"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Dave Viner (Yahoo) -->
<article>
<title>Allergy Treatments</title>
<titleabbrev>Treatments</titleabbrev>
<articleinfo></articleinfo>
<highlights>
</highlights>
<para>
As the 6th leading cause of chronic disease in America, allergies deserve a serious look. They affect over 50 million children and adults, accounting for millions of lost work and school days. Allergies have been estimated to tote up $18 billion in annual costs.
</para>
<section>
<title>Allergies Linked to Serious Illness</title>
<para>
Originally viewed as trivial and easily self medicated, allergies have now been linked to serious chronic respiratory illnesses such as sinusitis and asthma. Both doctors and patients are realizing the need for focused and managed approaches in the treatment of symptoms ranging from mild annoyances to severe handicaps.
</para>
</section>
<section>
<title>Good News</title>
<para>While allergies cannot be cured, they can be controlled. The good news is that allergy sufferers can lead normal and productive lives with the help of medications and proper management.
</para>
</section>
<section>
<title>Quick Relief</title>
<para>Both over-the counter and prescription medications are available for quick relief of allergy symptoms. These include antihistamines and mast cell stabilizers to relieve sneezing, itchy, watery eyes, and runny nose as well as decongestants and corticosteroid nasal sprays to relieve stuffiness.
</para>
</section>
<section>
<title>Long-Term Relief</title>
<para>Long-term relief should always include efforts to avoid the "triggers" that provoke an allergic reaction in daily life.
</para>
<para>Allergy shots (immunotherapy) are an option for some allergy sufferers and may be necessary for long-term treatment. The allergy shots gradually increase tolerance to the specific allergen that triggers the allergic reaction, eventually minimizing or in some cases even eliminating symptoms.
</para>
</section>
<section>
<title>Emergency Relief</title>
<para>Some allergy sufferers can experience severe reactions known as anaphylaxis. Anaphylactic reactions can include intense itching all over the body, total body swelling, respiratory distress and can even lead to shock that is life threatening. These reactions demand prompt medical attention and may require not only antihistamines and corticosteroids for relief, but also a form of adrenaline known as epinephrine. People who are highly susceptible to anaphylactic reactions should always carry a syringe of epinephrine with them and wear a medical alert bracelet.
</para>
</section>
<section>
<title>Talk to Your Physician</title>
<para>Both over-the-counter and prescribed allergy relief medications can:
<itemizedlist>
<listitem>
<para>
cause adverse reactions when combined with other drugs
</para>
</listitem>
<listitem>
<para>
have a variety of side effects such as drowsiness or increased blood pressure.
</para>
</listitem>
</itemizedlist>
</para>
<para>Therefore, you should always consult with your physician before taking them. Your physician may have specific instructions on the correct medication and dose for your particular medical condition.
</para>
</section>
</article>