Lucene Index / Sidekick components | Community
Skip to main content
crisr1
Level 4
October 16, 2015
Solved

Lucene Index / Sidekick components

  • October 16, 2015
  • 5 replies
  • 1526 views

The problem we have is that there are no components in the sidekick...  in edit mode. In design mode, there are no components available to enable. The entire section of component checkboxes is missing. The errors logs indicate a problem, but I'm not sure how to correct it. And /libs/wcm/core/content/components.1430058176772.json results in an empty JSON object {}. In our staging environment (does not have the problem), this uri resolves to a large json object of component information.

Any pointers would be most appreciated

 

26.04.2015 10:22:56.790 *WARN* [0:0:0:0:0:0:0:1 [1430058174100] GET /content/michigan-lsa/stats/en.html HTTP/1.1] com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl StarResource given at /content/michigan-lsa/stats/en/jcr:content/right-parsys/*: no parent: no LiveCopy
26.04.2015 10:22:58.621 *ERROR* [0:0:0:0:0:0:0:1 [1430058178619] GET /libs/wcm/core/content/components.1430058176772.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.lang.IllegalMonitorStateException: null
    at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:155)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1260)
    at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:460)
    at com.day.cq.wcm.core.impl.components.ComponentServlet.doGet(ComponentServlet.java:191)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
    at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:511)
    at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
    at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:357)
    ...
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:295)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.cognifide.cq.includefilter.DynamicIncludeFilter.doFilter(DynamicIncludeFilter.java:81)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:64)
 ..
    at com.adobe.granite.httpcache.impl.InnerCacheFilter.doFilter(InnerCacheFilter.java:56)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:128)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at com.adobe.cq.dam.s7imaging.impl.auth.MemoryTokenAuthHandler.doFilter(MemoryTokenAuthHandler.java:156)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
    at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135)
 .....
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Thread.java:744)
26.04.2015 10:22:58.691 *INFO* [0:0:0:0:0:0:0:1 [1430058178690] GET /libs/wcm/core/content/components.1430058176772.json HTTP/1.1] com.day.cq.wcm.core.impl.components.ComponentServlet provided components.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Your index defnition is in package with reindex set to true. So just replicate the package from package manage will do.

5 replies

crisr1
crisr1Author
Level 4
October 16, 2015

update. I think this is a symptom of a problem with the Lucene index I'm trying to create. When I delete my index, the CMS works fine, but the queries are not optimized. 

Its strange. if I redeploy the code setting my lucene index. Everything seems fine including my lucene property index, until I restart the instance. At which point the CMS is utterly fubar... until I delete my oak:index. then CMS is functional. Then I redeploy the package (again) with the index. The index seems like it works, and everything is fine (until a restart happens). 

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:oak="http://jackrabbit.apache.org/oak/ns/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:st="http://www.st.com/nt/st" jcr:primaryType="nt:unstructured"> <lsaNews jcr:primaryType="oak:QueryIndexDefinition" async="async" compatVersion="2" evaluatePathRestrictions="{Boolean}true" reindex="{Boolean}true" type="lucene"> <indexRules jcr:primaryType="nt:unstructured"> <nt:base jcr:primaryType="nt:unstructured" includePropertyTypes="all"> <properties jcr:primaryType="nt:unstructured"> <featured jcr:primaryType="nt:unstructured" name="jcr:content/featured" nodeName="featured" ordered="{Boolean}true" propertyIndex="{Boolean}true" type="Boolean"/> <releaseDate jcr:primaryType="nt:unstructured" name="jcr:content/releaseDate" nodeName="releaseDate" ordered="{Boolean}true" propertyIndex="{Boolean}true" type="Date"/> </properties> </nt:base> </indexRules> </lsaNews> </jcr:root>

I have SO question in case anyone can point to resources for adding Lucene Indexes to a cqblueprint archetype project

http://stackoverflow.com/questions/29836289/how-to-setup-lucene-index-for-aem

smacdonald2008
Level 10
October 16, 2015

Are you still having issues with this?

crisr1
crisr1Author
Level 4
October 16, 2015

Actually. I still have one question. how would we get our indexes to the publish instances? Should we replicate from author/crxde after the index runs? or go to publish/crxde and set reindex to true?

crisr1
crisr1Author
Level 4
October 16, 2015

hotfix 6316  fixed it

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Your index defnition is in package with reindex set to true. So just replicate the package from package manage will do.