Forget about it... The workflow parameters should be before KAR path.<br><br><div class="gmail_quote">2010/3/20 Josep Morer Muņoz <span dir="ltr"><<a href="mailto:josep.morer@gmail.com">josep.morer@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am trying executing the Lokterra using command line. I have created a KAR and I build a simple report layout to test it. Now, I have a problem: when I try to execute this KAR we also pass the workflow parameter named "r" with the value 1 instead of 2 which is the default one.<br>

<br>I believe, as the same way when I executed a XML workflow, we are able to modify the workflow parameters. However, I get this error:<br><br><br>---------------------------------------------------------------------------------------------------------------------------<br>

<br>rops@urops-laptop:~/KeplerLast$ <b>./kepler.sh -runwf -nogui /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar -r 1</b><br>     [null] /home/urops/KeplerLast<br>     [null] Found OS Extension file: /home/urops/KeplerLast/apple-extensions/module-info/osextension.txt<br>

     [null] DEBUG (org.kepler.Kepler:_trySaveOutModuleTree:401) Old hash is the same as the new hash, so do not delete cache<br>     [null] Ran additional initialization for module gui from class org.kepler.module.gui.Initialize<br>

     [null] Ran additional initialization for module tagging from class org.kepler.module.tagging.Initialize<br>     [null] Ran additional initialization for module provenance from class org.kepler.module.provenance.Initialize<br>

     [null] common tabpane configuration overridden by reporting<br>     [null] Ran additional initialization for module reporting from class org.kepler.module.reporting.Initialize<br>     [null] common tabpane configuration overridden by WRM<br>

     [null] Ran additional initialization for module workflowrunmanager from class org.kepler.module.workflowrunmanager.Initialize<br>     [null] common tabpane configuration overridden by WRP<br>     [null] Ran additional initialization for module wrp from class org.kepler.module.wrp.Initialize<br>

     [null] loading: org.kepler.KeplerConfigurationApplication args: ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar -r 1 <br>     [null] invoking: org.kepler.KeplerConfigurationApplication.main<br>

     [null] Kepler Initializing...<br>     [null] Unsupported file type or connection not available: file:/home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar<br>     [null] Command failed<br>     [null] java.lang.Exception: Failed to parse "ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar -r 1"<br>

     [null]     at ptolemy.actor.gui.ConfigurationApplication.throwArgsException(ConfigurationApplication.java:651)<br>     [null]     at org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:288)<br>

     [null]     at org.kepler.KeplerConfigurationApplication.main(KeplerConfigurationApplication.java:582)<br>     [null]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>     [null]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>

     [null]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>     [null]     at java.lang.reflect.Method.invoke(Method.java:592)<br>     [null]     at org.kepler.Kepler.load(Kepler.java:333)<br>

     [null]     at org.kepler.Kepler.load(Kepler.java:351)<br>     [null]     at org.kepler.Kepler.parseArgsAndRun(Kepler.java:279)<br>     [null]     at org.kepler.Kepler.main(Kepler.java:181)<br><b style="color: rgb(255, 0, 0);">     [null] Caused by: ptolemy.kernel.util.IllegalActionException: Unrecognized option: No parameter exists with name r</b><br>

     [null]     at org.kepler.KeplerConfigurationApplication.parseArgs(KeplerConfigurationApplication.java:394)<br>     [null]     at org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:193)<br>

     [null]     ... 9 more<br>     [null] java.lang.Exception: Failed to parse "ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar -r 1"<br>

     [null]     at ptolemy.actor.gui.ConfigurationApplication.throwArgsException(ConfigurationApplication.java:651)<br>     [null]     at org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:288)<br>

     [null]     at org.kepler.KeplerConfigurationApplication.main(KeplerConfigurationApplication.java:582)<br>     [null]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>     [null]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>

     [null]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>     [null]     at java.lang.reflect.Method.invoke(Method.java:592)<br>     [null]     at org.kepler.Kepler.load(Kepler.java:333)<br>

     [null]     at org.kepler.Kepler.load(Kepler.java:351)<br>     [null]     at org.kepler.Kepler.parseArgsAndRun(Kepler.java:279)<br>     [null]     at org.kepler.Kepler.main(Kepler.java:181)<br>     [null] Caused by: ptolemy.kernel.util.IllegalActionException: Unrecognized option: No parameter exists with name r<br>

     [null]     at org.kepler.KeplerConfigurationApplication.parseArgs(KeplerConfigurationApplication.java:394)<br>     [null]     at org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:193)<br>

     [null]     ... 9 more<br>Exception in thread "main" Java returned: 1<br>    at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:90)<br>    at org.kepler.build.runner.Kepler.main(Kepler.java:78)<br>

Caused by: Java returned: 1<br>    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)<br>    at org.kepler.build.Run.runSuite(Run.java:298)<br>    at org.kepler.build.Run.run(Run.java:202)<br>    at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:86)<br>

    ... 1 more<br>--- Nested Exception ---<br>Java returned: 1<br>    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)<br>    at org.kepler.build.Run.runSuite(Run.java:298)<br>    at org.kepler.build.Run.run(Run.java:202)<br>

    at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:86)<br>    at org.kepler.build.runner.Kepler.main(Kepler.java:78)<br><br>-----------------------------------------------------------------------------------------------------------------------------------<br>

<br>I need to pass diferent workflow parameters values than default ones that are inside the workflow. Have I miss something or am I wrong with the syntax?<br><br>Thanks.<br clear="all"><br>-- <br><font color="#888888">Josep<br>

</font></blockquote></div><br><br clear="all"><br>-- <br>Josep<br>