[opencms-dev] Zero search results in image gallery when not accessed over site server

Jan Michael Greiner jan0michael at yahoo.com
Mon Mar 13 13:55:19 CET 2017


Dear all,


in my installation there is a problem with the image gallery, and I didn't find a similar case in the list archive.

I have three sites in opencms-system.xml

<sites>
<workplace-server>https://opencms_workplace:8443</workplace-server>
<default-uri>/sites/default/</default-uri>
<shared-folder>/shared/</shared-folder>
<site server="https://opencms_my-site:8443" uri="/sites/de.mysite/" title="My Site" position="50.0" webserver="false"/>
<site server="https://opencms_default:8443" uri="/sites/default/" title="Demo Site" position="10.0" webserver="false">
<parameters>
<param name="locale.main">en</param>
<param name="locale.secondary">de</param>
</parameters>
</site>
</sites>


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.



In https://opencms_default:8443 the image gallery works as expected.
But I get the message described in 
http://lists.opencms.org/pipermail/opencms-dev/2016q2/041124.html

"Accessing workplace or ADE through a server which has not been configured.

Your site configuration is probably incorrect."
 


In https://opencms_my-site:8443 I don't have a login yet, so I can not test the image gallery.

In https://opencms_workplace:8443 the image gallery has always 0 search results.



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.
Anyway I rebuilt the search index several times, to be sure.



When restarting Tomcat there is an exception logged with SolrIndexWriter (two times, because there are online and offline search index?):


13 Mar 2017 12:09:14,665  INFO [  org.opencms.main.OpenCmsCore:2832] . Runlevel change      : Switchi
ng from 2 to 4
13 Mar 2017 12:09:14,865 ERROR [he.solr.update.SolrIndexWriter: 182] SolrIndexWriter was not closed p
rior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
13 Mar 2017 12:09:14,867 ERROR [he.solr.update.SolrIndexWriter: 135] Error closing IndexWriter
java.lang.NullPointerException
at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3119)
at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3087)
at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:1080)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1125)
at org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:130)
at org.apache.solr.update.SolrIndexWriter.finalize(SolrIndexWriter.java:183)
at java.lang.System$2.invokeFinalize(System.java:1270)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)
13 Mar 2017 12:09:14,868 ERROR [he.solr.update.SolrIndexWriter: 182] SolrIndexWriter was not closed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
13 Mar 2017 12:09:14,868 ERROR [he.solr.update.SolrIndexWriter: 135] Error closing IndexWriter
java.lang.NullPointerException
at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3119)
at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3087)
at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:1080)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1125)
at org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:130)
at org.apache.solr.update.SolrIndexWriter.finalize(SolrIndexWriter.java:183)
at java.lang.System$2.invokeFinalize(System.java:1270)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)
13 Mar 2017 12:09:14,957 ERROR [ache.juli.logging.DirectJDKLog: 181] Exception loading sessions from persistent storage


Can anybody help me with this?


Best regards



More information about the opencms-dev mailing list