[Swift-devel] [Fwd: [Bug 189] New: If .kml file is empty, swift exits swiftly with cryptic error message]
Michael Wilde
wilde at mcs.anl.gov
Mon Mar 23 16:47:24 CDT 2009
This is the problem, Glen.
Somehow oops.kml got zeroed out, its a zero-length file.
So rm oops.kml oops.xml
and try again.
If you do an ls -lt on your swift dir, you can see where things stopped
working around 15:41, the time that oops.kml was last written to.
I filed a bug report to clean up this error handling. It should say "oh,
empty kml file, i gotta recompile".
- Mike
-------- Original Message --------
Subject: [Bug 189] New: If .kml file is empty, swift exits swiftly with
cryptic error message
Date: Mon, 23 Mar 2009 16:42:49 -0500 (CDT)
From: bugzilla-daemon at mcs.anl.gov
To: wilde at mcs.anl.gov
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 reported the bug.
More information about the Swift-devel
mailing list