It seems you are not using a client but a data node? You can not expect a data node in a web app context with an index works, because in this case for example, your Tomcat wants to use an index setting/mapping for an internal leakage check, which is doomed to fail.
Jörg On Mon, Apr 7, 2014 at 5:47 PM, Doru Sular <[email protected]> wrote: > > Hello everybody, > I am using elasticsearch embedded in my web application. I start the node > via ContextListener method contextInitialized and I call node.stop() in > contextDestroyed method of my ServletContextListener implementation. > > However, the following message appear in the logs: > > > Apr 07, 2014 5:39:38 PM org.apache.catalina.loader.WebappClassLoader >> checkThreadLocalMapForLeaks >> java.lang.IllegalArgumentException: Illegal shift value, must be 0..63 >> at >> org.apache.lucene.util.NumericUtils.longToPrefixCoded(NumericUtils.java:114) >> at >> org.apache.lucene.analysis.NumericTokenStream$NumericTermAttributeImpl.reflectWith(NumericTokenStream.java:199) >> at >> org.apache.lucene.util.AttributeSource.reflectAsString(AttributeSource.java:430) >> at >> org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks(WebappClassLoader.java:2521) >> at >> org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1996) >> at >> org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:662) >> at >> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5616) >> at >> org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575) >> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) >> at java.lang.Thread.run(Unknown Source) >> >> > I am using elasticsearch version 1.0.1. > > Do you have any idea how I can shutdown ES in a friendly way? > Thank you very much > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/2fa44b2d-9da6-4e77-89ac-6e03682240d1%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/2fa44b2d-9da6-4e77-89ac-6e03682240d1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEeFW2YdHKX7ks6fuKYubR2C%3D4c5xpB-5c6NgenkWpr%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
