[jira] [Commented] (NIFI-4281) ExecuteScript with ruby throws IndexOutOfBoundsException on all scripts

2017-08-15 Thread Jeremy Lautman (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16127549#comment-16127549
 ] 

Jeremy Lautman commented on NIFI-4281:
--

Thanks for the template! I was able to get the template working on my system, 
which means I must have been doing something else wrong. This ticket can 
probably be closed out.

> 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
>Priority: Critical
> Attachments: Test_ExecuteScript_Ruby_JW1.xml
>
>
> 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)


[jira] [Commented] (NIFI-4281) ExecuteScript with ruby throws IndexOutOfBoundsException on all scripts

2017-08-14 Thread James Wing (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16126782#comment-16126782
 ] 

James Wing commented on NIFI-4281:
--

I have not yet been able to reproduce this issue on NiFi 1.3.0 with Java 
Openjdk 1.8.0_141 on Amazon Linux.  I have attached my attempted repro as a 
flowfile template ([^Test_ExecuteScript_Ruby_JW1.xml]).  Does it look like 
yours?  Does it result in the exception in your environment?  Are you able to 
provide a template of your ExecuteScript processor as it fails now?


> 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
>Priority: Critical
> Attachments: Test_ExecuteScript_Ruby_JW1.xml
>
>
> 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)


[jira] [Commented] (NIFI-4281) ExecuteScript with ruby throws IndexOutOfBoundsException on all scripts

2017-08-14 Thread Jeremy Lautman (JIRA)

[ 
https://issues.apache.org/jira/browse/NIFI-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)