You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Torgeir Veimo <to...@pobox.com> on 2009/04/22 07:56:28 UTC

index format error w JR 1.4.6

Am getting this exception on one of our deployments;

07:49:36,007 ERROR RepositoryImpl  - Failed to initialize workspace  
'default'
javax.jcr.RepositoryException: Unknown format version: -4: Unknown  
format version: -4: Unknown format version: -4
	at  
org 
.apache 
.jackrabbit 
.core.SearchManager.initializeQueryHandler(SearchManager.java:584)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java: 
264)
	at org.apache.jackrabbit.core.RepositoryImpl 
$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
	at  
org 
.apache 
.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
	at  
org 
.apache 
.jackrabbit 
.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
	at  
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java: 
305)
	at  
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java: 
557)
	at org.apache.jackrabbit.core.TransientRepository 
$1.getRepository(TransientRepository.java:186)
	at  
org 
.apache 
.jackrabbit 
.core.TransientRepository.startRepository(TransientRepository.java:265)
	at  
org 
.apache 
.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
	at  
org 
.apache 
.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)

Am suspecting the admin might have deployed a version of our product  
that uses JR 1.5.* thus auto upgrading the lucene indexes, then  
reverted back to the one based on 1.4.6. Can this be the case, or are  
the indexes most likely hosed? I think I remember the exeption being  
different in the case of wrong lucene format from previous messages to  
this list.

Is there an easy way to fix this?

-- 
Torgeir Veimo
torgeir@pobox.com





Re: index format error w JR 1.4.6

Posted by Marcel Reutegger <ma...@gmx.net>.
On Wed, Apr 22, 2009 at 07:56, Torgeir Veimo <to...@pobox.com> wrote:
> Am suspecting the admin might have deployed a version of our product that
> uses JR 1.5.* thus auto upgrading the lucene indexes, then reverted back to
> the one based on 1.4.6. Can this be the case, or are the indexes most likely
> hosed?

yes, that's most probably the case.

> Is there an easy way to fix this?

- stop jackrabbit
- delete all index folders
- start jackrabbit

this will re-create the indexes with the correct format/version.

regards
 marcel