Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Workflow
    • Labels:
      None

      Description

      [junit] java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: ElasticsearchStatusException[Elasticsearch exception [type=illegal_argument_exception, reason=failed to execute script]]; nested: ElasticsearchException[Elasticsearch exception [type=script_exception, reason=runtime error]]; nested: ElasticsearchException[Elasticsearch exception [type=null_pointer_exception, reason=cannot access method/field [find] from a null def reference]];
          [junit] 	at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:176) ~[?:?]
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2011) ~[?:?]
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1988) ~[?:?]
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1745) ~[?:?]
          [junit] 	at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1702) ~[?:?]
      

      Logs | Range


      Failure previously investigated:

      Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:9201], URI [/liferay-20099-workflow-metrics-processes/_update/WorkflowMetricsProcessfc26556a61ced06909a518f79c5980cb876c217b1867fb2abe1fb96ce24ead2a?timeout=1m], status line [HTTP/1.1 400 Bad Request]
       [parallel] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"failed to execute script"}],"type":"illegal_argument_exception","reason":"failed to execute script","caused_by":{"type":"script_exception","reason":"runtime error","script_stack":["version -> version.equals(params.version));\n\n\t","^---- HERE"],"script":"if (ctx._source.versions instanceof String) {\n\tif (!params.version.equals(ctx._source.versions)) {\n\t\tctx._source.versions = new String[] {\n\t\t\tctx._source.versions, params.version\n\t\t};\n\t}\n}\nelse {\n\tdef version = ctx._source.versions.find(version -> version.equals(params.version));\n\n\tif (version == null) {\n\t\tctx._source.versions.add(params.version);\n\t}\n}","lang":"painless","position":{"offset":237,"start":237,"end":283},"caused_by":{"type":"null_pointer_exception","reason":null}}},"status":400}
      

      Github |Log

        Attachments

          Activity

            People

            Assignee:
            team-workflow Product Team Workflow
            Reporter:
            ana.buchmann Ana Buchmann
            Participants of an Issue:
            Recent user:
            Ana Buchmann
            Engineering Assignee:
            Rafael Praxedes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 weeks, 1 day ago

                Packages

                Version Package
                Master