Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 41509 invoked from network); 18 May 2005 08:38:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2005 08:38:37 -0000 Received: (qmail 78118 invoked by uid 500); 18 May 2005 08:33:09 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 78060 invoked by uid 99); 18 May 2005 08:33:08 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of stefan.guggisberg@gmail.com designates 64.233.162.195 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.195) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 18 May 2005 01:33:06 -0700 Received: by zproxy.gmail.com with SMTP id 40so104545nzk for ; Wed, 18 May 2005 01:32:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LwBTh/SKDapIXnVjYKoT8Y/yJ1nOqcLFZ1ZgMW0pr62n28UUJQzJaNV2kcVTAG4cFJu0qkyZQ0/XMVfe+V8tl22OKYfFTEYwap9FPpWStxUW7+yq/K+qNs8VKKurRM4n8zYmdM/z9+1TbJ3+6DfxGgQOEfPpBX8j4iiuPMXC1SE= Received: by 10.36.33.17 with SMTP id g17mr42525nzg; Wed, 18 May 2005 01:32:20 -0700 (PDT) Received: by 10.36.86.18 with HTTP; Wed, 18 May 2005 01:32:19 -0700 (PDT) Message-ID: <90a8d1c005051801327585e7e4@mail.gmail.com> Date: Wed, 18 May 2005 10:32:20 +0200 From: Stefan Guggisberg Reply-To: Stefan Guggisberg To: jackrabbit-dev@incubator.apache.org Subject: Re: Repository Fatal Error In-Reply-To: <8D07567F3496FA4797E37564D4B4DC0E8461D4@delboy.lan.gossinteractive.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8D07567F3496FA4797E37564D4B4DC0E8461D4@delboy.lan.gossinteractive.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N doh! hit the wrong key again :( reposting it to the list... On 5/17/05, Simon Gash wrote: > OK I've walked my way through the code and this is what I found. >=20 > The RSS reader passes the string (containing illegal XML character &) to > me and then I use it to form the name of a new node. This is then saved > in XML format by the persistence manager. However, when re-loading the > node an XMLReader is used, this has problems with parsing the XML > (containing the illegal character - its used to indicate the start of an > entity reference) and logs an error, further down the stack an exception > is raised as the node has no 'value'. >=20 > I guess the solution would be to encode the xml on storage (& =3D &), > I did this manually and it worked fine. I'm not sure if I should be > checking the new nodes name to ensure its good XML or whether JackRabbit > should be doing it ?=20 you shouldn't need to worry about whether a name is a valid xml name as long it is a valid jcr name. if an '&' within a node name causes problems in the xml persistence manager that would definitely be a major bug. i'll investigate. thanks for bringing this up! cheers stefan > Or how about using the CDATA to block escape > literal text ? >=20 > Any thoughts anyone... >=20 > Thanks for your time. >=20 > Simon >=20 > -----Original Message----- > From: Stefan Guggisberg [mailto:stefan.guggisberg@gmail.com] > Sent: 16 May 2005 14:28 > To: jackrabbit-dev@incubator.apache.org > Subject: Re: Repository Fatal Error >=20 > On 5/13/05, Simon Gash wrote: > > I'm using JackRabbit to store some RSS feeds but now and again I get a >=20 > > fatal error from the repository. I'm guessing that there is some text > > in the RSS title that JackRabbit does not like (I'm attempting to > > strip out punctuation but I'm probably missing something. > > > > Is there a way of repairing the repository ? and is there a way of > > validating the input before I use it to create a node ? > > > > This is the repository exception I get > > > > [Fatal Error] :30:24: The entity name must immediately follow the '&' > > in the entity reference. > > ERROR: 'The entity name must immediately follow the '&' in the entity >=20 > > reference.' > > java.util.NoSuchElementException: failed to retrieve item state of > > item e2fa4f29-c6f7-4b46-b0d3-09568f564e0d >=20 > please note that neither is a RepositoryException therefor it's hardly a > "Repository Fatal Error". a stack trace would be helpful. >=20 > cheers > stefan >=20 > > > > Come visit us at: > > > > Internet World 2005. June 14 - 16, Earls Court, Stand # A60 > > > > Government Computing Expo. June 21 & 22, Earls Court, Stand # 804 > > > > SOCITM Annual Event. October 16 - 18 Brighton Hotel, Stand # 28 GOSS - >=20 > > Ranked 4th in the Deloitte Technology Fast 50 Awards 2004 and 88th in > the Deloitte Technology Fast 500 EMEA. > > > > This email contains proprietary information, some or all of which may > be legally privileged. It is for the intended recipient only. If an > addressing or transmission error has misdirected this email, please > notify the author by replying to this email. If you are not the intended > recipient you may not use, disclose, distribute, copy, print or rely on > this email. > > > > Email transmission cannot be guaranteed to be secure or error free, as > information may be intercepted, corrupted, lost, destroyed, arrive late > or incomplete or contain viruses. This email and any files attached to > it have been checked with virus detection software before transmission. > You should nonetheless carry out your own virus check before opening any > attachment. GOSS Interactive Ltd accepts no liability for any loss or > damage that may be caused by software viruses. > > > > >