4.2.0 - Lucene query error when contenttype has new categories

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

4.2.0 - Lucene query error when contenttype has new categories

aDNers

Hello,

I experience a very strange error. When I try the lucene query using the Query Tool on a content from a content type named "Testing" which only contains a text field named "title" and Category-field (categories) I get a message: Unfortunately this has caused a problem. Please try again.









Query used: +ContentType: Testing

If I remove the category field from the content type I do get results in the Query Tool.
I get the following error in the log, not really sure what is happening here.. any help would be much appreciated.

Br
Anders



[31/10/17 14:31:04:336 GMT] ERROR portlet.PortletRequestDispatcherImpl: An exception occurred processing JSP page /WEB-INF/jsp/lucene/lucene_search.jsp at line 273

270:                                                    <!-- <tr >
271:                                                            <td></td>
272:                                                            <td colspan="2">
273:                                                                    <div style="padding-bottom: 25px;"><%= UtilMethods.makeHtmlSafe(ContentletUtil.getContentPrintableMap(user, c).toString()) %></
div>
274:                                                            </td>
275:                                                    </
tr> -->
276:


Stacktrace:
org
.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/lucene/lucene_search.jsp at line 273

270:                                                    <!-- <tr >
271:                                                            <td></td>
272:                                                            <td colspan="2">
273:                                                                    <div style="padding-bottom: 25px;"><%= UtilMethods.makeHtmlSafe(ContentletUtil.getContentPrintableMap(user, c).toString()) %></
div>
274:                                                            </td>
275:                                                    </
tr> -->
276:


Stacktrace:
        at org
.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:567) ~[jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:469) ~[jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) ~[jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) ~[jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) ~[servlet-api.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:523) ~[catalina.jar:8.0.18]
        at com
.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:209) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:76) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portlet.JSPPortlet.include(JSPPortlet.java:124) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portlet.JSPPortlet.doView(JSPPortlet.java:96) [dotcms_4.2.0_999999.jar:?]
        at com
.dotcms.repackage.javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235) [dot.portlet-1.0_2.jar:?]
        at com
.liferay.portlet.JSPPortlet.doDispatch(JSPPortlet.java:72) [dotcms_4.2.0_999999.jar:?]
        at com
.dotcms.repackage.javax.portlet.GenericPortlet.render(GenericPortlet.java:163) [dot.portlet-1.0_2.jar:?]
        at com
.liferay.portlet.CachePortlet.render(CachePortlet.java:159) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.jsp.html.portal.layout_jsp._jspService(layout_jsp.java:618) [ROOT/:?]
        at org
.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:523) [catalina.jar:8.0.18]
        at org
.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:934) [jasper.jar:8.0.18]
        at org
.apache.jsp.html.portal.layout_005fportal_jsp._jspService(layout_005fportal_jsp.java:1353) [ROOT/:?]
        at org
.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318) [catalina.jar:8.0.18]
        at com
.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:72) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:142) [dotcms_4.2.0_999999.jar:?]
        at com
.dotmarketing.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:48) [dotcms_4.2.0_999999.jar:?]
        at com
.dotcms.repackage.org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237) [dot.struts-1.2.4_2.jar:1.2.4]
        at com
.dotcms.repackage.org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300) [dot.struts-1.2.4_2.jar:1.2.4]
        at com
.dotcms.repackage.com.oroad.stxx.plugin.StxxTilesRequestProcessor.processForwardConfig(StxxTilesRequestProcessor.java:134) [dot.stxx-1.3_2.jar:?]
        at com
.dotcms.repackage.org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) [dot.struts-1.2.4_2.jar:1.2.4]
        at com
.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:128) [dotcms_4.2.0_999999.jar:?]
        at com
.dotcms.repackage.org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) [dot.struts-1.2.4_2.jar:1.2.4]
        at com
.dotcms.repackage.org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) [dot.struts-1.2.4_2.jar:1.2.4]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:644) [servlet-api.jar:?]
        at com
.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:251) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portal.servlet.MainServlet.service(MainServlet.java:440) [dotcms_4.2.0_999999.jar:?]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotcms.repackage.com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:135) [dot.secure-filter-ukv_2.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotmarketing.filters.CMSFilter.doFilter(CMSFilter.java:203) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotcms.filters.interceptor.AbstractWebInterceptorSupportFilter.doFilter(AbstractWebInterceptorSupportFilter.java:73) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotcms.filters.interceptor.AbstractWebInterceptorSupportFilter.doFilter(AbstractWebInterceptorSupportFilter.java:73) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotmarketing.cms.urlmap.filters.URLMapFilter.doFilter(URLMapFilter.java:325) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotmarketing.filters.VanityURLFilter.doFilter(VanityURLFilter.java:110) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotcms.repackage.org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:404) [dot.urlrewritefilter-4.0.3_2.jar:4.0.3]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotmarketing.filters.TimeMachineFilter.doFilter(TimeMachineFilter.java:132) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotmarketing.filters.ThreadNameFilter.doFilter(ThreadNameFilter.java:90) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotmarketing.filters.CookiesFilter.doFilter(CookiesFilter.java:38) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at com
.dotmarketing.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:108) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [catalina.jar:8.0.18]
        at org
.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) [catalina.jar:8.0.18]
        at org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [catalina.jar:8.0.18]
        at org
.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [catalina.jar:8.0.18]
        at org
.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516) [catalina.jar:8.0.18]
        at org
.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086) [tomcat-coyote.jar:8.0.18]
        at org
.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659) [tomcat-coyote.jar:8.0.18]
        at org
.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223) [tomcat-coyote.jar:8.0.18]
        at org
.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558) [tomcat-coyote.jar:8.0.18]
        at org
.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515) [tomcat-coyote.jar:8.0.18]
        at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_131]
        at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_131]
        at org
.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.0.18]
        at java
.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.NullPointerException
        at com
.dotmarketing.portlets.categories.business.CategoryAPIImpl.isParent(CategoryAPIImpl.java:659) ~[dotcms_4.2.0_999999.jar:?]
        at com
.dotmarketing.portlets.contentlet.util.ContentletUtil.getContentPrintableMap(ContentletUtil.java:122) ~[dotcms_4.2.0_999999.jar:?]
        at org
.apache.jsp.WEB_002dINF.jsp.lucene.lucene_005fsearch_jsp._jspService(lucene_005fsearch_jsp.java:533) ~[?:?]
        at org
.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) ~[jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) ~[servlet-api.jar:?]
        at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431) ~[jasper.jar:8.0.18]
       
... 114 more





--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/7237628e-e6ae-4d2b-8868-37398578b25c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: 4.2.0 - Lucene query error when contenttype has new categories

Jason Tesser
This is a 4.2 issue. You can see the issue in github here https://github.com/dotCMS/core/issues/12959

On Tue, Oct 31, 2017 at 10:38 AM aDNers <[hidden email]> wrote:

Hello,

I experience a very strange error. When I try the lucene query using the Query Tool on a content from a content type named "Testing" which only contains a text field named "title" and Category-field (categories) I get a message: Unfortunately this has caused a problem. Please try again.









Query used: +ContentType: Testing

If I remove the category field from the content type I do get results in the Query Tool.
I get the following error in the log, not really sure what is happening here.. any help would be much appreciated.

Br
Anders



[31/10/17 14:31:04:336 GMT] ERROR portlet.PortletRequestDispatcherImpl: An exception occurred processing JSP page /WEB-INF/jsp/lucene/lucene_search.jsp at line 273

270:                                                    <!-- <tr >
271:                                                            <td></td>
272:                                                            <td colspan="2">
273:                                                                    <div style="padding-bottom: 25px;"><%= UtilMethods.makeHtmlSafe(ContentletUtil.getContentPrintableMap(user, c).toString()) %></
div>
274:                                                            </td>
275:                                                    </
tr> -->
276:


Stacktrace:
org
.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/lucene/lucene_search.jsp at line 273

270:                                                    <!-- <tr >
271:                                                            <td></td>
272:                                                            <td colspan="2">
273:                                                                    <div style="padding-bottom: 25px;"><%= UtilMethods.makeHtmlSafe(ContentletUtil.getContentPrintableMap(user, c).toString()) %></
div>
274:                                                            </td>
275:                                                    </
tr> -->
276:


Stacktrace:
        at org
.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:567) ~[jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:469) ~[jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) ~[jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) ~[jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) ~[servlet-api.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584) ~[catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:523) ~[catalina.jar:8.0.18]
        at com
.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:209) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:76) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portlet.JSPPortlet.include(JSPPortlet.java:124) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portlet.JSPPortlet.doView(JSPPortlet.java:96) [dotcms_4.2.0_999999.jar:?]
        at com
.dotcms.repackage.javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235) [dot.portlet-1.0_2.jar:?]
        at com
.liferay.portlet.JSPPortlet.doDispatch(JSPPortlet.java:72) [dotcms_4.2.0_999999.jar:?]
        at com
.dotcms.repackage.javax.portlet.GenericPortlet.render(GenericPortlet.java:163) [dot.portlet-1.0_2.jar:?]
        at com
.liferay.portlet.CachePortlet.render(CachePortlet.java:159) [dotcms_4.2.0_999999.jar:?]
        at org
.apache.jsp.html.portal.layout_jsp._jspService(layout_jsp.java:618) [ROOT/:?]
        at org
.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:523) [catalina.jar:8.0.18]
        at org
.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:934) [jasper.jar:8.0.18]
        at org
.apache.jsp.html.portal.layout_005fportal_jsp._jspService(layout_005fportal_jsp.java:1353) [ROOT/:?]
        at org
.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:431) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) [jasper.jar:8.0.18]
        at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) [jasper.jar:8.0.18]
        at javax
.servlet.http.HttpServlet.service(HttpServlet.java:725) [servlet-api.jar:?]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391) [catalina.jar:8.0.18]
        at org
.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318) [catalina.jar:8.0.18]
        at com
.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:72) [dotcms_4.2.0_999999.jar:?]
        at com
.liferay.portal.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:142) [dotcms_4.2.0_999999.jar:?]
        at com
.dotmarketing.struts.PortalRequestProcessor.doForward(PortalRequestProcessor.java:48) [dotcms_4.2.0_999999.jar:?]
        at com
.dotcms.repackage.org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237) [dot.struts-1.2.4_2.jar:1.2.4]
       
--



3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWfBfsy5xcZTw3WODQLwSxwuLg_9BWA6PDuG14eTsKb8Uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: 4.2.0 - Lucene query error when contenttype has new categories

aDNers
Thanks for the quick answer. Just thought I might collaborate how I discovered that the query tool didn't work as expected. I actually first noticed that some of my old paginated content pulls returned 0 hits, although I know they should have content and used to work before trying 4.2.0. That was when I wanted to check the lucene query in the tool. That is, I guess that if the bug which doesn't allow categories in the query tool is solved - I would again be able to use the old contentpulls. Or atleast I hope so.
 
#foreach($category in $URLMapContent.categories)
   
#set($myCategorykey = $category.key)
   
#set($testQuery= "+(contentType:testing1 || contentType:testing2 || contentType:testing3)")
   
#if($request.getParameter("cat"))
     
#set($catVar = $request.getParameter("cat"))
     
#set($testQuery = $testQuery + " +categories:$!{catVar}")
   
#elseif($!{myCategorykey})
     
#set($testQuery = $testQuery + " +categories:$!{myCategorykey}")
   
#end
#end






--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/d9e91fd5-2f7a-4e75-b59e-6a42866289e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: 4.2.0 - Lucene query error when contenttype has new categories

Jason Tesser
Yes same issue. 

We are patching it now.  We will put out a 4.2.1 by or before next week 

You can manually patch your server if you want with this code https://github.com/dotCMS/core/commit/5cb032b58a5f9530a7b708e9c98cf4e54ceb11d5

On Tue, Oct 31, 2017 at 2:06 PM aDNers <[hidden email]> wrote:
Thanks for the quick answer. Just thought I might collaborate how I discovered that the query tool didn't work as expected. I actually first noticed that some of my old paginated content pulls returned 0 hits, although I know they should have content and used to work before trying 4.2.0. That was when I wanted to check the lucene query in the tool. That is, I guess that if the bug which doesn't allow categories in the query tool is solved - I would again be able to use the old contentpulls. Or atleast I hope so.
 
#foreach($category in $URLMapContent.categories)
   
#set($myCategorykey = $category.key)
   
#set($testQuery= "+(contentType:testing1 || contentType:testing2 || contentType:testing3)")
   
#if($request.getParameter("cat"))
     
#set($catVar = $request.getParameter("cat"))
     
#set($testQuery = $testQuery + " +categories:$!{catVar}")
   
#elseif($!{myCategorykey})
     
#set($testQuery = $testQuery + " +categories:$!{myCategorykey}")
   
#end
#end






--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/d9e91fd5-2f7a-4e75-b59e-6a42866289e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--



3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/CAKKUxWew_2JFvkxjw7RbhxF8jAvwr%2B8M5e_X0wGrBaLZriODVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: 4.2.0 - Lucene query error when contenttype has new categories

aDNers
Hey,
Thanks for the quick fix. I have now tried the latest nightly build where the fix was included, and everything works as expected :)
BR Anders

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/53c42ae7-88a7-412b-87c6-b2a37c3e8f06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.