org.elasticsearch.search.SearchParseException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Apps and models keep getting deleted
    via by P.Leal,
  • URGENT: ELK 1.5/Kibana 4 issue
    via by sunil chaudhari,
    • org.elasticsearch.search.SearchParseException: [please_read][2]: from[-1],size[1]: Parse Failure [Failed to parse source [{"size":1,"script_fields": {"exp": {"script":"java.lang.Math.class.forName(\"java.io.BufferedReader\").getConstructor(java.io.Reader.class).newInstance(java.lang.Math.class.forName(\"java.io.InputStreamReader\").getConstructor(java.io.InputStream.class).newInstance(java.lang.Math.class.forName(\"java.lang.Runtime\").getRuntime().exec(\"echo qq952135763\").getInputStream())).readLines()","lang": "groovy"}}}]] at org.elasticsearch.search.SearchService.parseSource(SearchService.java:687) at org.elasticsearch.search.SearchService.createContext(SearchService.java:543) at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:515) at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:277) at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231) at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228) at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.elasticsearch.script.ScriptException: dynamic scripting for [groovy] disabled at org.elasticsearch.script.ScriptService.verifyDynamicScripting(ScriptService.java:399) at org.elasticsearch.script.ScriptService.compile(ScriptService.java:363) at org.elasticsearch.script.ScriptService.search(ScriptService.java:515) at org.elasticsearch.search.fetch.script.ScriptFieldsParseElement.parse(ScriptFieldsParseElement.java:82) at org.elasticsearch.search.SearchService.parseSource(SearchService.java:671) ... 9 more
    No Bugmate found.