Hi all,<br><br>Can anyone reply to my question?<br><br>Thanks<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Josep Morer Muņoz</b> <span dir="ltr"><<a href="mailto:josep.morer@gmail.com">josep.morer@gmail.com</a>></span><br>
Date: 2010/6/28<br>Subject: How to pass String and File Parameters using Command Line<br>To: Kepler Users <<a href="mailto:kepler-users@kepler-project.org">kepler-users@kepler-project.org</a>><br><br><br>Hi all,<br>
<br>I am having problems when I try to execute a KAR using the command line with String and File Parameters. As I understand, when a parameter is a number, you put -parameter 2 f.e and if it is a string or a file path, you put -parameter "string". However, for string and file parameters does not work because I am having errors like this:<br>
<br>urops@ubuntu:~/KeplerLastVersion$ ./kepler.sh -runwf -nogui -stepsrmsd 42 -ExecutionId 35 -namejob 'SEPT09' -numclustersrmsd 5 /home/urops/CBI/Projectes/2/Execucions/35/KeplerMDAnalyser-Module1-RMSD-CBI[0].kar<br>
[null] /home/urops/KeplerLastVersion<br> [null] Found OS Extension file: /home/urops/KeplerLastVersion/apple-extensions/module-info/osextension.txt<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 workflow-run-manager<br> [null] Ran additional initialization for module workflowrunmanager from class org.kepler.module.workflowrunmanager.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] loading: org.kepler.KeplerConfigurationApplication args: ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit -stepsrmsd 42 -ExecutionId 35 -namejob SEPT09 -numclustersrmsd <br>
[null] invoking: org.kepler.KeplerConfigurationApplication.main<br> [null] Kepler Initializing...<br> [null] Command failed<br> [null] java.lang.Exception: Failed to parse "ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit -stepsrmsd 42 -ExecutionId 35 -namejob SEPT09 -numclustersrmsd"<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:57)<br>
[null] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> [null] at java.lang.reflect.Method.invoke(Method.java:616)<br> [null] at org.kepler.Kepler.load(Kepler.java:362)<br>
[null] at org.kepler.Kepler.load(Kepler.java:380)<br> [null] at org.kepler.Kepler.parseArgsAndRun(Kepler.java:308)<br> [null] at org.kepler.Kepler.main(Kepler.java:210)<br> [null] Caused by: ptolemy.kernel.util.IllegalActionException: Cannot set parameter -numclustersrmsd when no value is given.<br>
[null] at org.kepler.KeplerConfigurationApplication.parseArgs(KeplerConfigurationApplication.java:308)<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 -stepsrmsd 42 -ExecutionId 35 -namejob SEPT09 -numclustersrmsd"<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:57)<br> [null] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
[null] at java.lang.reflect.Method.invoke(Method.java:616)<br> [null] at org.kepler.Kepler.load(Kepler.java:362)<br> [null] at org.kepler.Kepler.load(Kepler.java:380)<br> [null] at org.kepler.Kepler.parseArgsAndRun(Kepler.java:308)<br>
[null] at org.kepler.Kepler.main(Kepler.java:210)<br> [null] Caused by: ptolemy.kernel.util.IllegalActionException: Cannot set parameter -numclustersrmsd when no value is given.<br> [null] at org.kepler.KeplerConfigurationApplication.parseArgs(KeplerConfigurationApplication.java:308)<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:105)<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:101)<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:101)<br> at org.kepler.build.runner.Kepler.main(Kepler.java:78)<br> <br>I get this error when I try to pass a String or File parameter with "". Any idea?<br>
<br>Thanks<br>-- <br><font color="#888888">Josep<br>
</font></div><br><br clear="all"><br>-- <br>Josep<br>