Searchi with Lucene is not working
---------------------------------- Key: OFBIZ-3927 URL: https://issues.apache.org/jira/browse/OFBIZ-3927 Project: OFBiz Issue Type: Bug Components: content Affects Versions: SVN trunk, Release Branch 10.04 Reporter: Erwan de FERRIERES Fix For: SVN trunk, Release Branch 10.04 As I haven't created a Jira issue for this problem, here it is. Problem was found late May, a report on the dev mailing list can be found there : http://ofbiz.135035.n4.nabble.com/Lucene-is-broken-td2123400.html In a word, going to https://localhost:8443/content/control/AdminSearch and making a search is producing no results, but there is this stacktrace in the console : 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, contentId:WebStoreCONTENT 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, indentIndex:0 2010-09-08 17:09:20,286 (http-0.0.0.0-8443-3) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default 2010-09-08 17:09:20,440 (http-0.0.0.0-8443-3) [ ControlServlet.java:324:INFO ] [[[AdminSearch] Request Done- total:1.098,since last([AdminSearch] Req...):1.098]] 2010-09-08 17:09:26,246 (http-0.0.0.0-8443-3) [ ControlServlet.java:141:INFO ] [[[AdminSearch] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2010-09-08 17:09:26,257 (http-0.0.0.0-8443-3) [ RequestHandler.java:737:INFO ] Rendering View [AdminSearch], sessionId=2D96EE23F410A288E4755D0186AF1253.jvm1 2010-09-08 17:09:26,314 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:22 :INFO ] In getMenuContext. 2010-09-08 17:09:26,315 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:26 :INFO ] menuContext(0):[:] 2010-09-08 17:09:26,319 (http-0.0.0.0-8443-3) [ Search.groovy:39 :INFO ] in search, queryLine:gizmo 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:42 :INFO ] in search, siteId: 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:49 :INFO ] in search, featureIdByType:[:] 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:59 :INFO ] in search, indexPath:applications/content/index 2010-09-08 17:09:26,321 (http-0.0.0.0-8443-3) [ Search.groovy:65 :ERROR] in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files: 2010-09-08 17:09:26,510 (http-0.0.0.0-8443-3) [ ModelScreen.java:397:ERROR] Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException. Rolling back transaction. 2010-09-08 17:09:26,511 (http-0.0.0.0-8443-3) [ TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled back 2010-09-08 17:09:26,531 (http-0.0.0.0-8443-3) [ TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) 2010-09-08 17:09:26,543 (http-0.0.0.0-8443-3) [ ControlServlet.java:227:ERROR] ---- exception report ---------------------------------------------------------- Error in request handler: Exception: org.ofbiz.widget.screen.ScreenRenderException Message: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException (null) ---- cause --------------------------------------------------------------------- Exception: java.lang.NullPointerException Message: null ---- stack trace --------------------------------------------------------------- java.lang.NullPointerException org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:510) org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1324) org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211) org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139) org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128) org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) Search.run(Search.groovy:72) org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:181) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erwan de FERRIERES updated OFBIZ-3927: -------------------------------------- Summary: Search with Lucene is not working (was: Searchi with Lucene is not working) > Search with Lucene is not working > --------------------------------- > > Key: OFBIZ-3927 > URL: https://issues.apache.org/jira/browse/OFBIZ-3927 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Erwan de FERRIERES > Fix For: Release Branch 10.04, SVN trunk > > > As I haven't created a Jira issue for this problem, here it is. Problem was found late May, a report on the dev mailing list can be found there : > http://ofbiz.135035.n4.nabble.com/Lucene-is-broken-td2123400.html > In a word, going to https://localhost:8443/content/control/AdminSearch and making a search is producing no results, but there is this stacktrace in the console : > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, contentId:WebStoreCONTENT > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, indentIndex:0 > 2010-09-08 17:09:20,286 (http-0.0.0.0-8443-3) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default > 2010-09-08 17:09:20,440 (http-0.0.0.0-8443-3) [ ControlServlet.java:324:INFO ] [[[AdminSearch] Request Done- total:1.098,since last([AdminSearch] Req...):1.098]] > 2010-09-08 17:09:26,246 (http-0.0.0.0-8443-3) [ ControlServlet.java:141:INFO ] [[[AdminSearch] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > 2010-09-08 17:09:26,257 (http-0.0.0.0-8443-3) [ RequestHandler.java:737:INFO ] Rendering View [AdminSearch], sessionId=2D96EE23F410A288E4755D0186AF1253.jvm1 > 2010-09-08 17:09:26,314 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:22 :INFO ] In getMenuContext. > 2010-09-08 17:09:26,315 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:26 :INFO ] menuContext(0):[:] > 2010-09-08 17:09:26,319 (http-0.0.0.0-8443-3) [ Search.groovy:39 :INFO ] in search, queryLine:gizmo > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:42 :INFO ] in search, siteId: > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:49 :INFO ] in search, featureIdByType:[:] > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:59 :INFO ] in search, indexPath:applications/content/index > 2010-09-08 17:09:26,321 (http-0.0.0.0-8443-3) [ Search.groovy:65 :ERROR] in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files: > 2010-09-08 17:09:26,510 (http-0.0.0.0-8443-3) [ ModelScreen.java:397:ERROR] Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException. Rolling back transaction. > 2010-09-08 17:09:26,511 (http-0.0.0.0-8443-3) [ TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled back > 2010-09-08 17:09:26,531 (http-0.0.0.0-8443-3) [ TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) > 2010-09-08 17:09:26,543 (http-0.0.0.0-8443-3) [ ControlServlet.java:227:ERROR] > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException (null) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:510) > org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1324) > org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211) > org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139) > org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128) > org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > Search.run(Search.groovy:72) > org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) > org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:181) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) > org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908269#action_12908269 ] Scott Gray commented on OFBIZ-3927: ----------------------------------- There were two problems surrounding this bug: - Indexing wasn't working properly, nothing was ever being indexed - Search execution wasn't working properly, the code was using a removed lucene method and also wasn't executing properly unless some features were chosen Indexing was fixed in revs: 996051, 996052, 996054, 996055 Search was fixes in revs: 996056, 996057 Leaving this open because I don't plan on back porting it to 10.04, hopefully someone else will feel inclined to do so. > Search with Lucene is not working > --------------------------------- > > Key: OFBIZ-3927 > URL: https://issues.apache.org/jira/browse/OFBIZ-3927 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Erwan de FERRIERES > Fix For: Release Branch 10.04, SVN trunk > > > As I haven't created a Jira issue for this problem, here it is. Problem was found late May, a report on the dev mailing list can be found there : > http://ofbiz.135035.n4.nabble.com/Lucene-is-broken-td2123400.html > In a word, going to https://localhost:8443/content/control/AdminSearch and making a search is producing no results, but there is this stacktrace in the console : > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, contentId:WebStoreCONTENT > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, indentIndex:0 > 2010-09-08 17:09:20,286 (http-0.0.0.0-8443-3) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default > 2010-09-08 17:09:20,440 (http-0.0.0.0-8443-3) [ ControlServlet.java:324:INFO ] [[[AdminSearch] Request Done- total:1.098,since last([AdminSearch] Req...):1.098]] > 2010-09-08 17:09:26,246 (http-0.0.0.0-8443-3) [ ControlServlet.java:141:INFO ] [[[AdminSearch] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > 2010-09-08 17:09:26,257 (http-0.0.0.0-8443-3) [ RequestHandler.java:737:INFO ] Rendering View [AdminSearch], sessionId=2D96EE23F410A288E4755D0186AF1253.jvm1 > 2010-09-08 17:09:26,314 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:22 :INFO ] In getMenuContext. > 2010-09-08 17:09:26,315 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:26 :INFO ] menuContext(0):[:] > 2010-09-08 17:09:26,319 (http-0.0.0.0-8443-3) [ Search.groovy:39 :INFO ] in search, queryLine:gizmo > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:42 :INFO ] in search, siteId: > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:49 :INFO ] in search, featureIdByType:[:] > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:59 :INFO ] in search, indexPath:applications/content/index > 2010-09-08 17:09:26,321 (http-0.0.0.0-8443-3) [ Search.groovy:65 :ERROR] in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files: > 2010-09-08 17:09:26,510 (http-0.0.0.0-8443-3) [ ModelScreen.java:397:ERROR] Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException. Rolling back transaction. > 2010-09-08 17:09:26,511 (http-0.0.0.0-8443-3) [ TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled back > 2010-09-08 17:09:26,531 (http-0.0.0.0-8443-3) [ TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) > 2010-09-08 17:09:26,543 (http-0.0.0.0-8443-3) [ ControlServlet.java:227:ERROR] > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException (null) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:510) > org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1324) > org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211) > org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139) > org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128) > org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > Search.run(Search.groovy:72) > org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) > org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:181) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) > org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908282#action_12908282 ] Erwan de FERRIERES commented on OFBIZ-3927: ------------------------------------------- Very nice Scott ! I will handle the backport to 10.04 Thanks again, > Search with Lucene is not working > --------------------------------- > > Key: OFBIZ-3927 > URL: https://issues.apache.org/jira/browse/OFBIZ-3927 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Erwan de FERRIERES > Fix For: Release Branch 10.04, SVN trunk > > > As I haven't created a Jira issue for this problem, here it is. Problem was found late May, a report on the dev mailing list can be found there : > http://ofbiz.135035.n4.nabble.com/Lucene-is-broken-td2123400.html > In a word, going to https://localhost:8443/content/control/AdminSearch and making a search is producing no results, but there is this stacktrace in the console : > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, contentId:WebStoreCONTENT > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, indentIndex:0 > 2010-09-08 17:09:20,286 (http-0.0.0.0-8443-3) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default > 2010-09-08 17:09:20,440 (http-0.0.0.0-8443-3) [ ControlServlet.java:324:INFO ] [[[AdminSearch] Request Done- total:1.098,since last([AdminSearch] Req...):1.098]] > 2010-09-08 17:09:26,246 (http-0.0.0.0-8443-3) [ ControlServlet.java:141:INFO ] [[[AdminSearch] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > 2010-09-08 17:09:26,257 (http-0.0.0.0-8443-3) [ RequestHandler.java:737:INFO ] Rendering View [AdminSearch], sessionId=2D96EE23F410A288E4755D0186AF1253.jvm1 > 2010-09-08 17:09:26,314 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:22 :INFO ] In getMenuContext. > 2010-09-08 17:09:26,315 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:26 :INFO ] menuContext(0):[:] > 2010-09-08 17:09:26,319 (http-0.0.0.0-8443-3) [ Search.groovy:39 :INFO ] in search, queryLine:gizmo > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:42 :INFO ] in search, siteId: > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:49 :INFO ] in search, featureIdByType:[:] > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:59 :INFO ] in search, indexPath:applications/content/index > 2010-09-08 17:09:26,321 (http-0.0.0.0-8443-3) [ Search.groovy:65 :ERROR] in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files: > 2010-09-08 17:09:26,510 (http-0.0.0.0-8443-3) [ ModelScreen.java:397:ERROR] Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException. Rolling back transaction. > 2010-09-08 17:09:26,511 (http-0.0.0.0-8443-3) [ TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled back > 2010-09-08 17:09:26,531 (http-0.0.0.0-8443-3) [ TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) > 2010-09-08 17:09:26,543 (http-0.0.0.0-8443-3) [ ControlServlet.java:227:ERROR] > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException (null) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:510) > org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1324) > org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211) > org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139) > org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128) > org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > Search.run(Search.groovy:72) > org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) > org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:181) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) > org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erwan de FERRIERES updated OFBIZ-3927: -------------------------------------- Assignee: Erwan de FERRIERES > Search with Lucene is not working > --------------------------------- > > Key: OFBIZ-3927 > URL: https://issues.apache.org/jira/browse/OFBIZ-3927 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Erwan de FERRIERES > Assignee: Erwan de FERRIERES > Fix For: Release Branch 10.04, SVN trunk > > > As I haven't created a Jira issue for this problem, here it is. Problem was found late May, a report on the dev mailing list can be found there : > http://ofbiz.135035.n4.nabble.com/Lucene-is-broken-td2123400.html > In a word, going to https://localhost:8443/content/control/AdminSearch and making a search is producing no results, but there is this stacktrace in the console : > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, contentId:WebStoreCONTENT > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, indentIndex:0 > 2010-09-08 17:09:20,286 (http-0.0.0.0-8443-3) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default > 2010-09-08 17:09:20,440 (http-0.0.0.0-8443-3) [ ControlServlet.java:324:INFO ] [[[AdminSearch] Request Done- total:1.098,since last([AdminSearch] Req...):1.098]] > 2010-09-08 17:09:26,246 (http-0.0.0.0-8443-3) [ ControlServlet.java:141:INFO ] [[[AdminSearch] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > 2010-09-08 17:09:26,257 (http-0.0.0.0-8443-3) [ RequestHandler.java:737:INFO ] Rendering View [AdminSearch], sessionId=2D96EE23F410A288E4755D0186AF1253.jvm1 > 2010-09-08 17:09:26,314 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:22 :INFO ] In getMenuContext. > 2010-09-08 17:09:26,315 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:26 :INFO ] menuContext(0):[:] > 2010-09-08 17:09:26,319 (http-0.0.0.0-8443-3) [ Search.groovy:39 :INFO ] in search, queryLine:gizmo > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:42 :INFO ] in search, siteId: > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:49 :INFO ] in search, featureIdByType:[:] > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:59 :INFO ] in search, indexPath:applications/content/index > 2010-09-08 17:09:26,321 (http-0.0.0.0-8443-3) [ Search.groovy:65 :ERROR] in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files: > 2010-09-08 17:09:26,510 (http-0.0.0.0-8443-3) [ ModelScreen.java:397:ERROR] Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException. Rolling back transaction. > 2010-09-08 17:09:26,511 (http-0.0.0.0-8443-3) [ TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled back > 2010-09-08 17:09:26,531 (http-0.0.0.0-8443-3) [ TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) > 2010-09-08 17:09:26,543 (http-0.0.0.0-8443-3) [ ControlServlet.java:227:ERROR] > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException (null) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:510) > org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1324) > org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211) > org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139) > org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128) > org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > Search.run(Search.groovy:72) > org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) > org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:181) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) > org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928977#action_12928977 ] Erwan de FERRIERES commented on OFBIZ-3927: ------------------------------------------- Finally done at r1032069 > Search with Lucene is not working > --------------------------------- > > Key: OFBIZ-3927 > URL: https://issues.apache.org/jira/browse/OFBIZ-3927 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Erwan de FERRIERES > Assignee: Erwan de FERRIERES > Fix For: Release Branch 10.04, SVN trunk > > > As I haven't created a Jira issue for this problem, here it is. Problem was found late May, a report on the dev mailing list can be found there : > http://ofbiz.135035.n4.nabble.com/Lucene-is-broken-td2123400.html > In a word, going to https://localhost:8443/content/control/AdminSearch and making a search is producing no results, but there is this stacktrace in the console : > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, contentId:WebStoreCONTENT > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, indentIndex:0 > 2010-09-08 17:09:20,286 (http-0.0.0.0-8443-3) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default > 2010-09-08 17:09:20,440 (http-0.0.0.0-8443-3) [ ControlServlet.java:324:INFO ] [[[AdminSearch] Request Done- total:1.098,since last([AdminSearch] Req...):1.098]] > 2010-09-08 17:09:26,246 (http-0.0.0.0-8443-3) [ ControlServlet.java:141:INFO ] [[[AdminSearch] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > 2010-09-08 17:09:26,257 (http-0.0.0.0-8443-3) [ RequestHandler.java:737:INFO ] Rendering View [AdminSearch], sessionId=2D96EE23F410A288E4755D0186AF1253.jvm1 > 2010-09-08 17:09:26,314 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:22 :INFO ] In getMenuContext. > 2010-09-08 17:09:26,315 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:26 :INFO ] menuContext(0):[:] > 2010-09-08 17:09:26,319 (http-0.0.0.0-8443-3) [ Search.groovy:39 :INFO ] in search, queryLine:gizmo > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:42 :INFO ] in search, siteId: > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:49 :INFO ] in search, featureIdByType:[:] > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:59 :INFO ] in search, indexPath:applications/content/index > 2010-09-08 17:09:26,321 (http-0.0.0.0-8443-3) [ Search.groovy:65 :ERROR] in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files: > 2010-09-08 17:09:26,510 (http-0.0.0.0-8443-3) [ ModelScreen.java:397:ERROR] Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException. Rolling back transaction. > 2010-09-08 17:09:26,511 (http-0.0.0.0-8443-3) [ TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled back > 2010-09-08 17:09:26,531 (http-0.0.0.0-8443-3) [ TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) > 2010-09-08 17:09:26,543 (http-0.0.0.0-8443-3) [ ControlServlet.java:227:ERROR] > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException (null) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:510) > org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1324) > org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211) > org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139) > org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128) > org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > Search.run(Search.groovy:72) > org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) > org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:181) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) > org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erwan de FERRIERES closed OFBIZ-3927. ------------------------------------- Resolution: Fixed > Search with Lucene is not working > --------------------------------- > > Key: OFBIZ-3927 > URL: https://issues.apache.org/jira/browse/OFBIZ-3927 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Erwan de FERRIERES > Assignee: Erwan de FERRIERES > Fix For: Release Branch 10.04, SVN trunk > > > As I haven't created a Jira issue for this problem, here it is. Problem was found late May, a report on the dev mailing list can be found there : > http://ofbiz.135035.n4.nabble.com/Lucene-is-broken-td2123400.html > In a word, going to https://localhost:8443/content/control/AdminSearch and making a search is producing no results, but there is this stacktrace in the console : > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, contentId:WebStoreCONTENT > 2010-09-08 17:09:20,241 (http-0.0.0.0-8443-3) [ ?:? :INFO ] in listSiteIds, indentIndex:0 > 2010-09-08 17:09:20,286 (http-0.0.0.0-8443-3) [ ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default > 2010-09-08 17:09:20,440 (http-0.0.0.0-8443-3) [ ControlServlet.java:324:INFO ] [[[AdminSearch] Request Done- total:1.098,since last([AdminSearch] Req...):1.098]] > 2010-09-08 17:09:26,246 (http-0.0.0.0-8443-3) [ ControlServlet.java:141:INFO ] [[[AdminSearch] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] > 2010-09-08 17:09:26,257 (http-0.0.0.0-8443-3) [ RequestHandler.java:737:INFO ] Rendering View [AdminSearch], sessionId=2D96EE23F410A288E4755D0186AF1253.jvm1 > 2010-09-08 17:09:26,314 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:22 :INFO ] In getMenuContext. > 2010-09-08 17:09:26,315 (http-0.0.0.0-8443-3) [ GetMenuContext.groovy:26 :INFO ] menuContext(0):[:] > 2010-09-08 17:09:26,319 (http-0.0.0.0-8443-3) [ Search.groovy:39 :INFO ] in search, queryLine:gizmo > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:42 :INFO ] in search, siteId: > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:49 :INFO ] in search, featureIdByType:[:] > 2010-09-08 17:09:26,320 (http-0.0.0.0-8443-3) [ Search.groovy:59 :INFO ] in search, indexPath:applications/content/index > 2010-09-08 17:09:26,321 (http-0.0.0.0-8443-3) [ Search.groovy:65 :ERROR] in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files: > 2010-09-08 17:09:26,510 (http-0.0.0.0-8443-3) [ ModelScreen.java:397:ERROR] Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException. Rolling back transaction. > 2010-09-08 17:09:26,511 (http-0.0.0.0-8443-3) [ TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction rolled back > 2010-09-08 17:09:26,531 (http-0.0.0.0-8443-3) [ TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing transaction, status is No Transaction (6) > 2010-09-08 17:09:26,543 (http-0.0.0.0-8443-3) [ ControlServlet.java:227:ERROR] > ---- exception report ---------------------------------------------------------- > Error in request handler: > Exception: org.ofbiz.widget.screen.ScreenRenderException > Message: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: java.lang.NullPointerException (null) > ---- cause --------------------------------------------------------------------- > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:510) > org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1324) > org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1211) > org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1139) > org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1128) > org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:170) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > Search.run(Search.groovy:72) > org.ofbiz.widget.ModelWidgetAction$Script.runAction(ModelWidgetAction.java:416) > org.ofbiz.widget.ModelWidgetAction.runSubActions(ModelWidgetAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:181) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) > org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |