Ingest-convert.sh getting exception while running the tool

I am getting exception while running the ingest-convert tool that converts elastic search parsing json to logstash configuration.

Exception in thread "main" javax.script.ScriptException: TypeError: Cannot read property "map" from undefined in at line number 78
at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:470)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:392)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190)
at org.logstash.ingest.JsUtil.convert(JsUtil.java:104)
at org.logstash.ingest.Pipeline.main(Pipeline.java:35)
Caused by: :78 TypeError: Cannot read property "map" from undefined
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:213)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:185)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:172)
at jdk.nashorn.internal.runtime.Undefined.get(Undefined.java:157)
at jdk.nashorn.internal.scripts.Script$Recompilation$12$101AA$^eval_.ingest_pipeline_to_logstash(:78)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:641)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386)
... 3 more

I would like some help to resolve the issue. It seems like the exception coming at json parser lib used in the tool.

Looking forward to hear. Thanks in advance

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.