<div dir="ltr">Hi Tobias/admin,<div><br></div><div>I am still having trouble with ${cms.enableReload}. Can anyone help me?</div><div><br></div><div>Regards,</div><div>Clement Wee</div><div>Singapore</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 7:00 PM, <span dir="ltr"><<a href="mailto:opencms-dev-request@opencms.org" target="_blank">opencms-dev-request@opencms.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send opencms-dev mailing list submissions to<br>
<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:opencms-dev-request@opencms.org">opencms-dev-request@opencms.<wbr>org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:opencms-dev-owner@opencms.org">opencms-dev-owner@opencms.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of opencms-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Zero search results in image gallery when not accessed<br>
over site server (Workaround) (Jan Michael Greiner)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Mon, 20 Mar 2017 09:02:36 +0000 (UTC)<br>
From: Jan Michael Greiner <<a href="mailto:jan0michael@yahoo.com">jan0michael@yahoo.com</a>><br>
To: Jan Michael Greiner <<a href="mailto:jan0michael@yahoo.com">jan0michael@yahoo.com</a>>,<br>
"<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>" <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Subject: Re: [opencms-dev] Zero search results in image gallery when<br>
not accessed over site server (Workaround)<br>
Message-ID: <<a href="mailto:1370540135.3551851.1490000556025@mail.yahoo.com">1370540135.3551851.<wbr>1490000556025@mail.yahoo.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hello all,<br>
<br>
<br>
<br>
(in my last e-mail I meant to write 'It is my fault not to _look_ in the webserver log'.)<br>
<br>
<br>
I found out, that the problem disappears, if I make sure, that the OpenCms webapp for the server opencms_workplace is loaded before the webapp is loaded for the servers opencms_my-site and opencms_default.<br>
<br>
Is this a Tomcat 9 specific problem?<br>
<br>
As a very first and ugly workaround I'll try to put a line like the following in my /etc/init.d/tomcat9 in the "start)" section, before Tomcat ist started (I have the webapps deployed with configuration descriptors in $CATALINA_BASE/conf/Catalina/)<wbr>:<br>
<br>
(mv $CATALINA_BASE/conf/Catalina/<wbr>opencms_default $CATALINA_BASE/conf/Catalina_<wbr>delayed_startup/; mv $CATALINA_BASE/conf/Catalina/<wbr>opencms_my-site $CATALINA_BASE/conf/Catalina_<wbr>delayed_startup; sleep 180; mv<br>
$CATALINA_BASE/conf/Catalina_<wbr>delayed_startup/opencms_* $CATALINA_BASE/conf/Catalina/) &<br>
<br>
<br>
I hope this helps someone.<br>
<br>
<br>
Best regards<br>
<br>
<br>
Jan Michael Greiner<br>
<br>
<br>
______________________________<wbr>__<br>
From: Jan Michael Greiner <<a href="mailto:jan0michael@yahoo.com">jan0michael@yahoo.com</a>><br>
To: "<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>" <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Sent: Saturday, March 18, 2017 9:30 AM<br>
Subject: Re: Zero search results in image gallery when not accessed over site server<br>
<br>
<br>
<br>
Hello again,<br>
<br>
<br>
while debugging I got aware, that an exception is logged to the webserver (Tomcat) log, and not to opencms.log... It is my fault not to log in the webserver log. But I reported this as issue anyway:<br>
<br>
<a href="https://github.com/alkacon/opencms-core/issues/490" rel="noreferrer" target="_blank">https://github.com/alkacon/<wbr>opencms-core/issues/490</a><br>
<br>
<br>
<br>
Can anybody help me, what the exception means?<br>
<br>
<br>
org.opencms.search.<wbr>CmsSearchException: Execution of query "q=*:*&fl=*,score&qt=edismax&<wbr>rows=200&fq=expired:[NOW TO *]&fq=released:[* TO NOW]&fq=created:[* TO *]&fq=lastmodified:[* TO *]&fq=parent-folders:("/sites/<wbr>default/" OR "/shared/")&fq=con_locales:en&<wbr>start=0&sort=lastmodified desc" failed.<br>
at org.opencms.search.solr.<wbr>CmsSolrIndex.search(<wbr>CmsSolrIndex.java:858)<br>
at org.opencms.search.solr.<wbr>CmsSolrIndex.gallerySearch(<wbr>CmsSolrIndex.java:276)<br>
at org.opencms.ade.galleries.<wbr>CmsGalleryService.search(<wbr>CmsGalleryService.java:2910)<br>
at org.opencms.ade.galleries.<wbr>CmsGalleryService.getSearch(<wbr>CmsGalleryService.java:953)<br>
at sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke0(Native Method)<br>
at sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke(<wbr>NativeMethodAccessorImpl.java:<wbr>62)<br>
at sun.reflect.<wbr>DelegatingMethodAccessorImpl.<wbr>invoke(<wbr>DelegatingMethodAccessorImpl.<wbr>java:43)<br>
at java.lang.reflect.Method.<wbr>invoke(Method.java:498)<br>
at com.google.gwt.user.server.<wbr>rpc.RPC.<wbr>invokeAndEncodeResponse(RPC.<wbr>java:587)<br>
at com.google.gwt.user.server.<wbr>rpc.RemoteServiceServlet.<wbr>processCall(<wbr>RemoteServiceServlet.java:333)<br>
at com.google.gwt.user.server.<wbr>rpc.RemoteServiceServlet.<wbr>processCall(<wbr>RemoteServiceServlet.java:303)<br>
at com.google.gwt.user.server.<wbr>rpc.RemoteServiceServlet.<wbr>processPost(<wbr>RemoteServiceServlet.java:373)<br>
at com.google.gwt.user.server.<wbr>rpc.<wbr>AbstractRemoteServiceServlet.<wbr>doPost(<wbr>AbstractRemoteServiceServlet.<wbr>java:62)<br>
at javax.servlet.http.<wbr>HttpServlet.service(<wbr>HttpServlet.java:648)<br>
at javax.servlet.http.<wbr>HttpServlet.service(<wbr>HttpServlet.java:729)<br>
at org.opencms.gwt.CmsGwtService.<wbr>service(CmsGwtService.java:<wbr>194)<br>
at org.opencms.main.OpenCmsCore.<wbr>invokeGwtService(OpenCmsCore.<wbr>java:1722)<br>
at org.opencms.main.<wbr>OpenCmsServlet.doGet(<wbr>OpenCmsServlet.java:158)<br>
at org.opencms.main.<wbr>OpenCmsServlet.doPost(<wbr>OpenCmsServlet.java:177)<br>
at javax.servlet.http.<wbr>HttpServlet.service(<wbr>HttpServlet.java:648)<br>
at javax.servlet.http.<wbr>HttpServlet.service(<wbr>HttpServlet.java:729)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>internalDoFilter(<wbr>ApplicationFilterChain.java:<wbr>230)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>doFilter(<wbr>ApplicationFilterChain.java:<wbr>165)<br>
at org.apache.tomcat.websocket.<wbr>server.WsFilter.doFilter(<wbr>WsFilter.java:53)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>internalDoFilter(<wbr>ApplicationFilterChain.java:<wbr>192)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>doFilter(<wbr>ApplicationFilterChain.java:<wbr>165)<br>
at org.opencms.jsp.jsonpart.<wbr>CmsJsonPartFilter.doFilter(<wbr>CmsJsonPartFilter.java:281)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>internalDoFilter(<wbr>ApplicationFilterChain.java:<wbr>192)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>doFilter(<wbr>ApplicationFilterChain.java:<wbr>165)<br>
at org.apache.catalina.core.<wbr>ApplicationDispatcher.invoke(<wbr>ApplicationDispatcher.java:<wbr>715)<br>
at org.apache.catalina.core.<wbr>ApplicationDispatcher.<wbr>processRequest(<wbr>ApplicationDispatcher.java:<wbr>460)<br>
at org.apache.catalina.core.<wbr>ApplicationDispatcher.<wbr>doForward(<wbr>ApplicationDispatcher.java:<wbr>385)<br>
at org.apache.catalina.core.<wbr>ApplicationDispatcher.forward(<wbr>ApplicationDispatcher.java:<wbr>311)<br>
at org.opencms.main.<wbr>OpenCmsUrlServletFilter.<wbr>doFilter(<wbr>OpenCmsUrlServletFilter.java:<wbr>127)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>internalDoFilter(<wbr>ApplicationFilterChain.java:<wbr>192)<br>
at org.apache.catalina.core.<wbr>ApplicationFilterChain.<wbr>doFilter(<wbr>ApplicationFilterChain.java:<wbr>165)<br>
at org.apache.catalina.core.<wbr>StandardWrapperValve.invoke(<wbr>StandardWrapperValve.java:199)<br>
at org.apache.catalina.core.<wbr>StandardContextValve.invoke(<wbr>StandardContextValve.java:96)<br>
at org.apache.catalina.<wbr>authenticator.<wbr>AuthenticatorBase.invoke(<wbr>AuthenticatorBase.java:474)<br>
at org.apache.catalina.core.<wbr>StandardHostValve.invoke(<wbr>StandardHostValve.java:140)<br>
at org.apache.catalina.valves.<wbr>ErrorReportValve.invoke(<wbr>ErrorReportValve.java:79)<br>
at org.apache.catalina.valves.<wbr>AbstractAccessLogValve.invoke(<wbr>AbstractAccessLogValve.java:<wbr>624)<br>
at org.apache.catalina.core.<wbr>StandardEngineValve.invoke(<wbr>StandardEngineValve.java:87)<br>
at org.apache.catalina.connector.<wbr>CoyoteAdapter.service(<wbr>CoyoteAdapter.java:349)<br>
at org.apache.coyote.http11.<wbr>Http11Processor.service(<wbr>Http11Processor.java:783)<br>
at org.apache.coyote.<wbr>AbstractProcessorLight.<wbr>process(<wbr>AbstractProcessorLight.java:<wbr>66)<br>
at org.apache.coyote.<wbr>AbstractProtocol$<wbr>ConnectionHandler.process(<wbr>AbstractProtocol.java:745)<br>
at <a href="http://org.apache.tomcat.util.net">org.apache.tomcat.util.net</a>.<wbr>NioEndpoint$SocketProcessor.<wbr>doRun(NioEndpoint.java:1437)<br>
at <a href="http://org.apache.tomcat.util.net">org.apache.tomcat.util.net</a>.<wbr>SocketProcessorBase.run(<wbr>SocketProcessorBase.java:49)<br>
at java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>ThreadPoolExecutor.java:1142)<br>
at java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>ThreadPoolExecutor.java:617)<br>
at org.apache.tomcat.util.<wbr>threads.TaskThread$<wbr>WrappingRunnable.run(<wbr>TaskThread.java:61)<br>
at java.lang.Thread.run(Thread.<wbr>java:745)<br>
Caused by: java.lang.NullPointerException<br>
at org.opencms.search.solr.<wbr>CmsSolrIndex.search(<wbr>CmsSolrIndex.java:625)<br>
... 52 more<br>
<br>
<br>
<br>
CmsSolrIndex.java:625 reads:<br>
QueryResponse queryResponse = m_solr.query(query);<br>
<br>
That means m_solr is null?<br>
How can that be?<br>
<br>
<br>
Best regards and thanks<br>
<br>
Jan Michael Greiner<br>
<br>
<br>
<br>
______________________________<wbr>__<br>
<br>
From: Jan Michael Greiner <<a href="mailto:jan0michael@yahoo.com">jan0michael@yahoo.com</a>><br>
To: "<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>" <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Sent: Saturday, March 18, 2017 7:33 AM<br>
Subject: Re: Zero search results in image gallery when not accessed over site server<br>
<br>
<br>
<br>
Hello all,<br>
<br>
<br>
<br>
I attached a debugger (Eclipse) to the remote Tomcat.<br>
<br>
I set a breakpoint in org.opencms.ade.galleries.<wbr>CmsGalleryService in the method public CmsGallerySearchBean getSearch(CmsGalleryDataBean data).<br>
<br>
A difference I see between access to the image gallery over <a href="https://opencms_default:8443" rel="noreferrer" target="_blank">https://opencms_default:8443</a> and <a href="https://opencms_workplace:8443" rel="noreferrer" target="_blank">https://opencms_workplace:8443</a> in source code line 931, String gallery = data.getStartGallery();:<br>
<br>
<br>
For <a href="https://opencms_workplace:8443" rel="noreferrer" target="_blank">https://opencms_workplace:8443</a> start gallery is null, for <a href="https://opencms_default:8443" rel="noreferrer" target="_blank">https://opencms_default:8443</a> it is set to /.galleries/office/.<br>
Can this be the reason why the image gallery is empty, if I access it over <a href="https://opencms_workplace:8443" rel="noreferrer" target="_blank">https://opencms_workplace:8443</a><wbr>?<br>
<br>
<br>
Update: No, it seems the start gallery is just the gallery selected by default...<br>
<br>
<br>
<br>
I will debug further, and I will keep you up to date with my findings :-)<br>
<br>
<br>
Help is still appreciated... The source code is fine, well structured and so on. But it is really hard to dive into such a large project...<br>
<br>
<br>
<br>
Best regards<br>
<br>
Jan Michael Greiner<br>
<br>
<br>
______________________________<wbr>__<br>
<br>
From: Jan Michael Greiner <<a href="mailto:jan0michael@yahoo.com">jan0michael@yahoo.com</a>><br>
To: The OpenCms Mailing List <<a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a>><br>
Sent: Monday, March 13, 2017 1:55 PM<br>
Subject: Zero search results in image gallery when not accessed over site server<br>
<br>
<br>
Dear all,<br>
<br>
<br>
in my installation there is a problem with the image gallery, and I didn't find a similar case in the list archive.<br>
<br>
I have three sites in opencms-system.xml<br>
<br>
<sites><br>
<workplace-server><a href="https://opencms_workplace:8443" rel="noreferrer" target="_blank">https://<wbr>opencms_workplace:8443</a></<wbr>workplace-server><br>
<default-uri>/sites/default/</<wbr>default-uri><br>
<shared-folder>/shared/</<wbr>shared-folder><br>
<site server="<a href="https://opencms_my-site:8443" rel="noreferrer" target="_blank">https://opencms_my-<wbr>site:8443</a>" uri="/sites/de.mysite/" title="My Site" position="50.0" webserver="false"/><br>
<site server="<a href="https://opencms_default:8443" rel="noreferrer" target="_blank">https://opencms_<wbr>default:8443</a>" uri="/sites/default/" title="Demo Site" position="10.0" webserver="false"><br>
<parameters><br>
<param name="locale.main">en</param><br>
<param name="locale.secondary">de</<wbr>param><br>
</parameters><br>
</site><br>
</sites><br>
<br>
The sites are accessed through a reverse proxy on another virtual machine. There is no difference with the image gallery, if I access the sites directly or through the reverse proxy.<br>
<br>
<br>
<br>
In <a href="https://opencms_default:8443" rel="noreferrer" target="_blank">https://opencms_default:8443</a> the image gallery works as expected.But I get the message described in<br>
<br>
<a href="http://lists.opencms.org/pipermail/opencms-dev/2016q2/041124.html" rel="noreferrer" target="_blank">http://lists.opencms.org/<wbr>pipermail/opencms-dev/2016q2/<wbr>041124.html</a><br>
<br>
"Accessing workplace or ADE through a server which has not been configured.<br>
Your site configuration is probably incorrect."<br>
<br>
<br>
In <a href="https://opencms_my-site:8443" rel="noreferrer" target="_blank">https://opencms_my-site:8443</a> I don't have a login yet, so I can not test the image gallery.<br>
<br>
<br>
In <a href="https://opencms_workplace:8443" rel="noreferrer" target="_blank">https://opencms_workplace:8443</a> the image gallery has always 0 search results.<br>
<br>
<br>
<br>
I don't think there is a problem with the search index, because the image gallery would not work in opencms_default in that case.<br>
Anyway I rebuilt the search index several times, to be sure.<br>
<br>
When restarting Tomcat there is an exception logged with SolrIndexWriter (two times, because there are online and offline search index?):<br>
<br>
<br>
13 Mar 2017 12:09:14,665 INFO [ org.opencms.main.OpenCmsCore:<wbr>2832] . Runlevel change : Switchi<br>
ng from 2 to 4<br>
13 Mar 2017 12:09:14,865 ERROR [he.solr.update.<wbr>SolrIndexWriter: 182] SolrIndexWriter was not closed p<br>
rior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!<br>
13 Mar 2017 12:09:14,867 ERROR [he.solr.update.<wbr>SolrIndexWriter: 135] Error closing IndexWriter<br>
java.lang.NullPointerException<br>
at org.apache.lucene.index.<wbr>IndexWriter.doFlush(<wbr>IndexWriter.java:3119)<br>
at org.apache.lucene.index.<wbr>IndexWriter.flush(IndexWriter.<wbr>java:3087)<br>
at org.apache.lucene.index.<wbr>IndexWriter.shutdown(<wbr>IndexWriter.java:1080)<br>
at org.apache.lucene.index.<wbr>IndexWriter.close(IndexWriter.<wbr>java:1125)<br>
at org.apache.solr.update.<wbr>SolrIndexWriter.close(<wbr>SolrIndexWriter.java:130)<br>
at org.apache.solr.update.<wbr>SolrIndexWriter.finalize(<wbr>SolrIndexWriter.java:183)<br>
at java.lang.System$2.<wbr>invokeFinalize(System.java:<wbr>1270)<br>
at java.lang.ref.Finalizer.<wbr>runFinalizer(Finalizer.java:<wbr>98)<br>
at java.lang.ref.Finalizer.<wbr>access$100(Finalizer.java:34)<br>
at java.lang.ref.Finalizer$<wbr>FinalizerThread.run(Finalizer.<wbr>java:210)<br>
13 Mar 2017 12:09:14,868 ERROR [he.solr.update.<wbr>SolrIndexWriter: 182] SolrIndexWriter was not closed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!<br>
13 Mar 2017 12:09:14,868 ERROR [he.solr.update.<wbr>SolrIndexWriter: 135] Error closing IndexWriter<br>
java.lang.NullPointerException<br>
at org.apache.lucene.index.<wbr>IndexWriter.doFlush(<wbr>IndexWriter.java:3119)<br>
at org.apache.lucene.index.<wbr>IndexWriter.flush(IndexWriter.<wbr>java:3087)<br>
at org.apache.lucene.index.<wbr>IndexWriter.shutdown(<wbr>IndexWriter.java:1080)<br>
at org.apache.lucene.index.<wbr>IndexWriter.close(IndexWriter.<wbr>java:1125)<br>
at org.apache.solr.update.<wbr>SolrIndexWriter.close(<wbr>SolrIndexWriter.java:130)<br>
at org.apache.solr.update.<wbr>SolrIndexWriter.finalize(<wbr>SolrIndexWriter.java:183)<br>
at java.lang.System$2.<wbr>invokeFinalize(System.java:<wbr>1270)<br>
at java.lang.ref.Finalizer.<wbr>runFinalizer(Finalizer.java:<wbr>98)<br>
at java.lang.ref.Finalizer.<wbr>access$100(Finalizer.java:34)<br>
at java.lang.ref.Finalizer$<wbr>FinalizerThread.run(Finalizer.<wbr>java:210)<br>
13 Mar 2017 12:09:14,957 ERROR [ache.juli.logging.<wbr>DirectJDKLog: 181] Exception loading sessions from persistent storage<br>
<br>
<br>
Can anybody help me with this?<br>
<br>
<br>
Best regards<br>
<br>
<br>
------------------------------<br>
<br>
______________________________<wbr>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
<br>
End of opencms-dev Digest, Vol 281, Issue 1<br>
******************************<wbr>*************<br>
</blockquote></div><br></div>