jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-2015) CachingIndexReader: NullPointerException initializing parents cache
Date Thu, 26 Mar 2009 14:46:24 GMT

     [ https://issues.apache.org/jira/browse/JCR-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcel Reutegger resolved JCR-2015.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.0

Fixed in revision: 758667

I wasn't able to find out how the index gets into this state, but the exception is caused
by duplicate entries (multiple lucene documents with the same UUID field) in the index. This
is now fixed, by ignoring all but the last document with a given UUID in an index segment.

> CachingIndexReader: NullPointerException initializing parents cache
> -------------------------------------------------------------------
>
>                 Key: JCR-2015
>                 URL: https://issues.apache.org/jira/browse/JCR-2015
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: core 1.4.9
>            Reporter: Julian Sedding
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> Using the jackrabbit-core-1.4.9 (after upgrading from jackrabbot-core-1.4.6), the following
exception is logged. The code where the exception happens was introduced in JCR-1884 and is
first included in the 1.4.9 core release.
> 10.03.2009 18:56:25 *WARN * CachingIndexReader: Error initializing parents cache. (CachingIndexReader.java,
line 310)
> java.lang.NullPointerException
>     at org.apache.jackrabbit.core.query.lucene.CachingIndexReader$CacheInitializer$2.collect(CachingIndexReader.java:362)
>     at org.apache.jackrabbit.core.query.lucene.CachingIndexReader$CacheInitializer.collectTermDocs(CachingIndexReader.java:426)
>     at org.apache.jackrabbit.core.query.lucene.CachingIndexReader$CacheInitializer.initializeParents(CachingIndexReader.java:356)
>     at org.apache.jackrabbit.core.query.lucene.CachingIndexReader$CacheInitializer.run(CachingIndexReader.java:306)
>     at org.apache.jackrabbit.core.query.lucene.CachingIndexReader.<init>(CachingIndexReader.java:109)
>     at org.apache.jackrabbit.core.query.lucene.AbstractIndex.getReadOnlyIndexReader(AbstractIndex.java:276)
>     at org.apache.jackrabbit.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:731)
>     at org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:303)
>     at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:454)
>     at com.day.crx.query.lucene.LuceneHandler.doInit(LuceneHandler.java:93)
>     at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
>     at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:583)
>     at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:265)
>     at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1600)
>     at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
>     at org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:718)
>     at com.day.crx.core.CRXRepositoryImpl.login(CRXRepositoryImpl.java:964)
>     at org.apache.sling.jcr.base.internal.SessionPool.acquireSession(SessionPool.java:268)
>     at org.apache.sling.jcr.base.internal.SessionPoolManager.login(SessionPoolManager.java:99)
>     at org.apache.sling.jcr.base.AbstractSlingRepository.login(AbstractSlingRepository.java:240)
>     at org.apache.sling.jcr.base.AbstractSlingRepository.loginAdministrative(AbstractSlingRepository.java:206)
>     at org.apache.sling.jcr.base.AbstractSlingRepository.pingAndCheck(AbstractSlingRepository.java:506)
>     at org.apache.sling.jcr.base.AbstractSlingRepository.startRepository(AbstractSlingRepository.java:810)
>     at org.apache.sling.jcr.base.AbstractSlingRepository.activate(AbstractSlingRepository.java:629)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.felix.scr.impl.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
>     at org.apache.felix.scr.impl.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:133)
>     at org.apache.felix.scr.impl.AbstractComponentManager.activateInternal(AbstractComponentManager.java:476)
>     at org.apache.felix.scr.impl.AbstractComponentManager.enableInternal(AbstractComponentManager.java:398)
>     at org.apache.felix.scr.impl.AbstractComponentManager.access$000(AbstractComponentManager.java:36)
>     at org.apache.felix.scr.impl.AbstractComponentManager$1.run(AbstractComponentManager.java:99)
>     at org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:85)
> 10.03.2009 18:56:31 *INFO * SearchIndex: Index initialized: /u01/media/u01/crxlocal/workspaces/dailymail-prod/index
Version: 2 (SearchIndex.java, line 492)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message