I submitted a short description and a stack trace on the Jira bug NIFI-4281.
The same error occurs regardless of the script’s contents, and appears to
occur during the processor construction.
Please let me know if I’m just doing something silly.
2017-08-14 14:57:56,044 ERROR [Timer-Driven Process Thread-7]
o.a.nifi.processors.script.ExecuteScript
ExecuteScript[id=e1bb3b6d-db94-10d7-994a-dac8018b4992]
ExecuteScript[id=e1bb3b6d-db94-
10d7-994a-dac8018b4992] failed to process due to
org.apache.nifi.processor.exception.ProcessException:
javax.script.ScriptException: java.lang.IndexOutOfBoundsException: Index: 1,
Size: 1;
rolling back session: {}
org.apache.nifi.processor.exception.ProcessException:
javax.script.ScriptException: java.lang.IndexOutOfBoundsException: Index: 1,
Size: 1
at
org.apache.nifi.processors.script.ExecuteScript.onTrigger(ExecuteScript.java:230)
at
org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1120)
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147)
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
at
org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
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: javax.script.ScriptException:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at org.jruby.embed.jsr223.JRubyEngine.wrapException(JRubyEngine.java:104)
at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:93)
at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:142)
at
org.apache.nifi.processors.script.ExecuteScript.onTrigger(ExecuteScript.java:222)
... 11 common frames omitted
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at
org.jruby.embed.internal.BiVariableMap.getVariable(BiVariableMap.java:270)
at org.jruby.embed.internal.BiVariableMap.put(BiVariableMap.java:334)
at org.jruby.embed.ScriptingContainer.put(ScriptingContainer.java:1185)
at org.jruby.embed.jsr223.Utils.put(Utils.java:234)
at org.jruby.embed.jsr223.Utils.preEval(Utils.java:109)
at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:88)
... 13 common frames omitted
--
View this message in context:
http://apache-nifi-users-list.2361937.n4.nabble.com/NIFI-4281-Suspected-bug-with-ExecuteScript-for-ruby-in-version-1-3-0-tp2639.html
Sent from the Apache NiFi Users List mailing list archive at Nabble.com.