Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Current Situation
We assume that we have job with script like
<script language="javax.script:ecmascript"> <![CDATA[ function spooler_process(){ var my_job_chain = spooler.create_job_chain(); my_job_chain.set_name("test"); my_job_chain.add_job( "/test/job1", "100", "200", "999" ); my_job_chain.add_end_state( "200" ); my_job_chain.add_end_state( "999" ); return false; } ]]> </script>
then the following error is raised
[Z-JAVA-105 Java exception java.lang.RuntimeException: COM-80020009 Ausnahmefehler aufgetreten. [] [Z-JAVA-105 Java exception java.lang.NullPointerException: startNode, method=CallVoidMethodA [] (Calling Spooler.Job_chain.add_job)], method=spooler_process()Z [], in Remote_module_instance_server::step], method=call
Desired Behavior
The above api call works.
Maintainer Notes
- We recommend the use of the java:javascript scripting language instead of javax.script:javascript scripting language, as it provides better compatibility between Java versions.
Attachments
Issue Links
- relates to
-
JS-1353 JobScheduler Universal Agent: API Tests
- Resolved