[opencms-dev] Development Workplace with OC11 - Solr error
Daniel Seidel
d.seidel at alkacon.com
Mon Feb 15 16:49:16 CET 2021
Hi Peter,
how do you start/stop tomcat? Do you use the default solrconfig.xml
(WEB-INF/solr/configsets/default/conf/solrconfig.xml)?
Best, Daniel
Am 15.02.21 um 13:53 schrieb Hanspeter Klapf:
> Hello,
> using OpenCms since version 7.5, I've tried various approaches for the
> development of modules. In previous versions I used some
> Eclipse-Plugin for module-deployment, then the Eurelis Ant Task, later
> I combined this with WebDAV-Access.
> Since version 9.5, I was quite happy with running OpenCms on a Tomcat
> locally, an Eclipse-Projekt with a dynamic folder pointing to a
> mounted WebDAV-Path on this instance and a few Ant-Tasks for
> synchronizing the Project-Files with SVN, building Java-Classes and
> publish/export my module via CmsShell.
> Now I am trying this usage on version 11.0.2 and it basically works,
> but my Solr-Index is quite often damaged, I get the following
> stacktrace at startup:
> INFO [pencms.search.CmsSearchManager:2677] . Search index :
> Successfully configured search index "Solr Online" for project "Online"
> INFO [pencms.search.CmsSearchManager:1807] . Search Solr :
> Solr index directory created for index "Solr Offline"
> (C:\DEV\apache-tomcat-9.0.39_oc11\webapps\opencms\WEB-INF\index\Solr
> Offline).
> ERROR [he.solr.update.SolrIndexWriter: 341] SolrIndexWriter was not
> closed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
> ERROR [he.solr.update.SolrIndexWriter: 291] Error closing IndexWriter
> java.lang.NullPointerException: null
> at
> org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3603)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3563)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:1044)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1087)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:286)
> [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 -
> jimczi - 2019-03-08 12:06:06]
> at
> org.apache.solr.update.SolrIndexWriter.finalize(SolrIndexWriter.java:342)
> [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 -
> jimczi - 2019-03-08 12:06:06]
> at java.lang.System$2.invokeFinalize(System.java:2117) [?:?]
> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:87) [?:?]
> at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:171)
> [?:?]
> Suppressed: java.lang.NullPointerException
> at
> org.apache.lucene.index.IndexWriter.rollbackInternalNoCommit(IndexWriter.java:2288)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:2266)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:1051)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1087)
> ~[lucene-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979
> - jimczi - 2019-03-08 11:58:55]
> at
> org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:286)
> [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 -
> jimczi - 2019-03-08 12:06:06]
> at
> org.apache.solr.update.SolrIndexWriter.finalize(SolrIndexWriter.java:342)
> [solr-core-8.0.0.jar:8.0.0 2ae4746365c1ee72a0047ced7610b2096e438979 -
> jimczi - 2019-03-08 12:06:06]
> at java.lang.System$2.invokeFinalize(System.java:2117) [?:?]
> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:87) [?:?]
> at
> java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:171) [?:?]
> If that's the case, I have to delete the indexes and rebuild them
> (CmsShell-Task rebuildAllIndexes). Allthough this is working, it is
> quite anoying and takes quite long.
> At Tomcat-shutdown I get the following message, don't know if this is
> related...
> WARNING [main]
> org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads
> The web application [opencms] appears to have started a thread named
> [Notify_null] but has failed to stop it. This is very likely to create
> a memory leak. Stack trace of thread:
> java.base at 11/java.lang.Object.wait(Native Method)
> java.base at 11/java.lang.Object.wait(Object.java:328)
> org.alfresco.jlan.smb.server.notify.NotifyChangeHandler.run(NotifyChangeHandler.java:1008)
> java.base at 11/java.lang.Thread.run(Thread.java:834)
> I'm grateful for suggestions as to how I could set up my environment
> better or what the cause of this behaviour may be.
> BR,
> Peter
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
--
Kind Regards,
Daniel.
-------------------
Daniel Seidel
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210215/de3e1231/attachment.htm>
More information about the opencms-dev
mailing list