You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Simon Gash <Si...@gossinteractive.com> on 2005/05/13 13:09:15 UTC

Repository Fatal Error

I'm using JackRabbit to store some RSS feeds but now and again I get a
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
reference.'
java.util.NoSuchElementException: failed to retrieve item state of item
e2fa4f29-c6f7-4b46-b0d3-09568f564e0d

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 - 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.
 


Re: Repository Fatal Error

Posted by Edgar Poce <ed...@gmail.com>.
Hi Simon

Simon Gash wrote:
> I'm using JackRabbit to store some RSS feeds but now and again I get a
> 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.
Could you provide configuration details? Could you provide the code to 
reproduce the error?

> Is there a way of repairing the repository ? 
If you use XMLPersistenceManager + LocalFileSystem it shouldn't be 
difficult to fix it manually.
There's a consistency check + repair tool in JIRA (JCR-76). I've just 
uploaded a new version compatible with the latest jackrabbit version. 
It's early code but you might want to give it a try, remember to backup 
your repository before running the tool ;). Feedback is welcome.

 > and is there a way of
> validating the input before I use it to create a node ?
I think there's no need to validate the input, if the repository gets 
broken it's a bug.

regards
edgar

Re: Exception handling in o.a.j.core.ItemManager (was Repository Fatal Error)

Posted by Stefan Guggisberg <st...@gmail.com>.
hi edgar,

On 5/16/05, Edgar Poce <ed...@gmail.com> wrote:
> Hi stefan
> 
> Stefan Guggisberg wrote:
> > On 5/13/05, Simon Gash <Si...@gossinteractive.com> wrote:
> >>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
> >>reference.'
> >>java.util.NoSuchElementException: failed to retrieve item state of item
> >>e2fa4f29-c6f7-4b46-b0d3-09568f564e0d
> >
> >
> > please note that neither is a RepositoryException therefor it's hardly
> > a "Repository Fatal Error". a stack trace would be helpful.
> >
> I guess the full trace is not included because the ItemStateException
> catched in ItemManager.createItemInstance(ItemId id) is neither nested
> in a new exception nor logged in error level, it's in debug. The same
> comment applies to ItemManager.getItemState(ItemId id).
> Shouldn't both be nested in the new RepositoryException?

i agree and i already fixed it (rev170561). 
thanks!

cheers
stefan

> 
> regards
> edgar
> > cheers
> > stefan
> >
> >
> >>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 - 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.
> >>
> >>
> >
> >
>

Exception handling in o.a.j.core.ItemManager (was Repository Fatal Error)

Posted by Edgar Poce <ed...@gmail.com>.
Hi stefan

Stefan Guggisberg wrote:
> On 5/13/05, Simon Gash <Si...@gossinteractive.com> wrote:
>>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
>>reference.'
>>java.util.NoSuchElementException: failed to retrieve item state of item
>>e2fa4f29-c6f7-4b46-b0d3-09568f564e0d
> 
> 
> please note that neither is a RepositoryException therefor it's hardly 
> a "Repository Fatal Error". a stack trace would be helpful.
> 
I guess the full trace is not included because the ItemStateException 
catched in ItemManager.createItemInstance(ItemId id) is neither nested 
in a new exception nor logged in error level, it's in debug. The same 
comment applies to ItemManager.getItemState(ItemId id).
Shouldn't both be nested in the new RepositoryException?

regards
edgar
> cheers
> stefan
> 
> 
>>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 - 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.
>>
>>
> 
> 

Re: Repository Fatal Error

Posted by Stefan Guggisberg <st...@gmail.com>.
On 5/13/05, Simon Gash <Si...@gossinteractive.com> wrote:
> I'm using JackRabbit to store some RSS feeds but now and again I get a
> 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
> reference.'
> java.util.NoSuchElementException: failed to retrieve item state of item
> e2fa4f29-c6f7-4b46-b0d3-09568f564e0d

please note that neither is a RepositoryException therefor it's hardly 
a "Repository Fatal Error". a stack trace would be helpful.

cheers
stefan

> 
> 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 - 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.
> 
>