Forget about it... The workflow parameters should be before KAR path. 2010/3/20 Josep Morer Mu?oz <josep.morer at gmail.com>
> 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. > > 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: > > > > --------------------------------------------------------------------------------------------------------------------------- > > rops at urops-laptop:~/KeplerLast$ *./kepler.sh -runwf -nogui > /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar > -r 1* > [null] /home/urops/KeplerLast > [null] Found OS Extension file: > /home/urops/KeplerLast/apple-extensions/module-info/osextension.txt > [null] DEBUG (org.kepler.Kepler:_trySaveOutModuleTree:401) Old hash is > the same as the new hash, so do not delete cache > [null] Ran additional initialization for module gui from class > org.kepler.module.gui.Initialize > [null] Ran additional initialization for module tagging from class > org.kepler.module.tagging.Initialize > [null] Ran additional initialization for module provenance from class > org.kepler.module.provenance.Initialize > [null] common tabpane configuration overridden by reporting > [null] Ran additional initialization for module reporting from class > org.kepler.module.reporting.Initialize > [null] common tabpane configuration overridden by WRM > [null] Ran additional initialization for module workflowrunmanager > from class org.kepler.module.workflowrunmanager.Initialize > [null] common tabpane configuration overridden by WRP > [null] Ran additional initialization for module wrp from class > org.kepler.module.wrp.Initialize > [null] loading: org.kepler.KeplerConfigurationApplication args: > ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit > /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar > -r 1 > [null] invoking: org.kepler.KeplerConfigurationApplication.main > [null] Kepler Initializing... > [null] Unsupported file type or connection not available: > file:/home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar > [null] Command failed > [null] java.lang.Exception: Failed to parse > "ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit > /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar > -r 1" > [null] at > ptolemy.actor.gui.ConfigurationApplication.throwArgsException(ConfigurationApplication.java:651) > [null] at > org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:288) > [null] at > org.kepler.KeplerConfigurationApplication.main(KeplerConfigurationApplication.java:582) > [null] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [null] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [null] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [null] at java.lang.reflect.Method.invoke(Method.java:592) > [null] at org.kepler.Kepler.load(Kepler.java:333) > [null] at org.kepler.Kepler.load(Kepler.java:351) > [null] at org.kepler.Kepler.parseArgsAndRun(Kepler.java:279) > [null] at org.kepler.Kepler.main(Kepler.java:181) > * [null] Caused by: ptolemy.kernel.util.IllegalActionException: > Unrecognized option: No parameter exists with name r* > [null] at > org.kepler.KeplerConfigurationApplication.parseArgs(KeplerConfigurationApplication.java:394) > [null] at > org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:193) > [null] ... 9 more > [null] java.lang.Exception: Failed to parse > "ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit > /home/urops/KeplerData/workflows/02-LotkaVolterraPredatorPreyProvenanceTEST.kar > -r 1" > [null] at > ptolemy.actor.gui.ConfigurationApplication.throwArgsException(ConfigurationApplication.java:651) > [null] at > org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:288) > [null] at > org.kepler.KeplerConfigurationApplication.main(KeplerConfigurationApplication.java:582) > [null] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [null] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [null] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [null] at java.lang.reflect.Method.invoke(Method.java:592) > [null] at org.kepler.Kepler.load(Kepler.java:333) > [null] at org.kepler.Kepler.load(Kepler.java:351) > [null] at org.kepler.Kepler.parseArgsAndRun(Kepler.java:279) > [null] at org.kepler.Kepler.main(Kepler.java:181) > [null] Caused by: ptolemy.kernel.util.IllegalActionException: > Unrecognized option: No parameter exists with name r > [null] at > org.kepler.KeplerConfigurationApplication.parseArgs(KeplerConfigurationApplication.java:394) > [null] at > org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:193) > [null] ... 9 more > Exception in thread "main" Java returned: 1 > at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:90) > at org.kepler.build.runner.Kepler.main(Kepler.java:78) > Caused by: Java returned: 1 > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) > at org.kepler.build.Run.runSuite(Run.java:298) > at org.kepler.build.Run.run(Run.java:202) > at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:86) > ... 1 more > --- Nested Exception --- > Java returned: 1 > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) > at org.kepler.build.Run.runSuite(Run.java:298) > at org.kepler.build.Run.run(Run.java:202) > at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:86) > at org.kepler.build.runner.Kepler.main(Kepler.java:78) > > > ----------------------------------------------------------------------------------------------------------------------------------- > > 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? > > Thanks. > > -- > Josep > -- Josep -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20100320/2170755f/attachment-0001.html>

