[Swift-user] Need help with Integer cannot be cast to String
Michael Wilde
wilde at mcs.anl.gov
Fri Jul 12 16:48:06 CDT 2013
Hi Andrew,
I was able to run your test case under Swift 0.94 on an Intel Linux host, and it ran to completion, doing 30 app() tasks without failure. (It encountered a small problem in cleanup, but thats a separate minor issue):
===
...
Final status: Fri, 12 Jul 2013 21:35:45 +0000 Finished successfully:30
Failed to clean file://localhost/_concurrent/waitnst-60fff1d4-b1af-4de8-80b6-234512833f01-4-0
...
Starting cleanups
...
Swift finished with no errors
swift$ which swift
/software/swift-0.94-all/bin/swift
swift$ swift -version
Swift 0.94 swift-r6414 (swift modified locally) cog-r3648
===
What version of Swift were you running, on what platform? I vaguely recall a similar error, and wonder if you are running an older Swift.
Can you send us the .log file for the failing run?
Also, what version of Java were you using?
Below is the directory this created for me.
Thanks,
- Mike
swift$ cd firstdataset/
swift$ ls -lt
total 2944
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 8.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 8.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 8.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 18.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 18.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 18.4.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 12.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 12.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 12.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 28.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 28.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 28.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 29.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 29.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 29.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 0.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 0.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 0.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 1.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 23.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 1.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 1.4.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 3.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 23.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 3.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 3.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 23.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 13.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 13.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 13.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 9.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 9.4.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 9.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 17.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 27.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 21.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 21.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 21.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 27.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 27.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 6.4.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 6.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:35 17.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 6.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 17.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 20.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 20.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:35 20.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 10.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 10.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 10.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 4.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 4.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 19.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 4.4.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 14.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 19.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 19.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 14.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 14.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 26.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 26.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 26.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 22.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 22.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 22.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 11.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 11.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 11.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 24.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 24.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 24.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 5.4.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 15.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 5.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 15.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 16.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 16.4.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 2.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 25.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 16.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 5.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 7.1.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 25.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 7.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 25.2.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 2.1.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 7.4.T
-rw-rw-r-- 1 wilde wilde 40 Jul 12 16:34 15.2.T
-rw-rw-r-- 1 wilde wilde 0 Jul 12 16:34 2.2.T
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 9.NSE
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 8.NSE
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 7.NSE
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 6.NSE
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 5.NSE
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 4.NSE
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 3.NSE
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 29.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 28.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 27.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 26.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 25.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 24.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 23.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 22.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 21.NTT
-rw-r--r-- 1 wilde wilde 160 Jul 12 16:34 20.NTT
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 2.NSE
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 19.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 18.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 17.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 16.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 15.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 14.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 13.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 12.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 11.NST
-rw-r--r-- 1 wilde wilde 80 Jul 12 16:34 10.NST
-rw-r--r-- 1 wilde wilde 44 Jul 12 16:34 1.NVT
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 1.NSE
-rw-r--r-- 1 wilde wilde 28 Jul 12 16:34 1.NEV
-rw-r--r-- 1 wilde wilde 40 Jul 12 16:34 0.NSE
swift$
----- Original Message -----
> From: "Andrew Shewmaker" <agshew at gmail.com>
> To: swift-user at ci.uchicago.edu
> Sent: Friday, July 12, 2013 3:18:36 PM
> Subject: [Swift-user] Need help with Integer cannot be cast to String
>
> Hi,
>
> I'm learning how use Swift, and I'm trying to understand what I'm
> doing
> wrong that's causing this failure:
>
> java.lang.ClassCastException: java.lang.Integer cannot be cast to
> java.lang.String
>
> on line 78 of the attached usecase1.swift
>
> I don't think I'm trying to use an Integer in the line that's
> mentioned.
> Any help would be appreciated!
>
> Thanks,
>
> Andrew Shewmaker
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
More information about the Swift-user
mailing list