[Swift-devel] [Bug 255] New: Extra field in tc file gives java exception in profile parsing

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Mon Feb 14 10:12:08 CST 2011


https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=255

           Summary: Extra field in tc file gives java exception in profile
                    parsing
           Product: Swift
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS
            Status: NEW
          Severity: minor
          Priority: P3
         Component: SwiftScript language
        AssignedTo: skenny at uchicago.edu
        ReportedBy: wilde at mcs.anl.gov


When there is one extra null field in tc.data, swift gives an ugly traceback
rather than a clear message on what was wrong, in what file.

For example if you have:

localhost cat /bin/cat null null null GLOBUS::maxwalltime="00:01:00"

instead of:

localhost cat /bin/cat null null GLOBUS::maxwalltime="00:01:00"

you get:


Parsing profiles on line 1 Illegal character ' 'at position 5
org.globus.swift.catalog.util.ProfileParserException: Illegal character ' '
        at
org.globus.swift.catalog.util.ProfileParser.parse(ProfileParser.java:181)
        at
org.globus.swift.catalog.transformation.File.populateTC(File.java:1099)
        at
org.globus.swift.catalog.transformation.File.populateTC(File.java:1034)
       (and many more lines)

The error should give the name of the file it was parsing, and should probably
say there was an extra field. There's no need for the traceback on stdout/err.

-- 
Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the reporter.



More information about the Swift-devel mailing list