[kepler-dev] [Bug 5406] New: "./kepler.sh -runwf -nogui" won't work if the workflow file path includes 'repository'

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri May 20 15:40:05 PDT 2011


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5406

           Summary: "./kepler.sh -runwf -nogui" won't work if the workflow
                    file path includes 'repository'
           Product: Kepler
           Version: 2.1.0
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build system
        AssignedTo: david.v.welker at gmail.com
        ReportedBy: jianwu at sdsc.edu
         QAContact: kepler-dev at kepler-project.org
   Estimated Hours: 0.0


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'

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list