[Swift-devel] [Bug 189] New: If .kml file is empty, swift exits swiftly with cryptic error message

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Mon Mar 23 16:42:49 CDT 2009


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

           Summary: If .kml file is empty, swift exits swiftly with
                    cryptic error message
           Product: Swift
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SwiftScript language
        AssignedTo: benc at hawaga.org.uk
        ReportedBy: wilde at mcs.anl.gov


If the .kml file for a previously compiled swift script gets somehow set to
length 0 (perhaps from a ^C on a prior run, not sure...) then swift gives the
user a very confusing message:

com$ swift t.swift
Swift svn swift-r2737 cog-r2335

RunID: 20090323-1638-kg6fi441
SwiftScript trace: Hi
Progress: 
Final status: 
com$ ls -lt
total 20
-rw-r--r--  1 wilde ci-users 1641 Mar 23 16:38 t-20090323-1638-kg6fi441.log
-rw-r--r--  1 wilde ci-users  676 Mar 23 16:38 t.kml
-rw-r--r--  1 wilde ci-users  294 Mar 23 16:38 t.xml
-rw-r--r--  1 wilde ci-users   57 Mar 23 16:38 swift.log
-rw-r--r--  1 wilde ci-users   13 Mar 23 16:38 t.swift
com$ >t.kml
com$ swift t.swift
Could not start execution.
    null
com$ ls -lt *log
-rw-r--r--  1 wilde ci-users  114 Mar 23 16:38 swift.log
-rw-r--r--  1 wilde ci-users  210 Mar 23 16:38 t-20090323-1638-q8vrpyr4.log
-rw-r--r--  1 wilde ci-users 1641 Mar 23 16:38 t-20090323-1638-kg6fi441.log
com$ cat *pyr4.log
2009-03-23 16:38:45,645-0500 DEBUG Loader Detailed exception:
java.lang.NullPointerException
    at org.griphyn.vdl.karajan.Loader.compile(Loader.java:224)
    at org.griphyn.vdl.karajan.Loader.main(Loader.java:126)
com$

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



More information about the Swift-devel mailing list