Project

General

Profile

Bug #5406

"./kepler.sh -runwf -nogui" won't work if the workflow file path includes 'repository'

Added by jianwu jianwu about 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
build system
Target version:
Start date:
05/20/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5406

Description

The error message is below. After some digging, I found the reason is because of the code in org.kepler.KeplerConfigurationApplication, starting from line 437:

} else if (arg.indexOf("repository") != -1) {
int equalsIndex = arg.indexOf("=");
if (equalsIndex != -1) {
_repository = arg.substring(equalsIndex + 1, arg.length());
} else {
System.out.println("The -repository argument must be followed by '=<repository'");
StringUtilities.exit(0);
}

I'm not sure what the 'repository' parameter does and how to set it. But I think code like "if (arg.equals("-repository")) {" with its value processing should be more robust.
Similarly, if 'domain', 'username', 'password' appear in workflow file path, the execution will also fail.

Error message:

kepler:Java jianwu$ ./kepler.sh -runwf -nogui /Users/jianwu/Kepler/repository/kepler/useful-workflows/04-HelloWorld-NoGUI.xml JVM Memory = 5m 512m
setting dock icon to -Xdock:icon=/Applications/Kepler-2.2/Kepler.app/Contents/Resources/Java/common-2.2.0/resources/icons/kepler-dock-icon.png
Set environment variable: PATH = /opt/subversion/bin:/Applications/MATLAB64/MATLAB_R2010a/MATLAB_R2010a.app/bin:/Users/jianwu/Projects/hadoop/hadoop-0.20.2-cdh3u0/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin:/Users/jianwu/tools/netCDF/bin:/Users/jianwu/tools/netCDF/include:/usr/local/mysql/bin:/Users/jianwu/Projects/FUSE:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/sw/bin:/sw/sbin:/opt/subversion/bin:/Applications/MATLAB64/MATLAB_R2010a/MATLAB_R2010a.app/bin:/Users/jianwu/tools/netCDF/bin:/Users/jianwu/tools/netCDF/include:/usr/local/mysql/bin:/Users/jianwu/Projects/FUSE:/opt/local/bin:/Users/jianwu/Projects/EC2-Client/ec2-api-tools-1.3-62308/bin:/usr/X11R6/bin:/Users/jianwu/Projects/EC2-Client/ec2-api-tools-1.3-62308/bin:/Applications/Kepler-2.2/Kepler.app/Contents/Resources/Java/r-2.2.0/lib:/Applications/Kepler-2.2/Kepler.app/Contents/Resources/Java/common-2.2.0/lib/ptolemy/matlab:/Applications/Kepler-2.2/Kepler.app/Contents/Resources/Java/common-2.2.0/lib:/Applications/Kepler-2.2/Kepler.app/Contents/Resources/Java/ptolemy-8.1.0/lib/ptolemy-lib
Set environment variable: R_HOME = /Library/Frameworks/R.framework/Resources
[null] Checking for patches...
[null] Found OS Extension file: /Applications/Kepler-2.2/Kepler.app/Contents/Resources/Java/apple-extensions-2.1.0/module-info/osextension.txt
[null] loading OS extensions for OS Mac OS X with class org.kepler.osx.KeplerOSXExtension
[null] Ran additional initialization for module core from class org.kepler.module.core.Initialize
[null] Ran additional initialization for module gui from class org.kepler.module.gui.Initialize
[null] loading: org.kepler.KeplerConfigurationApplication args: ptolemy/configs/kepler/ConfigNoGUIWithCache.xml -runThenExit /Users/jianwu/Kepler/repository/kepler/useful-workflows/04-HelloWorld-NoGUI.xml
[null] invoking: org.kepler.KeplerConfigurationApplication.main
[null] Kepler Initializing...
[null] The -repository argument must be followed by '=<repository'

History

#1 Updated by Daniel Crawl about 7 years ago

fixed

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 5406

Also available in: Atom PDF