Return 404 anytime after adding specify key-match

I got a fatal error on fess 13.9.2 when I added specify key-match.
Fess returns 404 at any Url after rebooting.
I face same error on 13.9.3 zip version.

Term: 鉄腕dash
Query: ザ!鉄腕!DASH!!|日本テレビ

server_0.log is below.

/var/log/fess$ cat server_0.log
Nov 03, 2020 5:53:37 AM org.dbflute.tomcat.logging.BootLogger info
INFO: …Booting the Tomcat: port=8080 contextPath=
Nov 03, 2020 5:53:37 AM org.dbflute.tomcat.logging.BootLogger info
INFO: …Reflecting configuration to server: config=[tomcat_config.properties]
Nov 03, 2020 5:53:37 AM org.dbflute.tomcat.logging.BootLogger info
INFO: tomcat.URIEncoding = UTF-8
Nov 03, 2020 5:53:37 AM org.dbflute.tomcat.logging.BootLogger info
INFO: tomcat.useBodyEncodingForURI = true
Nov 03, 2020 5:53:37 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [“http-nio-8080”]
Nov 03, 2020 5:53:37 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Nov 03, 2020 5:53:37 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.37]
Nov 03, 2020 5:53:37 AM org.dbflute.tomcat.logging.BootLogger info
INFO: …Initializing webapp of default web.xml with JSP (the servlet found)
Nov 03, 2020 5:53:38 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Nov 03, 2020 5:54:02 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
WARNING: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [23,650] milliseconds.
Nov 03, 2020 5:54:13 AM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter [lastaPrepareFilter]
org.lastaflute.di.exception.ContainerInitFailureException: Look! Read the message below.
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Failed to initialize the container.

[Path]
app.xml

[Namespace]
null

                  • /
                    at org.lastaflute.di.core.meta.impl.LaContainerImpl.throwContainerInitFailureException(LaContainerImpl.java:463)
                    at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:415)
                    at org.lastaflute.di.core.factory.SingletonLaContainerFactory.init(SingletonLaContainerFactory.java:66)
                    at org.lastaflute.web.container.WebLastaContainerInitializer.doInitContainer(WebLastaContainerInitializer.java:81)
                    at org.lastaflute.web.container.WebLastaContainerInitializer.initialize(WebLastaContainerInitializer.java:45)
                    at org.lastaflute.web.servlet.filter.LastaPrepareFilter.initializeContainer(LastaPrepareFilter.java:137)
                    at org.lastaflute.web.servlet.filter.LastaPrepareFilter.init(LastaPrepareFilter.java:94)
                    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:270)
                    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:251)
                    at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:102)
                    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4528)
                    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
                    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
                    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
                    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
                    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
                    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
                    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
                    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
                    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
                    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
                    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
                    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
                    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
                    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                    at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)
                    at org.dbflute.tomcat.TomcatBoot.startServer(TomcatBoot.java:713)
                    at org.dbflute.tomcat.TomcatBoot.go(TomcatBoot.java:402)
                    at org.dbflute.tomcat.TomcatBoot.bootAwait(TomcatBoot.java:347)
                    at org.codelibs.fess.FessBoot.main(FessBoot.java:96)
                    Caused by: org.lastaflute.di.core.exception.IllegalMethodRuntimeException: [ESSR0060]Can not configure method(init) of org.codelibs.fess.helper.KeyMatchHelper, because org.codelibs.fess.exception.InvalidQueryException: Invalid query: ザ!鉄腕!DASH!!|日本テレビ
                    at org.lastaflute.di.core.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:61)
                    at org.lastaflute.di.core.assembler.DefaultInitMethodAssembler.assemble(DefaultInitMethodAssembler.java:40)
                    at org.lastaflute.di.core.deployer.SingletonComponentDeployer.assemble(SingletonComponentDeployer.java:57)
                    at org.lastaflute.di.core.deployer.SingletonComponentDeployer.deploy(SingletonComponentDeployer.java:41)
                    at org.lastaflute.di.core.deployer.SingletonComponentDeployer.init(SingletonComponentDeployer.java:35)
                    at org.lastaflute.di.core.meta.impl.ComponentDefImpl.init(ComponentDefImpl.java:85)
                    at org.lastaflute.di.core.meta.impl.LaContainerImpl.doInit(LaContainerImpl.java:434)
                    at org.lastaflute.di.core.meta.impl.LaContainerImpl.init(LaContainerImpl.java:413)
                    … 36 more
                    Caused by: org.codelibs.fess.exception.InvalidQueryException: Invalid query: ザ !鉄腕!DASH!!|日本テレビ
                    at org.codelibs.fess.helper.QueryHelper.buildBaseQuery(QueryHelper.java:418)
                    at org.codelibs.fess.helper.QueryHelper.build(QueryHelper.java:350)
                    at org.codelibs.fess.es.client.FessEsClient$SearchConditionBuilder.buildQueryContext(FessEsClient.java:1211)
                    at org.codelibs.fess.es.client.FessEsClient$SearchConditionBuilder.build(FessEsClient.java:1091)
                    at org.codelibs.fess.helper.KeyMatchHelper.lambda$getDocumentList$5(KeyMatchHelper.java:124)
                    at org.codelibs.fess.es.client.FessEsClient.search(FessEsClient.java:757)
                    at org.codelibs.fess.es.client.FessEsClient.getDocumentList(FessEsClient.java:893)
                    at org.codelibs.fess.es.client.FessEsClient.getDocumentList(FessEsClient.java:872)
                    at org.codelibs.fess.helper.KeyMatchHelper.getDocumentList(KeyMatchHelper.java:120)
                    at org.codelibs.fess.helper.KeyMatchHelper.lambda$reload$4(KeyMatchHelper.java:82)
                    at java.base/java.util.ArrayList$Itr.forEachRemaining(ArrayList.java:1033)
                    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
                    at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
                    at org.codelibs.fess.helper.KeyMatchHelper.reload(KeyMatchHelper.java:77)
                    at org.codelibs.fess.helper.KeyMatchHelper.init(KeyMatchHelper.java:60)
                    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                    at org.lastaflute.di.util.LdiMethodUtil.invoke(LdiMethodUtil.java:49)
                    at org.lastaflute.di.core.assembler.AbstractMethodAssembler.invoke(AbstractMethodAssembler.java:59)
                    … 43 more
                    Caused by: org.apache.lucene.queryparser.classic.ParseException: Cannot parse ’ ザ!鉄腕!DASH!!|日本テレビ’: Encountered " "! “” at line 1, column 10.
                    Was expecting one of:

                    “(” …
                    "
                    " …





                    “[” …
                    “{” …


                    “*” …

          at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:114)
          at org.codelibs.fess.helper.QueryHelper.buildBaseQuery(QueryHelper.java:407)
          … 63 more
          Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered " "! “” at line 1, column 10.
          Was expecting one of:

          “(” …
          " …





          “[” …
          “{” …


          "
          ” …

          at org.apache.lucene.queryparser.classic.QueryParser.generateParseException(QueryParser.java:931)
          at org.apache.lucene.queryparser.classic.QueryParser.jj_consume_token(QueryParser.java:813)
          at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:373)
          at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:303)
          at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:215)
          at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:109)
          … 64 more

Nov 03, 2020 5:54:13 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file
Nov 03, 2020 5:54:13 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
WARNING: The web application [ROOT] registered the JDBC driver [org.sqlite.JDBC] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [eshttp] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.9/jdk.internal.misc.Unsafe.park(Native Method)
java.base@11.0.9/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
java.base@11.0.9/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1628)
java.base@11.0.9/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [eshttp] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.9/jdk.internal.misc.Unsafe.park(Native Method)
java.base@11.0.9/java.util.concurrent.locks.LockSupport.parkUntil(LockSupport.java:275)
java.base@11.0.9/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1619)
java.base@11.0.9/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [ThumbnailGenerator] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.9/jdk.internal.misc.Unsafe.park(Native Method)
java.base@11.0.9/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234)
java.base@11.0.9/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2123)
java.base@11.0.9/java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:458)
org.codelibs.fess.thumbnail.ThumbnailManager.lambda$init$0(ThumbnailManager.java:123)
org.codelibs.fess.thumbnail.ThumbnailManager$$Lambda$764/0x0000000100706040.run(Unknown Source)
java.base@11.0.9/java.lang.Thread.run(Thread.java:834)
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [CommandGeneratorDestoryTimer-1604382848531] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.9/java.lang.Object.wait(Native Method)
java.base@11.0.9/java.lang.Object.wait(Object.java:328)
java.base@11.0.9/java.util.TimerThread.mainLoop(Timer.java:527)
java.base@11.0.9/java.util.TimerThread.run(Timer.java:506)
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [CommandGeneratorDestoryTimer-1604382848559] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.9/java.lang.Object.wait(Native Method)
java.base@11.0.9/java.lang.Object.wait(Object.java:328)
java.base@11.0.9/java.util.TimerThread.mainLoop(Timer.java:527)
java.base@11.0.9/java.util.TimerThread.run(Timer.java:506)
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [CommandGeneratorDestoryTimer-1604382848571] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.9/java.lang.Object.wait(Native Method)
java.base@11.0.9/java.lang.Object.wait(Object.java:328)
java.base@11.0.9/java.util.TimerThread.mainLoop(Timer.java:527)
java.base@11.0.9/java.util.TimerThread.run(Timer.java:506)
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
WARNING: The web application [ROOT] appears to have started a thread named [CommandGeneratorDestoryTimer-1604382848583] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.9/java.lang.Object.wait(Native Method)
java.base@11.0.9/java.lang.Object.wait(Object.java:328)
java.base@11.0.9/java.util.TimerThread.mainLoop(Timer.java:527)
java.base@11.0.9/java.util.TimerThread.run(Timer.java:506)
Nov 03, 2020 5:54:13 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [ROOT] created a ThreadLocal with key of type [org.apache.logging.log4j.core.script.ScriptManager$ThreadLocalScriptRunner$1] (value [org.apache.logging.log4j.core.script.ScriptManager$ThreadLocalScriptRunner$1@838e109]) and a value of type [org.apache.logging.log4j.core.script.ScriptManager.MainScriptRunner] (value [org.apache.logging.log4j.core.script.ScriptManager$MainScriptRunner@7474196]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 03, 2020 5:54:13 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [“http-nio-8080”]
Nov 03, 2020 5:54:13 AM org.dbflute.tomcat.logging.BootLogger info
INFO: Boot successful: url -> http://localhost:8080

Thank you for the info. I fixed in the next release.