jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vidar Ramdal <vi...@idium.no>
Subject Reparing "Node has missing child"
Date Fri, 21 May 2010 11:02:09 GMT
We recently ran into this situation when running a specific query:
java.lang.IndexOutOfBoundsException: bitIndex < 0: -1
	at java.util.BitSet.get(BitSet.java:441)
	at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.isValid(DescendantSelfAxisQuery.java:557)
	at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.next(DescendantSelfAxisQuery.java:461)
	at org.apache.lucene.search.Scorer.score(Scorer.java:57)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:136)
	at org.apache.lucene.search.Searcher.search(Searcher.java:126)
	at org.apache.lucene.search.Searcher.search(Searcher.java:105)
	at org.apache.jackrabbit.core.query.lucene.SortedLuceneQueryHits.getHits(SortedLuceneQueryHits.java:156)
	at org.apache.jackrabbit.core.query.lucene.SortedLuceneQueryHits.<init>(SortedLuceneQueryHits.java:117)
	at org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher.evaluate(JackrabbitIndexSearcher.java:108)
	at org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher.execute(JackrabbitIndexSearcher.java:84)
	at org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:760)
	at org.apache.jackrabbit.core.query.lucene.SingleColumnQueryResult.executeQuery(SingleColumnQueryResult.java:66)
	at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:298)
	at org.apache.jackrabbit.core.query.lucene.SingleColumnQueryResult.<init>(SingleColumnQueryResult.java:58)
	at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:131)
	at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:177)

According to the thread at [1], a rebuild of the Lucene index should do it.

So, we deleted the index directories, and fired up the application
again. The indexing started, and apparently completed, but the
application failed to start the repository:
org.apache.jackrabbit.core.query.OnWorkspaceInconsistency Node
/obeas/content/textwithimage_f4d72139-4301-40fa-83bc-36ac1c82629e
(56fae4a0-d046-41d5-9bdb-8ce950bbf6bb) has missing child
'1272352031680.MaxSize.w-900.h-900.Save.png'
(f3753a52-8bd8-462e-b0f4-bbe36f7ff1d0)
21.05.2010 10:33:22.909 *ERROR* [SCR Component Actor]
org.apache.jackrabbit.core.RepositoryImpl Failed to initialize
workspace 'default' javax.jcr.RepositoryException: Error indexing
workspace: Error indexing workspace: Error indexing workspace
	at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:540)
	at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:213)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1790)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2008)
	at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1921)
	at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:489)
	at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:330)
	at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:627)
	at org.apache.sling.jcr.jackrabbit.server.impl.SlingServerRepository.acquireRepository(SlingServerRepository.java:141)

A couple of desperate Google searches later, we found [2], which in
short recommends adding parameters consistencyCheck and consistencyFix
to repository.xml (we also tried adding it to workspace.xml, but that
failed because DerbyPersistenceManager didn't support those
parameters).

This caused the index to be rebuilt again, but fail at the same point.

We're running Jackrabbit 1.6 with DerbyPersistenceManager.

Any suggestions?

[1] http://markmail.org/thread/kyk4mlfheajztofg
[2] http://wiki.gxdeveloperweb.com/confluence/display/GXDEV/How+to+repair+a+'corrupt'+JCR

-- 
Vidar S. Ramdal <vidar@idium.no> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070
"Quando omni flunkus moritatus! "

Mime
View raw message