[ https://issues.apache.org/jira/browse/NIFI-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16125794#comment-16125794 ]
Jeremy Lautman commented on NIFI-4281: -------------------------------------- Full log line: 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 > ExecuteScript with ruby throws IndexOutOfBoundsException on all scripts > ----------------------------------------------------------------------- > > Key: NIFI-4281 > URL: https://issues.apache.org/jira/browse/NIFI-4281 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Affects Versions: 1.3.0 > Reporter: Jeremy Lautman > > In running ExecuteScript with the following ruby script, ExecuteScript throws > IndexOutOfBoundsExceptions. > {quote}session.transfer(session.get(), REL_SUCCESS){quote} > The same script with python works appropriately. > It also does the same when using the session::get(int) variant, and when > running larger scripts. > NiFi version 1.3.0 > Java openjdk version 1.8.0_121 -- This message was sent by Atlassian JIRA (v6.4.14#64029)