jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gustavo Orair (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3071) (re-) Indexing repository fails with NoSuchItemStateException
Date Thu, 15 Dec 2011 19:55:30 GMT

    [ https://issues.apache.org/jira/browse/JCR-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170448#comment-13170448
] 

Gustavo Orair commented on JCR-3071:
------------------------------------

I have the same problem here.
After a poweroff, my index got corrupted.
I erased the index dir and restarted JackRabbit. I expected JR would create a new index but
it failed with the org.apache.jackrabbit.core.state.NoSuchItemStateException

Caused by: java.io.IOException: Error indexing workspace
        at org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:395)
~[jackrabbit-core-2.3.3.jar:na]
        at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:547)
~[jackrabbit-core-2.3.3.jar:na]
        at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:78)
~[jackrabbit-core-2.3.3.jar:na]
        at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:646)
~[jackrabbit-core-2.3.3.jar:na]
        ... 97 common frames omitted
Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: f157aba3-2be4-4ed4-9f3a-fc3a6984ade7
        at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:285)
~[jackrabbit-core-2.3.3.jar:na]
        at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1228)
~[jackrabbit-core-2.3.3.jar:na]
        at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1234)
~[jackrabbit-core-2.3.3.jar:na]
        at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1234)
~[jackrabbit-core-2.3.3.jar:na]
        at org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:388)
~[jackrabbit-core-2.3.3.jar:na]
        ... 100 common frames omitted


Are there any workrounds?

I am using Jackrabbit JCA version 2.3.3.

BR,
Orair.
                
> (re-) Indexing repository fails with NoSuchItemStateException
> -------------------------------------------------------------
>
>                 Key: JCR-3071
>                 URL: https://issues.apache.org/jira/browse/JCR-3071
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: indexing, jackrabbit-core
>    Affects Versions: 2.2.8
>         Environment: RHEL 5, Jboss 4.2.3 GA
>            Reporter: Mats Nordgren
>            Priority: Critical
>
> When starting up the repository instance, index rebuild starts but fails after 10+ minutes
with the stacktrace below. This is a production CMS and we really need to find out what is
going on.
> 2011-09-19 10:32:58.071 WARN  [main] Slf4jLog.java:89                  unavailable
> javax.jcr.RepositoryException: Unable to initialize query handler: org.apache.jackrabbit.core.query.lucene.SearchIndex@380c380c
>    at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:637)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.config.WorkspaceConfig.getQueryHandler(WorkspaceConfig.java:215)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:174) ~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1860)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2095)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:2000)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:533)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:342)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:605) ~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.servlet.jackrabbit.JackrabbitRepositoryServlet.init(JackrabbitRepositoryServlet.java:103)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at javax.servlet.GenericServlet.init(GenericServlet.java:241) ~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
[jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.jetty.Server.doStart(Server.java:224) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.standalone.Main.run(Main.java:173) [jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.standalone.Main.main(Main.java:60) [jackrabbit-standalone-2.2.8.jar:na]
> Caused by: java.io.IOException: Error indexing workspace
>    at org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:402)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:525)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:78)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:634)
~[jackrabbit-standalone-2.2.8.jar:na]
>    ... 27 common frames omitted
> Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: 0ed4e29a-5b84-4ba4-a480-27b80515ff66
>    at org.apache.jackrabbit.core.state.ItemStateException.<init>(ItemStateException.java:32)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:252)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1215)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1221)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:1221)
~[jackrabbit-standalone-2.2.8.jar:na]
>    at org.apache.jackrabbit.core.query.lucene.MultiIndex.createInitialIndex(MultiIndex.java:395)
~[jackrabbit-standalone-2.2.8.jar:na]
>    ... 30 common frames omitted

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message