Last active
August 29, 2015 14:23
-
-
Save orius123/a5c2e9facf20e6d0de00 to your computer and use it in GitHub Desktop.
NPE for async loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015-06-22 11:12:58:840 2452448 [1_WorkerExecutionThread-13_101600066] INFO io.cloudslang.lang.cli.SlangCLI - Event received: SCORE_ERROR_EVENT Data is: {error_message=Error running: print_values: Error binding input: 'text', | |
Error is: Error in running script expression or variable reference, for expression: 'fromInputs['input_' + str(value)]', | |
Script exception is: javax.script.ScriptException: NameError: name 'fromInputs' is not defined in <script> at line number 1, systemContext={NEW_SPLIT_ID=cf6634d6-171e-40af-90a3-71267f9bae84, executionIdContext=101600066, FLOW_TERMINATION_TYPE=SYSTEM_FAILURE, BRANCH_DATA=[io.cloudslang.score.api.StartBranchDataContainer@5f63c5b, io.cloudslang.score.api.StartBranchDataContainer@5f63c5b], BEGIN_STEPS_MAP={simplecp.operations.print=1, simplecp.flow_system_properties_async=1}, SCORE_EVENTS_QUEUE=[io.cloudslang.score.events.ScoreEvent@1c09006a], RUNNING_PLANS_MAP={simplecp.operations.print=100000001, simplecp.flow_system_properties_async=100000003}, BRANCH_ID=cf6634d6-171e-40af-90a3-71267f9bae84:2, EXECUTION_STEP_ERROR_KEY=Error running: print_values: Error binding input: 'text', | |
Error is: Error in running script expression or variable reference, for expression: 'fromInputs['input_' + str(value)]', | |
Script exception is: javax.script.ScriptException: NameError: name 'fromInputs' is not defined in <script> at line number 1}, logMessage=Error occurred during navigation execution , SCORE_ERROR_TYPE=STEP_NAV_ERROR} | |
2015-06-22 11:12:58:840 2452448 [1_WorkerExecutionThread-14_101600066] INFO io.cloudslang.lang.cli.SlangCLI - Event received: SLANG_EXECUTION_EXCEPTION Data is: {EXECUTION_ID=101600066, PATH=0.0.0, DESCRIPTION=Error detected during step, TIMESTAMP=Mon Jun 22 11:12:58 IDT 2015, EXCEPTION=Error running: print_values: Error binding input: 'text', | |
Error is: Error in running script expression or variable reference, for expression: 'fromInputs['input_' + str(value)]', | |
Script exception is: javax.script.ScriptException: NameError: name 'fromInputs' is not defined in <script> at line number 1, STEP_TYPE=NAVIGATION, STEP_NAME=null, TYPE=SLANG_EXECUTION_EXCEPTION} | |
2015-06-22 11:12:58:840 2452448 [1_WorkerExecutionThread-13_101600066] INFO io.cloudslang.lang.cli.SlangCLI - Event received: SLANG_EXECUTION_EXCEPTION Data is: {EXECUTION_ID=101600066, PATH=0.0.1, DESCRIPTION=Error detected during step, TIMESTAMP=Mon Jun 22 11:12:58 IDT 2015, EXCEPTION=Error running: print_values: Error binding input: 'text', | |
Error is: Error in running script expression or variable reference, for expression: 'fromInputs['input_' + str(value)]', | |
Script exception is: javax.script.ScriptException: NameError: name 'fromInputs' is not defined in <script> at line number 1, STEP_TYPE=NAVIGATION, STEP_NAME=null, TYPE=SLANG_EXECUTION_EXCEPTION} | |
2015-06-22 11:12:59:461 2453069 [1_WorkerExecutionThread-15_101600066] ERROR io.cloudslang.lang.runtime.steps.AsyncLoopSteps - There was an error running the end task execution step of: 'print_values'. Error is: null | |
2015-06-22 11:12:59:461 2453069 [1_WorkerExecutionThread-15_101600066] ERROR io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl - Failed to run the action! Class: io.cloudslang.lang.runtime.steps.AsyncLoopSteps, method: joinBranches, reason: Error running: 'print_values': null | |
java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:316) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:78) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:159) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:119) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) | |
at java.util.concurrent.FutureTask.run(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | |
at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33) | |
at java.lang.Thread.run(Unknown Source) | |
Caused by: java.lang.RuntimeException: Error running: 'print_values': null | |
at io.cloudslang.lang.runtime.steps.AsyncLoopSteps.joinBranches(AsyncLoopSteps.java:143) | |
... 15 more | |
Caused by: java.lang.NullPointerException | |
at io.cloudslang.lang.runtime.steps.AsyncLoopSteps.collectBranchesData(AsyncLoopSteps.java:224) | |
at io.cloudslang.lang.runtime.steps.AsyncLoopSteps.joinBranches(AsyncLoopSteps.java:121) | |
... 15 more | |
2015-06-22 11:12:59:462 2453070 [1_WorkerExecutionThread-15_101600066] ERROR io.cloudslang.worker.execution.services.ExecutionServiceImpl - Error occurred during operation execution. Execution id: 101600066 | |
io.cloudslang.score.exceptions.FlowExecutionException: Error running: 'print_values': null | |
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:73) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:316) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:78) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:159) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:119) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) | |
at java.util.concurrent.FutureTask.run(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | |
at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33) | |
at java.lang.Thread.run(Unknown Source) | |
Caused by: java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62) | |
... 10 more | |
Caused by: java.lang.RuntimeException: Error running: 'print_values': null | |
at io.cloudslang.lang.runtime.steps.AsyncLoopSteps.joinBranches(AsyncLoopSteps.java:143) | |
... 15 more | |
Caused by: java.lang.NullPointerException | |
at io.cloudslang.lang.runtime.steps.AsyncLoopSteps.collectBranchesData(AsyncLoopSteps.java:224) | |
at io.cloudslang.lang.runtime.steps.AsyncLoopSteps.joinBranches(AsyncLoopSteps.java:121) | |
... 15 more | |
2015-06-22 11:12:59:462 2453070 [1_WorkerExecutionThread-15_101600066] ERROR io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl - Failed to run the action! Class: io.cloudslang.lang.runtime.navigations.Navigations, method: navigate, reason: Error running: 'print_values': null | |
java.lang.reflect.InvocationTargetException | |
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.navigate(ExecutionServiceImpl.java:355) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:80) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:159) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:119) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) | |
at java.util.concurrent.FutureTask.run(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | |
at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33) | |
at java.lang.Thread.run(Unknown Source) | |
Caused by: java.lang.RuntimeException: Error running: 'print_values': null | |
at io.cloudslang.lang.runtime.navigations.Navigations.navigate(Navigations.java:45) | |
... 14 more | |
2015-06-22 11:12:59:462 2453070 [1_WorkerExecutionThread-15_101600066] ERROR io.cloudslang.worker.execution.services.ExecutionServiceImpl - Error occurred during navigation execution. Execution id: 101600066 | |
io.cloudslang.score.exceptions.FlowExecutionException: Error running: 'print_values': null | |
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:73) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.navigate(ExecutionServiceImpl.java:355) | |
at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:80) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:159) | |
at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:119) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) | |
at java.util.concurrent.FutureTask.run(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | |
at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33) | |
at java.lang.Thread.run(Unknown Source) | |
Caused by: java.lang.reflect.InvocationTargetException | |
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62) | |
... 10 more | |
Caused by: java.lang.RuntimeException: Error running: 'print_values': null | |
at io.cloudslang.lang.runtime.navigations.Navigations.navigate(Navigations.java:45) | |
... 14 more | |
2015-06-22 11:12:59:462 2453070 [1_WorkerExecutionThread-15_101600066] INFO io.cloudslang.lang.cli.SlangCLI - Event received: SCORE_ERROR_EVENT Data is: {error_message=Error running: 'print_values': null, systemContext={executionIdContext=101600066, FLOW_TERMINATION_TYPE=SYSTEM_FAILURE, BEGIN_STEPS_MAP={simplecp.operations.print=1, simplecp.flow_system_properties_async=1}, SCORE_EVENTS_QUEUE=[io.cloudslang.score.events.ScoreEvent@33894834], RUNNING_PLANS_MAP={simplecp.operations.print=100000001, simplecp.flow_system_properties_async=100000003}, EXECUTION_STEP_ERROR_KEY=Error running: 'print_values': null}, logMessage=Error occurred during navigation execution , SCORE_ERROR_TYPE=STEP_NAV_ERROR} | |
2015-06-22 11:12:59:462 2453070 [1_WorkerExecutionThread-15_101600066] INFO io.cloudslang.lang.cli.SlangCLI - Event received: SLANG_EXECUTION_EXCEPTION Data is: {EXECUTION_ID=101600066, PATH=0.0, DESCRIPTION=Error detected during step, TIMESTAMP=Mon Jun 22 11:12:59 IDT 2015, EXCEPTION=Error running: 'print_values': null, STEP_TYPE=NAVIGATION, STEP_NAME=null, TYPE=SLANG_EXECUTION_EXCEPTION} | |
2015-06-22 11:12:59:562 2453170 [scoreWorkerScheduler-5] INFO io.cloudslang.lang.cli.SlangCLI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace: simplecp | |
imports: | |
ops: simplecp.operations | |
flow: | |
inputs: | |
- input_0 : | |
system_property: sys_prop_async_0 | |
default: "'System property sys_prop_async_0 not found :('" | |
overridable: false | |
required: false | |
- input_1 : | |
system_property: sys_prop_async_1 | |
default: "'System property sys_prop_async_1 not found :('" | |
overridable: false | |
required: false | |
- input_2 : | |
system_property: sys_prop_async_2 | |
default: "'System property sys_prop_async_2 not found :('" | |
overridable: false | |
required: false | |
name: flow_system_properties_async | |
workflow: | |
- print_values: | |
async_loop: | |
for: value in range(0,2) | |
do: | |
ops.print: | |
- text: fromInputs['input_' + str(value)] | |
publish: | |
- printResult: printedText | |
aggregate: | |
- answer_result0: branches_context[0]['printResult'] | |
- answer_result1: branches_context[1]['printResult'] | |
- answer_result2: branches_context[2]['printResult'] | |
outputs: | |
- returnanswer_async_0: answer_result0 | |
- returnanswer_async_1: answer_result1 | |
- returnanswer_async_2: answer_result2 | |
results: | |
- SUCCESS: 'Need functional spec' | |
- FAILURE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace: simplecp.operations | |
operation: | |
name: print | |
inputs: | |
- text | |
action: | |
python_script: | | |
returnResult="Wow man" | |
print text | |
outputs: | |
- returnResult | |
- printedText : text | |
results: | |
- SUCCESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment