jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <mreut...@day.com>
Subject Re: Query Error after upgrading to 1.6
Date Fri, 11 Sep 2009 14:20:11 GMT
Hi,

this looks like an inconsistency in the index. on of the nodes in the
index does not have a valid parent. there are two options:

- force an index consistency check on startup:

add two parameters to the SearchIndex section in the workspace.xml
configuration file:

<param name="enableConsistencyCheck" value="true"/>
<param name="forceConsistencyCheck" value="true"/>

Then restart Jackrabbit and watch the log file for possible repair
messages. Don't forget to remove the parameters again when you are
done.

if that doesn't help:

- let jackrabbit re-index the workspace after you deleted the index folder

regards
 marcel

On Tue, Sep 8, 2009 at 18:13, majohnst <matt@lattaoutdoors.com> wrote:
>
> I am trying to update our application from Jackrabbit 1.5.0 to 1.6.0. From
> the documentation, this should just be a simple jar replacement, but I am
> getting an error on some of my queries now. All my queries work fine in 1.5,
> so something has changed in 1.6 that is causing a problem.
>
> This query works in 1.5, but not in 1.6:
> /jcr:root/folder1/folder2//element(*,my:type)[@prop1='val1' and
> @ocm_classname='my.Class'] order by @jcr:created descending
>
> I get an error:
> 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)
> at
> com.amg.cms.service.impl.ContentServiceImpl$1.doInJcrMapping(ContentServiceImpl.java:357)
> at
> org.apache.jackrabbit.ocm.spring.JcrMappingTemplate$1.doInJcr(JcrMappingTemplate.java:159)
> at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:76)
> at
> org.apache.jackrabbit.ocm.spring.JcrMappingTemplate.execute(JcrMappingTemplate.java:153)
> at
> com.amg.cms.service.impl.ContentServiceImpl.searchContentByDate(ContentServiceImpl.java:326)
> at
> com.amg.cms.service.impl.ContentServiceImpl$$FastClassByCGLIB$$492457ec.invoke(<generated>)
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
> at
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
> at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
> at
> com.amg.cms.service.impl.ContentServiceImpl$$EnhancerByCGLIB$$7c419272.searchContentByDate(<generated>)
> at com.amg.cms.service.impl.CmsServiceImpl.search(CmsServiceImpl.java:546)
> at com.amg.cms.service.impl.CmsServiceImpl.search(CmsServiceImpl.java:528)
> at
> com.amg.cms.web.JcrQueryController.runNamedQuery(JcrQueryController.java:34)
> 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.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:421)
> at
> org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:136)
> at
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:326)
> at
> org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:313)
> at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
> at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
> at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
> at
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
>
>
> It is only the first part of the query that is breaking. If I remove the
> path filter at the start of the query, everything works fine.
>
> This query works:
> //element(*,my:type)[@prop1='val1' and @ocm_classname='my.Class'] order by
> @jcr:created descending
>
> Has anyone seen something like this?
> --
> View this message in context: http://www.nabble.com/Query-Error-after-upgrading-to-1.6-tp25349299p25349299.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message