From agshew at gmail.com Mon Jul 1 16:23:33 2013 From: agshew at gmail.com (Andrew Shewmaker) Date: Mon, 1 Jul 2013 15:23:33 -0600 Subject: [Swift-user] error in capitalise.swift when following tutorial on Mac Message-ID: Hi, I like the look of swift, but I've run into an issue as I'm learning about it. I'm obviously doing something wrong, but I can't seem to see it. I've attached my version of capitalise.swift and tc.data and some files generated by the execution. Any help would be appreciated. I've been able to run a few of the example swift programs on my Mac (latest version), but when I try capitilise.swift, I get: stderr.txt: /var/tmp/capitalise-20130701-1448-bcjykob9/shared/_swiftwrap: line 507: : command not found stdout.txt: Caused by: Application /usr/bin/tr failed with an exit code of 127 capitalise, capitalise.swift, line 15 I did add tr to the tc.data file, and tr works when run by hand. With verbosity, I see: TASK_DEFINITION: Task(type=JOB_SUBMISSION, identity=urn:0-1-1-1372713225973) is /bin/bash shared/_swiftwrap tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] Submit: in: /var/tmp/capitalise-20130701-1513-3sldolzb command: /bin/bash /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] jobs queued: 0 jobs queued: 0 FAILURE jobid=tr-btzz0qbl - Failure file found jobs queued: 0 jobs queued: 0 jobs queued: 0 jobs queued: 0 NO_STATUS_FILE jobid=tr-btzz0qbl - Error file missing jobs queued: 0 jobs queued: 0 jobs queued: 0 jobs queued: 0 jobs queued: 0 END_FAILURE thread=0-1 tr=tr Execution failed: Exception in tr: Arguments: [[a-z], [A-Z]] Host: localhost Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl stderr.txt: /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line 507: : command not found stdout.txt: Caused by: Application /usr/bin/tr failed with an exit code of 127 capitalise, capitalise.swift, line 15 Detailed exception: Exception in tr: Arguments: [[a-z], [A-Z]] Host: localhost Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl stderr.txt: /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line 507: : command not found stdout.txt: Caused by: Application /usr/bin/tr failed with an exit code of 127 Thanks, Andrew Shewmaker -------------- next part -------------- A non-text attachment was scrubbed... Name: capitalise.tgz Type: application/x-gzip Size: 7366 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tc.data Type: application/octet-stream Size: 1144 bytes Desc: not available URL: From wilde at mcs.anl.gov Mon Jul 1 16:35:53 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Mon, 1 Jul 2013 16:35:53 -0500 (CDT) Subject: [Swift-user] error in capitalise.swift when following tutorial on Mac In-Reply-To: Message-ID: <968442721.7122681.1372714553430.JavaMail.root@mcs.anl.gov> Andrew, I suspect (but am not yet sure) that you've discovered a bug in Swift argument passing. A member of the team is looking into this. Thanks for the report. - Mike ----- Original Message ----- > From: "Andrew Shewmaker" > To: swift-user at ci.uchicago.edu > Sent: Monday, July 1, 2013 4:23:33 PM > Subject: [Swift-user] error in capitalise.swift when following tutorial on Mac > > Hi, > > I like the look of swift, but I've run into an issue as I'm learning > about it. > I'm obviously doing something wrong, but I can't seem to see it. I've > attached my version of capitalise.swift and tc.data and some files > generated > by the execution. Any help would be appreciated. > > I've been able to run a few of the example swift programs > on my Mac (latest version), but when I try capitilise.swift, I get: > > stderr.txt: > /var/tmp/capitalise-20130701-1448-bcjykob9/shared/_swiftwrap: line > 507: : command not found > stdout.txt: > Caused by: > Application /usr/bin/tr failed with an exit code of 127 > capitalise, capitalise.swift, line 15 > > > I did add tr to the tc.data file, and tr works when run by hand. > With verbosity, I see: > > TASK_DEFINITION: Task(type=JOB_SUBMISSION, > identity=urn:0-1-1-1372713225973) is /bin/bash shared/_swiftwrap > tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt > -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of > capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] > Submit: in: /var/tmp/capitalise-20130701-1513-3sldolzb command: > /bin/bash > /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap > tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt > -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of > capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] > > jobs queued: 0 > jobs queued: 0 > FAILURE jobid=tr-btzz0qbl - Failure file found > jobs queued: 0 > jobs queued: 0 > jobs queued: 0 > jobs queued: 0 > NO_STATUS_FILE jobid=tr-btzz0qbl - Error file missing > jobs queued: 0 > jobs queued: 0 > jobs queued: 0 > jobs queued: 0 > jobs queued: 0 > END_FAILURE thread=0-1 tr=tr > Execution failed: > Exception in tr: > Arguments: [[a-z], [A-Z]] > Host: localhost > Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl > stderr.txt: > /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line > 507: : command not found > stdout.txt: > Caused by: > Application /usr/bin/tr failed with an exit code of 127 > capitalise, capitalise.swift, line 15 > Detailed exception: > Exception in tr: > Arguments: [[a-z], [A-Z]] > Host: localhost > Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl > stderr.txt: > /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line > 507: : command not found > stdout.txt: > Caused by: Application /usr/bin/tr failed with an exit code of 127 > > Thanks, > > Andrew Shewmaker > > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user From yadudoc1729 at gmail.com Mon Jul 1 19:49:08 2013 From: yadudoc1729 at gmail.com (Yadu Nand) Date: Mon, 1 Jul 2013 19:49:08 -0500 Subject: [Swift-user] error in capitalise.swift when following tutorial on Mac In-Reply-To: <968442721.7122681.1372714553430.JavaMail.root@mcs.anl.gov> References: <968442721.7122681.1372714553430.JavaMail.root@mcs.anl.gov> Message-ID: Hi Andrew, Thanks for reporting this. We have a intermediate fix for the bug. If you could please copy the following file : http://ci.uchicago.edu/~wilde/_swiftwrap to the libexec folder in the 0.94 release folder, the bug should be fixed. This is a Mac only bug which which uses an app with stdin. Please let us know that if that works for you, or if you need any help. Thanks, Yadu On Mon, Jul 1, 2013 at 4:35 PM, Michael Wilde wrote: > Andrew, I suspect (but am not yet sure) that you've discovered a bug in Swift argument passing. > > A member of the team is looking into this. Thanks for the report. > > - Mike > > ----- Original Message ----- >> From: "Andrew Shewmaker" >> To: swift-user at ci.uchicago.edu >> Sent: Monday, July 1, 2013 4:23:33 PM >> Subject: [Swift-user] error in capitalise.swift when following tutorial on Mac >> >> Hi, >> >> I like the look of swift, but I've run into an issue as I'm learning >> about it. >> I'm obviously doing something wrong, but I can't seem to see it. I've >> attached my version of capitalise.swift and tc.data and some files >> generated >> by the execution. Any help would be appreciated. >> >> I've been able to run a few of the example swift programs >> on my Mac (latest version), but when I try capitilise.swift, I get: >> >> stderr.txt: >> /var/tmp/capitalise-20130701-1448-bcjykob9/shared/_swiftwrap: line >> 507: : command not found >> stdout.txt: >> Caused by: >> Application /usr/bin/tr failed with an exit code of 127 >> capitalise, capitalise.swift, line 15 >> >> >> I did add tr to the tc.data file, and tr works when run by hand. >> With verbosity, I see: >> >> TASK_DEFINITION: Task(type=JOB_SUBMISSION, >> identity=urn:0-1-1-1372713225973) is /bin/bash shared/_swiftwrap >> tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt >> -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of >> capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] >> Submit: in: /var/tmp/capitalise-20130701-1513-3sldolzb command: >> /bin/bash >> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap >> tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt >> -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of >> capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] >> >> jobs queued: 0 >> jobs queued: 0 >> FAILURE jobid=tr-btzz0qbl - Failure file found >> jobs queued: 0 >> jobs queued: 0 >> jobs queued: 0 >> jobs queued: 0 >> NO_STATUS_FILE jobid=tr-btzz0qbl - Error file missing >> jobs queued: 0 >> jobs queued: 0 >> jobs queued: 0 >> jobs queued: 0 >> jobs queued: 0 >> END_FAILURE thread=0-1 tr=tr >> Execution failed: >> Exception in tr: >> Arguments: [[a-z], [A-Z]] >> Host: localhost >> Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl >> stderr.txt: >> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line >> 507: : command not found >> stdout.txt: >> Caused by: >> Application /usr/bin/tr failed with an exit code of 127 >> capitalise, capitalise.swift, line 15 >> Detailed exception: >> Exception in tr: >> Arguments: [[a-z], [A-Z]] >> Host: localhost >> Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl >> stderr.txt: >> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line >> 507: : command not found >> stdout.txt: >> Caused by: Application /usr/bin/tr failed with an exit code of 127 >> >> Thanks, >> >> Andrew Shewmaker >> >> _______________________________________________ >> Swift-user mailing list >> Swift-user at ci.uchicago.edu >> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user -- Yadu Nand B From agshew at gmail.com Tue Jul 2 10:28:05 2013 From: agshew at gmail.com (Andrew Shewmaker) Date: Tue, 2 Jul 2013 09:28:05 -0600 Subject: [Swift-user] error in capitalise.swift when following tutorial on Mac In-Reply-To: References: <968442721.7122681.1372714553430.JavaMail.root@mcs.anl.gov> Message-ID: Thanks Yadu, that fixed it. On Mon, Jul 1, 2013 at 6:49 PM, Yadu Nand wrote: > Hi Andrew, > > Thanks for reporting this. We have a intermediate fix for the bug. > > If you could please copy the following file : > http://ci.uchicago.edu/~wilde/_swiftwrap to the libexec folder in the > 0.94 release folder, the bug should be fixed. > > This is a Mac only bug which which uses an app with stdin. Please let > us know that if that works for you, or if you need any help. > > Thanks, > Yadu > > On Mon, Jul 1, 2013 at 4:35 PM, Michael Wilde wrote: >> Andrew, I suspect (but am not yet sure) that you've discovered a bug in Swift argument passing. >> >> A member of the team is looking into this. Thanks for the report. >> >> - Mike >> >> ----- Original Message ----- >>> From: "Andrew Shewmaker" >>> To: swift-user at ci.uchicago.edu >>> Sent: Monday, July 1, 2013 4:23:33 PM >>> Subject: [Swift-user] error in capitalise.swift when following tutorial on Mac >>> >>> Hi, >>> >>> I like the look of swift, but I've run into an issue as I'm learning >>> about it. >>> I'm obviously doing something wrong, but I can't seem to see it. I've >>> attached my version of capitalise.swift and tc.data and some files >>> generated >>> by the execution. Any help would be appreciated. >>> >>> I've been able to run a few of the example swift programs >>> on my Mac (latest version), but when I try capitilise.swift, I get: >>> >>> stderr.txt: >>> /var/tmp/capitalise-20130701-1448-bcjykob9/shared/_swiftwrap: line >>> 507: : command not found >>> stdout.txt: >>> Caused by: >>> Application /usr/bin/tr failed with an exit code of 127 >>> capitalise, capitalise.swift, line 15 >>> >>> >>> I did add tr to the tc.data file, and tr works when run by hand. >>> With verbosity, I see: >>> >>> TASK_DEFINITION: Task(type=JOB_SUBMISSION, >>> identity=urn:0-1-1-1372713225973) is /bin/bash shared/_swiftwrap >>> tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt >>> -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of >>> capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] >>> Submit: in: /var/tmp/capitalise-20130701-1513-3sldolzb command: >>> /bin/bash >>> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap >>> tr-btzz0qbl -jobdir b -scratch -e /usr/bin/tr -out capitalise.2.txt >>> -err stderr.txt -i capitalise.1.txt -d -if capitalise.1.txt -of >>> capitalise.2.txt -k -cdmfile -status files -a [a-z] [A-Z] >>> >>> jobs queued: 0 >>> jobs queued: 0 >>> FAILURE jobid=tr-btzz0qbl - Failure file found >>> jobs queued: 0 >>> jobs queued: 0 >>> jobs queued: 0 >>> jobs queued: 0 >>> NO_STATUS_FILE jobid=tr-btzz0qbl - Error file missing >>> jobs queued: 0 >>> jobs queued: 0 >>> jobs queued: 0 >>> jobs queued: 0 >>> jobs queued: 0 >>> END_FAILURE thread=0-1 tr=tr >>> Execution failed: >>> Exception in tr: >>> Arguments: [[a-z], [A-Z]] >>> Host: localhost >>> Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl >>> stderr.txt: >>> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line >>> 507: : command not found >>> stdout.txt: >>> Caused by: >>> Application /usr/bin/tr failed with an exit code of 127 >>> capitalise, capitalise.swift, line 15 >>> Detailed exception: >>> Exception in tr: >>> Arguments: [[a-z], [A-Z]] >>> Host: localhost >>> Directory: capitalise-20130701-1513-3sldolzb/jobs/b/tr-btzz0qbl >>> stderr.txt: >>> /var/tmp/capitalise-20130701-1513-3sldolzb/shared/_swiftwrap: line >>> 507: : command not found >>> stdout.txt: >>> Caused by: Application /usr/bin/tr failed with an exit code of 127 >>> >>> Thanks, >>> >>> Andrew Shewmaker >>> >>> _______________________________________________ >>> Swift-user mailing list >>> Swift-user at ci.uchicago.edu >>> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user >> _______________________________________________ >> Swift-user mailing list >> Swift-user at ci.uchicago.edu >> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > > > > -- > Yadu Nand B -- Andrew Shewmaker From nkrjnishu01 at gmail.com Thu Jul 4 03:50:06 2013 From: nkrjnishu01 at gmail.com (Nikhil Raj) Date: Thu, 4 Jul 2013 14:20:06 +0530 Subject: [Swift-user] locally running parallel code Message-ID: hi, this is nikhil and i am using swift for running a program. The problem i want to calculate the solution parallely using local multiple processor,but when i give the command it is just taking each problem at a time and not parallely.I have a multi core processor and i want each cpu solving diffrent problem at the same time but it is just using one of them and calculating one by one.pls help me out asap. my program type messagefile; app (messagefile t) solve_instance(string fname) { bnb fname stdout=@filename(t); } string name ="b.txt c.txt"; messagefile fi[]; string prob[]=["/home/nikhil/BatchS121208M.nl","/home/nikhil/BatchS151208M.nl"]; foreach f in prob{ messagefile c; c=solve_instance(f); } bnb is a slover i am using to solve the problem."BatchS121208M.nl" is the problem file name. I am attaching various log files and also the files which i think may be problem because of which my code is not running properly. look inti sites.xml may be there is some prob -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: minotaur-single.kml Type: application/vnd.google-earth.kml+xml Size: 6091 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: minotaur-single.swiftx Type: application/octet-stream Size: 2340 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: minotaur-single-20130704-1409-hvnhyhb3.log Type: application/octet-stream Size: 19315 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sites.xml Type: text/xml Size: 4550 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: swift.log Type: application/octet-stream Size: 223 bytes Desc: not available URL: From wozniak at mcs.anl.gov Thu Jul 4 09:25:37 2013 From: wozniak at mcs.anl.gov (Justin M Wozniak) Date: Thu, 04 Jul 2013 09:25:37 -0500 Subject: [Swift-user] locally running parallel code In-Reply-To: References: Message-ID: <51D585E1.4080304@mcs.anl.gov> Hi Nikhil Did you try modifying jobThrottle? Justin On 7/4/2013 3:50 AM, Nikhil Raj wrote: > > hi, > this is nikhil and i am using swift for running a program. The > problem i want to calculate the solution parallely using local > multiple processor,but when i give the > command it is just taking each problem at a time and not > parallely.I have a multi core processor and i want each cpu solving > diffrent problem at the same time > but it is just using one of them and calculating one by one.pls > help me out asap. > > > my program > > type messagefile; > > app (messagefile t) solve_instance(string fname) { > bnb fname stdout=@filename(t); > } > string name ="b.txt c.txt"; > messagefile fi[]; > string > prob[]=["/home/nikhil/BatchS121208M.nl","/home/nikhil/BatchS151208M.nl"]; > foreach f in prob{ > messagefile c source=@f, > match="(.*)nl", > transform="\\1txt">; > c=solve_instance(f); > } > > bnb is a slover i am using to solve the problem."BatchS121208M.nl" is > the problem file name. > I am attaching various log files and also the files which i think may > be problem because of which my code is not running properly. > look inti sites.xml may be there is some prob > > > > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user -- Justin M Wozniak From wilde at mcs.anl.gov Thu Jul 4 09:31:14 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Thu, 4 Jul 2013 09:31:14 -0500 (CDT) Subject: [Swift-user] locally running parallel code In-Reply-To: Message-ID: <924997554.7660571.1372948274885.JavaMail.root@mcs.anl.gov> Nikhil, the problem is most likely the jobThrottle value in your sites.xml file. The default sites file entry for pool "localhost" specifies jobThrottle=0 : 0 Copy the sites file from your swift/ release directory (e.g. swift-0.94/etc) to the directory in which you are running swift, and replace the line above with these two lines: .07 10000 The run swift with the -sites.file option specifying your local copy of sites: swift -sites.file sites.xml myscript.swift # etc The max number of jobs that Swift will send to each site (each "pool" in the sites file) is (jobThrottle + 1) * 100. This is explained in the User Guide section that explains Swift properties. So the value above of .07 will allow up to 8 jobs at a time to be sent to the pool. If you want to run 16 jobs at one, use .15, 32 jobs at once, use .31, etc. The reason for this odd convention is historical: Swift originally was developed to send jobs to grid sites where the optimal number of jobs to send had to be discovered dynamically. The initialScore value of 10000 essentially disables this outdated algorithm and lets you set the number of concurrent jobs directly via jobThrottle. This will be made simpler and more clear in a future release of Swift. - Mike ----- Original Message ----- > From: "Nikhil Raj" > To: swift-user at ci.uchicago.edu > Sent: Thursday, July 4, 2013 3:50:06 AM > Subject: [Swift-user] locally running parallel code > > > > > > hi, > this is nikhil and i am using swift for running a program. The > problem i want to calculate the solution parallely using local > multiple processor,but when i give the > command it is just taking each problem at a time and not parallely.I > have a multi core processor and i want each cpu solving diffrent > problem at the same time > but it is just using one of them and calculating one by one.pls help > me out asap. > > > > my program > > > type messagefile; > > app (messagefile t) solve_instance(string fname) { > bnb fname stdout=@filename(t); > } > string name ="b.txt c.txt"; > messagefile fi[]; > string > prob[]=["/home/nikhil/BatchS121208M.nl","/home/nikhil/BatchS151208M.nl"]; > foreach f in prob{ > messagefile c source=@f, > match="(.*)nl", > transform="\\1txt">; > c=solve_instance(f); > } > > bnb is a slover i am using to solve the problem."BatchS121208M.nl" is > the problem file name. > I am attaching various log files and also the files which i think may > be problem because of which my code is not running properly. > look inti sites.xml may be there is some prob > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user From agshew at gmail.com Fri Jul 12 15:18:36 2013 From: agshew at gmail.com (Andrew Shewmaker) Date: Fri, 12 Jul 2013 14:18:36 -0600 Subject: [Swift-user] Need help with Integer cannot be cast to String Message-ID: 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: swiftdemo.tgz Type: application/x-gzip Size: 28103 bytes Desc: not available URL: From wilde at mcs.anl.gov Fri Jul 12 16:48:06 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Fri, 12 Jul 2013 16:48:06 -0500 (CDT) Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: Message-ID: <799380102.9500574.1373665686968.JavaMail.root@mcs.anl.gov> 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" > 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 From wilde at mcs.anl.gov Fri Jul 12 17:11:18 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Fri, 12 Jul 2013 17:11:18 -0500 (CDT) Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: <799380102.9500574.1373665686968.JavaMail.root@mcs.anl.gov> Message-ID: <82670304.9502551.1373667078149.JavaMail.root@mcs.anl.gov> I should also note that I was running under this Java: swift$ java -version java version "1.7.0_17" Java(TM) SE Runtime Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) swift$ - Mike ----- Original Message ----- > From: "Michael Wilde" > To: "Andrew Shewmaker" > Cc: swift-user at ci.uchicago.edu > Sent: Friday, July 12, 2013 4:48:06 PM > Subject: Re: [Swift-user] Need help with Integer cannot be cast to String > > 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" > > 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 > From wilde at mcs.anl.gov Fri Jul 12 17:16:01 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Fri, 12 Jul 2013 17:16:01 -0500 (CDT) Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: <82670304.9502551.1373667078149.JavaMail.root@mcs.anl.gov> Message-ID: <989752643.9502680.1373667361693.JavaMail.root@mcs.anl.gov> Andrew, sorry - I see that I need to uncomment the offending statement. I can reproduce the error now and will look into it. - Mike ----- Original Message ----- > From: "Michael Wilde" > To: "Andrew Shewmaker" > Cc: swift-user at ci.uchicago.edu > Sent: Friday, July 12, 2013 5:11:18 PM > Subject: Re: [Swift-user] Need help with Integer cannot be cast to String > > I should also note that I was running under this Java: > > swift$ java -version > java version "1.7.0_17" > Java(TM) SE Runtime Environment (build 1.7.0_17-b02) > Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) > swift$ > > - Mike > > ----- Original Message ----- > > From: "Michael Wilde" > > To: "Andrew Shewmaker" > > Cc: swift-user at ci.uchicago.edu > > Sent: Friday, July 12, 2013 4:48:06 PM > > Subject: Re: [Swift-user] Need help with Integer cannot be cast to > > String > > > > 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" > > > 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 > > > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > From agshew at gmail.com Fri Jul 12 17:49:35 2013 From: agshew at gmail.com (Andrew Shewmaker) Date: Fri, 12 Jul 2013 16:49:35 -0600 Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: <989752643.9502680.1373667361693.JavaMail.root@mcs.anl.gov> References: <82670304.9502551.1373667078149.JavaMail.root@mcs.anl.gov> <989752643.9502680.1373667361693.JavaMail.root@mcs.anl.gov> Message-ID: Sorry, I should have said that I was running: ./usecase1.sh -filter=1 -clean=1 I'm using Mac OS X Snow Leopard and swift 0.94 ... with an updated script _swiftwrap from my previous bug report. I also tried it with a version of Swift I built from the repo, but I should have tried it on Linux too. java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode Hmmm ... I thought I had updated Java already. Thanks for your help, Michael! Did it error out on one of the processDataSet() calls for you? -Andrew On Fri, Jul 12, 2013 at 4:16 PM, Michael Wilde wrote: > Andrew, sorry - I see that I need to uncomment the offending statement. > > I can reproduce the error now and will look into it. > > - Mike > > ----- Original Message ----- >> From: "Michael Wilde" >> To: "Andrew Shewmaker" >> Cc: swift-user at ci.uchicago.edu >> Sent: Friday, July 12, 2013 5:11:18 PM >> Subject: Re: [Swift-user] Need help with Integer cannot be cast to String >> >> I should also note that I was running under this Java: >> >> swift$ java -version >> java version "1.7.0_17" >> Java(TM) SE Runtime Environment (build 1.7.0_17-b02) >> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) >> swift$ >> >> - Mike >> >> ----- Original Message ----- >> > From: "Michael Wilde" >> > To: "Andrew Shewmaker" >> > Cc: swift-user at ci.uchicago.edu >> > Sent: Friday, July 12, 2013 4:48:06 PM >> > Subject: Re: [Swift-user] Need help with Integer cannot be cast to >> > String >> > >> > 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" >> > > 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 >> > >> _______________________________________________ >> Swift-user mailing list >> Swift-user at ci.uchicago.edu >> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user >> -- Andrew Shewmaker From wilde at mcs.anl.gov Fri Jul 12 18:07:43 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Fri, 12 Jul 2013 18:07:43 -0500 (CDT) Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: Message-ID: <1602165099.9505673.1373670463886.JavaMail.root@mcs.anl.gov> Andrew, Ive narrowed the problem to a Swift bug in filesys_mapper. I can replicate the problem with this script: type file; file pos ; I hope to have a workaround for the problem shortly. - Mike ----- Original Message ----- > From: "Andrew Shewmaker" > To: "Michael Wilde" > Cc: swift-user at ci.uchicago.edu > Sent: Friday, July 12, 2013 5:49:35 PM > Subject: Re: [Swift-user] Need help with Integer cannot be cast to String > > Sorry, I should have said that I was running: > > ./usecase1.sh -filter=1 -clean=1 > > I'm using Mac OS X Snow Leopard and swift 0.94 ... with an updated > script _swiftwrap from my previous bug report. I also tried it with a > version of Swift I built from the repo, but I should have tried it on > Linux too. > > java version "1.6.0_45" > Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406) > Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode > > Hmmm ... I thought I had updated Java already. > > Thanks for your help, Michael! > > Did it error out on one of the processDataSet() calls for you? > > -Andrew > > On Fri, Jul 12, 2013 at 4:16 PM, Michael Wilde > wrote: > > Andrew, sorry - I see that I need to uncomment the offending > > statement. > > > > I can reproduce the error now and will look into it. > > > > - Mike > > > > ----- Original Message ----- > >> From: "Michael Wilde" > >> To: "Andrew Shewmaker" > >> Cc: swift-user at ci.uchicago.edu > >> Sent: Friday, July 12, 2013 5:11:18 PM > >> Subject: Re: [Swift-user] Need help with Integer cannot be cast to > >> String > >> > >> I should also note that I was running under this Java: > >> > >> swift$ java -version > >> java version "1.7.0_17" > >> Java(TM) SE Runtime Environment (build 1.7.0_17-b02) > >> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) > >> swift$ > >> > >> - Mike > >> > >> ----- Original Message ----- > >> > From: "Michael Wilde" > >> > To: "Andrew Shewmaker" > >> > Cc: swift-user at ci.uchicago.edu > >> > Sent: Friday, July 12, 2013 4:48:06 PM > >> > Subject: Re: [Swift-user] Need help with Integer cannot be cast > >> > to > >> > String > >> > > >> > 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" > >> > > 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 > >> > > >> _______________________________________________ > >> Swift-user mailing list > >> Swift-user at ci.uchicago.edu > >> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > >> > > > > -- > Andrew Shewmaker > From wilde at mcs.anl.gov Fri Jul 12 18:32:57 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Fri, 12 Jul 2013 18:32:57 -0500 (CDT) Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: <1602165099.9505673.1373670463886.JavaMail.root@mcs.anl.gov> Message-ID: <1458862754.9506182.1373671977264.JavaMail.root@mcs.anl.gov> The problem here is a bug in both Swift and in usecase1.swift. Swift is failing when you apply filesys_mapper or simple_mapper to a scalar variable. Its expecting to map an array, not a scalar. In your firstdataset directory you have many files that match the filesys_mapper suffix eg *.NTT. Its failing in the process of trying to map a set of files to a scalar variable. We need to instead return a clear error message or just map the first file found to the scalar. So you can fix usecase1.swift, function waitThenMine() to define pos and ev as arrays: (dataminefile d) waitThenMine (string dataset, dummy a, dummy b, dummy c) { timestampfile[] t ; nvt pos[] ; nev ev[] ; d = datamine(ev, pos, t); } but your datamine.py script looks like it expects only one pos and ev file per invocation. That in turn can be fixed with another foreach loop in the swift script, but you'll need to determine the logic for this. Meanwhile we will find a fix for the confusing message, which was coming from Swift Java code and had nothing to do with trying to cast integers as strings within your Swift script. Thanks for sending us all the details which helped immensely in finding this bug! - Mike ----- Original Message ----- > From: "Michael Wilde" > To: "Andrew Shewmaker" > Cc: swift-user at ci.uchicago.edu > Sent: Friday, July 12, 2013 6:07:43 PM > Subject: Re: [Swift-user] Need help with Integer cannot be cast to String > > Andrew, Ive narrowed the problem to a Swift bug in filesys_mapper. I > can replicate the problem with this script: > > type file; > > file pos ; > > I hope to have a workaround for the problem shortly. > > - Mike > > ----- Original Message ----- > > From: "Andrew Shewmaker" > > To: "Michael Wilde" > > Cc: swift-user at ci.uchicago.edu > > Sent: Friday, July 12, 2013 5:49:35 PM > > Subject: Re: [Swift-user] Need help with Integer cannot be cast to > > String > > > > Sorry, I should have said that I was running: > > > > ./usecase1.sh -filter=1 -clean=1 > > > > I'm using Mac OS X Snow Leopard and swift 0.94 ... with an updated > > script _swiftwrap from my previous bug report. I also tried it with > > a > > version of Swift I built from the repo, but I should have tried it > > on > > Linux too. > > > > java version "1.6.0_45" > > Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406) > > Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode > > > > Hmmm ... I thought I had updated Java already. > > > > Thanks for your help, Michael! > > > > Did it error out on one of the processDataSet() calls for you? > > > > -Andrew > > > > On Fri, Jul 12, 2013 at 4:16 PM, Michael Wilde > > wrote: > > > Andrew, sorry - I see that I need to uncomment the offending > > > statement. > > > > > > I can reproduce the error now and will look into it. > > > > > > - Mike > > > > > > ----- Original Message ----- > > >> From: "Michael Wilde" > > >> To: "Andrew Shewmaker" > > >> Cc: swift-user at ci.uchicago.edu > > >> Sent: Friday, July 12, 2013 5:11:18 PM > > >> Subject: Re: [Swift-user] Need help with Integer cannot be cast > > >> to > > >> String > > >> > > >> I should also note that I was running under this Java: > > >> > > >> swift$ java -version > > >> java version "1.7.0_17" > > >> Java(TM) SE Runtime Environment (build 1.7.0_17-b02) > > >> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) > > >> swift$ > > >> > > >> - Mike > > >> > > >> ----- Original Message ----- > > >> > From: "Michael Wilde" > > >> > To: "Andrew Shewmaker" > > >> > Cc: swift-user at ci.uchicago.edu > > >> > Sent: Friday, July 12, 2013 4:48:06 PM > > >> > Subject: Re: [Swift-user] Need help with Integer cannot be > > >> > cast > > >> > to > > >> > String > > >> > > > >> > 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" > > >> > > 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 > > >> > > > >> _______________________________________________ > > >> Swift-user mailing list > > >> Swift-user at ci.uchicago.edu > > >> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > > >> > > > > > > > > -- > > Andrew Shewmaker > > > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > From nkrjnishu01 at gmail.com Sun Jul 14 12:54:17 2013 From: nkrjnishu01 at gmail.com (Nikhil Raj) Date: Sun, 14 Jul 2013 23:24:17 +0530 Subject: [Swift-user] Swift-user Digest, Vol 74, Issue 3 In-Reply-To: References: Message-ID: yup Justin, i did it and it is working now,thanks for ur help.:) On Sat, Jul 13, 2013 at 1:49 AM, wrote: > Send Swift-user mailing list submissions to > swift-user at ci.uchicago.edu > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > or, via email, send a message with subject or body 'help' to > swift-user-request at ci.uchicago.edu > > You can reach the person managing the list at > swift-user-owner at ci.uchicago.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Swift-user digest..." > > > Today's Topics: > > 1. Re: locally running parallel code (Justin M Wozniak) > 2. Re: locally running parallel code (Michael Wilde) > 3. Need help with Integer cannot be cast to String (Andrew Shewmaker) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 04 Jul 2013 09:25:37 -0500 > From: Justin M Wozniak > Subject: Re: [Swift-user] locally running parallel code > To: Nikhil Raj > Cc: swift-user at ci.uchicago.edu > Message-ID: <51D585E1.4080304 at mcs.anl.gov> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Nikhil > Did you try modifying jobThrottle? > Justin > > On 7/4/2013 3:50 AM, Nikhil Raj wrote: > > > > hi, > > this is nikhil and i am using swift for running a program. The > > problem i want to calculate the solution parallely using local > > multiple processor,but when i give the > > command it is just taking each problem at a time and not > > parallely.I have a multi core processor and i want each cpu solving > > diffrent problem at the same time > > but it is just using one of them and calculating one by one.pls > > help me out asap. > > > > > > my program > > > > type messagefile; > > > > app (messagefile t) solve_instance(string fname) { > > bnb fname stdout=@filename(t); > > } > > string name ="b.txt c.txt"; > > messagefile fi[]; > > string > > prob[]=["/home/nikhil/BatchS121208M.nl","/home/nikhil/BatchS151208M.nl"]; > > foreach f in prob{ > > messagefile c > source=@f, > > match="(.*)nl", > > transform="\\1txt">; > > c=solve_instance(f); > > } > > > > bnb is a slover i am using to solve the problem."BatchS121208M.nl" is > > the problem file name. > > I am attaching various log files and also the files which i think may > > be problem because of which my code is not running properly. > > look inti sites.xml may be there is some prob > > > > > > > > _______________________________________________ > > Swift-user mailing list > > Swift-user at ci.uchicago.edu > > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > > > -- > Justin M Wozniak > > > > ------------------------------ > > Message: 2 > Date: Thu, 4 Jul 2013 09:31:14 -0500 (CDT) > From: Michael Wilde > Subject: Re: [Swift-user] locally running parallel code > To: Nikhil Raj > Cc: swift-user at ci.uchicago.edu > Message-ID: > <924997554.7660571.1372948274885.JavaMail.root at mcs.anl.gov> > Content-Type: text/plain; charset=utf-8 > > Nikhil, the problem is most likely the jobThrottle value in your sites.xml > file. > > The default sites file entry for pool "localhost" specifies jobThrottle=0 : > > 0 > > Copy the sites file from your swift/ release directory (e.g. > swift-0.94/etc) to the directory in which you are running swift, and > replace the line above with these two lines: > > .07 > 10000 > > The run swift with the -sites.file option specifying your local copy of > sites: > > swift -sites.file sites.xml myscript.swift # etc > > The max number of jobs that Swift will send to each site (each "pool" in > the sites file) is > (jobThrottle + 1) * 100. This is explained in the User Guide section that > explains Swift properties. > > So the value above of .07 will allow up to 8 jobs at a time to be sent to > the pool. If you want to run 16 jobs at one, use .15, 32 jobs at once, use > .31, etc. > > The reason for this odd convention is historical: Swift originally was > developed to send jobs to grid sites where the optimal number of jobs to > send had to be discovered dynamically. The initialScore value of 10000 > essentially disables this outdated algorithm and lets you set the number of > concurrent jobs directly via jobThrottle. This will be made simpler and > more clear in a future release of Swift. > > - Mike > > ----- Original Message ----- > > From: "Nikhil Raj" > > To: swift-user at ci.uchicago.edu > > Sent: Thursday, July 4, 2013 3:50:06 AM > > Subject: [Swift-user] locally running parallel code > > > > > > > > > > > > hi, > > this is nikhil and i am using swift for running a program. The > > problem i want to calculate the solution parallely using local > > multiple processor,but when i give the > > command it is just taking each problem at a time and not parallely.I > > have a multi core processor and i want each cpu solving diffrent > > problem at the same time > > but it is just using one of them and calculating one by one.pls help > > me out asap. > > > > > > > > my program > > > > > > type messagefile; > > > > app (messagefile t) solve_instance(string fname) { > > bnb fname stdout=@filename(t); > > } > > string name ="b.txt c.txt"; > > messagefile fi[]; > > string > > prob[]=["/home/nikhil/BatchS121208M.nl","/home/nikhil/BatchS151208M.nl"]; > > foreach f in prob{ > > messagefile c > source=@f, > > match="(.*)nl", > > transform="\\1txt">; > > c=solve_instance(f); > > } > > > > bnb is a slover i am using to solve the problem."BatchS121208M.nl" is > > the problem file name. > > I am attaching various log files and also the files which i think may > > be problem because of which my code is not running properly. > > look inti sites.xml may be there is some prob > > _______________________________________________ > > Swift-user mailing list > > Swift-user at ci.uchicago.edu > > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > > > ------------------------------ > > Message: 3 > Date: Fri, 12 Jul 2013 14:18:36 -0600 > From: Andrew Shewmaker > Subject: [Swift-user] Need help with Integer cannot be cast to String > To: swift-user at ci.uchicago.edu > Message-ID: > uZmTXqaA at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > 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 > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: swiftdemo.tgz > Type: application/x-gzip > Size: 28103 bytes > Desc: not available > Url : > http://lists.ci.uchicago.edu/pipermail/swift-user/attachments/20130712/7fba0a5f/attachment.bin > > ------------------------------ > > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > > End of Swift-user Digest, Vol 74, Issue 3 > ***************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From agshew at gmail.com Mon Jul 15 12:11:49 2013 From: agshew at gmail.com (Andrew Shewmaker) Date: Mon, 15 Jul 2013 11:11:49 -0600 Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: <1458862754.9506182.1373671977264.JavaMail.root@mcs.anl.gov> References: <1602165099.9505673.1373670463886.JavaMail.root@mcs.anl.gov> <1458862754.9506182.1373671977264.JavaMail.root@mcs.anl.gov> Message-ID: Michael, Thanks for your help! I've been able to tweak my swift script so that it works now. I am still a bit puzzled because I seem to need to declare arrays even when I only have one .NVT and .NEV file. By the way, I saw that a gui monitor exists in the source code. I tried it out and liked it. Are there any future plans for it? Thanks again, Andrew On Fri, Jul 12, 2013 at 5:32 PM, Michael Wilde wrote: > The problem here is a bug in both Swift and in usecase1.swift. > > Swift is failing when you apply filesys_mapper or simple_mapper to a scalar variable. Its expecting to map an array, not a scalar. > > In your firstdataset directory you have many files that match the filesys_mapper suffix eg *.NTT. Its failing in the process of trying to map a set of files to a scalar variable. We need to instead return a clear error message or just map the first file found to the scalar. > > So you can fix usecase1.swift, function waitThenMine() to define pos and ev as arrays: > > (dataminefile d) waitThenMine (string dataset, dummy a, dummy b, dummy c) { > timestampfile[] t ; > > nvt pos[] ; > nev ev[] ; > > d = datamine(ev, pos, t); > } > > but your datamine.py script looks like it expects only one pos and ev file per invocation. That in turn can be fixed with another foreach loop in the swift script, but you'll need to determine the logic for this. > > Meanwhile we will find a fix for the confusing message, which was coming from Swift Java code and had nothing to do with trying to cast integers as strings within your Swift script. > > Thanks for sending us all the details which helped immensely in finding this bug! > > - Mike > > > > > > > ----- Original Message ----- >> From: "Michael Wilde" >> To: "Andrew Shewmaker" >> Cc: swift-user at ci.uchicago.edu >> Sent: Friday, July 12, 2013 6:07:43 PM >> Subject: Re: [Swift-user] Need help with Integer cannot be cast to String >> >> Andrew, Ive narrowed the problem to a Swift bug in filesys_mapper. I >> can replicate the problem with this script: >> >> type file; >> >> file pos ; >> >> I hope to have a workaround for the problem shortly. >> >> - Mike >> >> ----- Original Message ----- >> > From: "Andrew Shewmaker" >> > To: "Michael Wilde" >> > Cc: swift-user at ci.uchicago.edu >> > Sent: Friday, July 12, 2013 5:49:35 PM >> > Subject: Re: [Swift-user] Need help with Integer cannot be cast to >> > String >> > >> > Sorry, I should have said that I was running: >> > >> > ./usecase1.sh -filter=1 -clean=1 >> > >> > I'm using Mac OS X Snow Leopard and swift 0.94 ... with an updated >> > script _swiftwrap from my previous bug report. I also tried it with >> > a >> > version of Swift I built from the repo, but I should have tried it >> > on >> > Linux too. >> > >> > java version "1.6.0_45" >> > Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406) >> > Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode >> > >> > Hmmm ... I thought I had updated Java already. >> > >> > Thanks for your help, Michael! >> > >> > Did it error out on one of the processDataSet() calls for you? >> > >> > -Andrew >> > >> > On Fri, Jul 12, 2013 at 4:16 PM, Michael Wilde >> > wrote: >> > > Andrew, sorry - I see that I need to uncomment the offending >> > > statement. >> > > >> > > I can reproduce the error now and will look into it. >> > > >> > > - Mike >> > > >> > > ----- Original Message ----- >> > >> From: "Michael Wilde" >> > >> To: "Andrew Shewmaker" >> > >> Cc: swift-user at ci.uchicago.edu >> > >> Sent: Friday, July 12, 2013 5:11:18 PM >> > >> Subject: Re: [Swift-user] Need help with Integer cannot be cast >> > >> to >> > >> String >> > >> >> > >> I should also note that I was running under this Java: >> > >> >> > >> swift$ java -version >> > >> java version "1.7.0_17" >> > >> Java(TM) SE Runtime Environment (build 1.7.0_17-b02) >> > >> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) >> > >> swift$ >> > >> >> > >> - Mike >> > >> >> > >> ----- Original Message ----- >> > >> > From: "Michael Wilde" >> > >> > To: "Andrew Shewmaker" >> > >> > Cc: swift-user at ci.uchicago.edu >> > >> > Sent: Friday, July 12, 2013 4:48:06 PM >> > >> > Subject: Re: [Swift-user] Need help with Integer cannot be >> > >> > cast >> > >> > to >> > >> > String >> > >> > >> > >> > 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" >> > >> > > 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 >> > >> > >> > >> _______________________________________________ >> > >> Swift-user mailing list >> > >> Swift-user at ci.uchicago.edu >> > >> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user >> > >> >> > >> > >> > >> > -- >> > Andrew Shewmaker >> > >> _______________________________________________ >> Swift-user mailing list >> Swift-user at ci.uchicago.edu >> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user >> -- Andrew Shewmaker From wilde at mcs.anl.gov Mon Jul 15 12:44:33 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Mon, 15 Jul 2013 12:44:33 -0500 (CDT) Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: Message-ID: <883931005.9945607.1373910273057.JavaMail.root@mcs.anl.gov> Hi Andrew, > I am still a bit puzzled because I seem to need to declare arrays > even > when I only have one .NVT and .NEV file. Yes, thats the convention for filesys_mapper and simple_mapper. To map just one file, use single_file_mapper. > By the way, I saw that a gui monitor exists in the source code. I > tried it out and liked it. Are there any future plans for it? Which one did you try - -monitor (X GUI) or -tui (textual curse GUI)? Our plan is to merge these and convert/extend the unified monitoring mechanism to create a web-browser-based interface. We'd welcome your collaboration if you'd like to work on this project. - Mike From agshew at gmail.com Mon Jul 15 13:44:31 2013 From: agshew at gmail.com (Andrew Shewmaker) Date: Mon, 15 Jul 2013 12:44:31 -0600 Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: <883931005.9945607.1373910273057.JavaMail.root@mcs.anl.gov> References: <883931005.9945607.1373910273057.JavaMail.root@mcs.anl.gov> Message-ID: On Mon, Jul 15, 2013 at 11:44 AM, Michael Wilde wrote: > Hi Andrew, > >> I am still a bit puzzled because I seem to need to declare arrays >> even >> when I only have one .NVT and .NEV file. > > Yes, thats the convention for filesys_mapper and simple_mapper. > > To map just one file, use single_file_mapper. Ah, right. I forgot I read that in the manual. >> By the way, I saw that a gui monitor exists in the source code. I >> tried it out and liked it. Are there any future plans for it? > > Which one did you try - -monitor (X GUI) or -tui (textual curse GUI)? Our plan is to merge these and convert/extend the unified monitoring mechanism to create a web-browser-based interface. > > We'd welcome your collaboration if you'd like to work on this project. I tried both of those. I especially appreciated the Apps view and also the Completed/Started column in Ben's view in the TUI. The X monitor provided a nice compact overview. I also dug into the source and tried out the Java Swing gui. I was surprised how much I liked the Gantt chart. The customer I'm investigating Swift for would really appreciate something like the web or Java swing interface. If they like this demo I've just finished, then I'd like to collaborate with you on monitoring. I'll know more tomorrow. -- Andrew Shewmaker From hategan at mcs.anl.gov Mon Jul 15 21:54:32 2013 From: hategan at mcs.anl.gov (Mihael Hategan) Date: Mon, 15 Jul 2013 19:54:32 -0700 Subject: [Swift-user] Need help with Integer cannot be cast to String In-Reply-To: References: <883931005.9945607.1373910273057.JavaMail.root@mcs.anl.gov> Message-ID: <1373943272.29716.7.camel@echo> On Mon, 2013-07-15 at 12:44 -0600, Andrew Shewmaker wrote: > I tried both of those. I especially appreciated the Apps view and also > the Completed/Started column in Ben's view in the TUI. The X monitor > provided a nice compact overview. I also dug into the source and tried > out the Java Swing gui. I was surprised how much I liked the Gantt > chart. Ha! I had no idea that still worked. I had to start a swift run and see it with my own eyes. The Swing interface hasn't been maintained in a long while, but I think it should be easy to make it at least as useful as the TUI. Mihael From iraicu at cs.iit.edu Tue Jul 16 10:04:28 2013 From: iraicu at cs.iit.edu (Ioan Raicu) Date: Tue, 16 Jul 2013 11:04:28 -0400 Subject: [Swift-user] Fwd: [DistComp] Call for Papers: IEEE Transactions on Cloud Computing - Special Issue on Scientific Cloud Computing (deadline Jul 31, 2014) In-Reply-To: References: Message-ID: <51E560FC.1050401@cs.iit.edu> Hi all, Please keep this in mind, although its still 1 year away. Ioan -------- Original Message -------- Subject: [DistComp] Call for Papers: IEEE Transactions on Cloud Computing - Special Issue on Scientific Cloud Computing (deadline Jul 31, 2014) Date: Tue, 16 Jul 2013 12:05:06 +0100 From: Bogdan Nicolae To: asr-forum at cines.fr, KerData , distributed-computing-announce at datasys.cs.iit.edu, hpc-announce at mcs.anl.gov Dear colleagues, Please consider the following CFP for your contributions. ------------------------------------------------------------------------------- Call for Papers IEEE Transactions on Cloud Computing Special Issue on Scientific Cloud Computing http://datasys.cs.iit.edu/events/ScienceCloud2014-TCC/ ------------------------------------------------------------------------------- IMPORTANT DATES Paper Submissions Due: July 31, 2014 First Round Decision: September 30,2014 Major Revisions Due (if necessary): October 31, 2014 Final Decision: December 1, 2014 Journal Publication: TBD ------------------------------------------------------------------------------- OVERVIEW Computational and Data-Driven Sciences have become the third and fourth pillar of scientific discovery in addition to experimental and theoretical sciences. Scientific Computing has already begun to change how science is done, enabling scientific breakthroughs through new kinds of experiments that would have been impossible only a decade ago. It is the key to solving ?grand challenges? in many domains and providing breakthroughs in new knowledge, and it comes in many shapes and forms: high-performance computing (HPC) which is heavily focused on compute-intensive applications; high-throughput computing (HTC) which focuses on using many computing resources over long periods of time to accomplish its computational tasks; many-task computing (MTC) which aims to bridge the gap between HPC and HTC by focusing on using many resources over short periods of time; and data-intensive computing which is heavily focused on data distribution, data-parallel execution, and harnessing data locality by scheduling of computations close to the data. Today?s ?Big Data? trend is generating datasets that are increasing exponentially in both complexity and volume, making their analysis, archival, and sharing one of the grand challenges of the 21st century. Not surprisingly, it becomes increasingly difficult to design and operate large scale systems capable of addressing these grand challenges. This journal Special Issue on Scientific Cloud Computing in the IEEE Transaction on Cloud Computing will provide the scientific community a dedicated forum for discussing new research, development, and deployment efforts in running these kinds of scientific computing workloads on Cloud Computing infrastructures. This special issue will focus on the use of cloud-based technologies to meet new compute-intensive and data-intensive scientific challenges that are not well served by the current supercomputers, grids and HPC clusters. The special issue will aim to address questions such as: What architectural changes to the current cloud frameworks (hardware, operating systems, networking and/or programming models) are needed to support science? Dynamic information derived from remote instruments and coupled simulation, and sensor ensembles that stream data for real-time analysis are important emerging techniques in scientific and cyber-physical engineering systems. How can cloud technologies enable and adapt to these new scientific approaches dealing with dynamism? How are scientists using clouds? Are there scientific HPC/HTC/MTC workloads that are suitable candidates to take advantage of emerging cloud computing resources with high efficiency? Commercial public clouds provide easy access to cloud infrastructure for scientists. What are the gaps in commercial cloud offerings and how can they be adapted for running existing and novel eScience applications? What benefits exist by adopting the cloud model, over clusters, grids, or supercomputers? What factors are limiting clouds use or would make them more usable/efficient? ------------------------------------------------------------------------------- TOPICS The topics of interest are, but not limited to, the application of Cloud in scientific applications: ? Scientific application cases studies on Clouds ? Performance evaluation of Cloud technologies ? Fault tolerance and reliability in cloud systems ? Data-intensive workloads and tools on Clouds ? Programming models such as Map-Reduce ? Storage cloud architectures ? I/O and Data management in the Cloud ? Workflow and resource management in the Cloud ? NoSQL databases for scientific applications ? Data streaming and dynamic applications on Clouds ? Dynamic resource provisioning ? Many-Task Computing in the Cloud ? Application of cloud concepts in HPC environments ? Virtualized High performance parallel file systems ? Virtualized high performance I/O networks ? Virtualization and its Impact on Applications ? Distributed Operating Systems ? Many-core computing and accelerators in the Cloud ? Cloud security ------------------------------------------------------------------------------- SUBMISSION INSTRUCTIONS Authors are invited to submit papers with unpublished, original work to the IEEE Transactions on Cloud Computing, Special Issue on Scientific Cloud Computing. If the paper is extended from a workshop or conference paper, it must contain at least 50% new material with "brand" new ideas and results. The papers should not be longer than 14 double column pages in the IEEE TCC format. Papers should be submitted directly to TCC at https://mc.manuscriptcentral.com/tcc-cs, and "SI-ScienceCloud" should be selected. ------------------------------------------------------------------------------- ORGANIZERS ? Kate Keahey, University of Chicago & Argonne National Laboratory, USA ? Ioan Raicu, Illinois Institute of Technology & Argonne National Lab., USA ? Kyle Chard, University of Chicago & Argonne National Laboratory, USA ? Bogdan Nicolae, IBM Research, Ireland ------------------------------------------------------------------------------- CONTACT Email:sciencecloud2014-tcc-editors at datasys.cs.iit.edu Website:http://datasys.cs.iit.edu/events/ScienceCloud2014-TCC/ ---------------------- Bogdan Nicolae Tel: +353 (0)1 - 826 9253 Exascale Systems E-mail:bogdan.nicolae at ie.ibm.com IBM Research, Ireland Server 3, Damastown Industrial Park, Mulhuddart, Dublin 15, Ireland Web:http://researcher.ibm.com/person/ie-bogdan.nicolae -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ distributed-computing-announce mailing list distributed-computing-announce at datasys.cs.iit.edu http://datasys.cs.iit.edu/mailman/listinfo/distributed-computing-announce From hereld at mcs.anl.gov Wed Jul 31 09:34:44 2013 From: hereld at mcs.anl.gov (Mark Hereld) Date: Wed, 31 Jul 2013 09:34:44 -0500 Subject: [Swift-user] working with CSHL on mouse brain data Message-ID: first round of submissions to a remote host are doing the work we expect (creating output files), but it doesn't look like any more are being submitted to that node because: "...Could not register channel..." all of the rest of the jobs are being done on the localhost. ideas? -- mark ------------------------------------------------------- Mark Hereld Senior Fellow - Computation Institute Experimental Systems Engineer - Mathematics and Computer Science Visualization and Analysis Lead - Argonne Leadership Computing Facility Argonne National Laboratory The University of Chicago Cell: 630.327.2088 Voice: 630.252.4170 -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidk at ci.uchicago.edu Wed Jul 31 12:08:50 2013 From: davidk at ci.uchicago.edu (David Kelly) Date: Wed, 31 Jul 2013 12:08:50 -0500 (CDT) Subject: [Swift-user] working with CSHL on mouse brain data In-Reply-To: Message-ID: <1293938337.15850415.1375290530465.JavaMail.root@ci.uchicago.edu> Hi Mark, Could you please point me to a log file where you're seeing this error? It might give some more clues as to what's happening. Thanks! Regards, David ----- Original Message ----- > From: "Mark Hereld" > To: "swift-user" > Sent: Wednesday, July 31, 2013 9:34:44 AM > Subject: [Swift-user] working with CSHL on mouse brain data > first round of submissions to a remote host are doing the > work we expect (creating output files), but it doesn't look like > any more are being submitted to that node because: > "...Could not register channel..." > all of the rest of the jobs are being done on the localhost. > ideas? > -- mark > ------------------------------------------------------- > Mark Hereld < hereld at anl.gov > > Senior Fellow - Computation Institute > Experimental Systems Engineer - Mathematics and Computer Science > Visualization and Analysis Lead - Argonne Leadership Computing > Facility > Argonne National Laboratory > The University of Chicago > Cell: 630.327.2088 > Voice: 630.252.4170 > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From wilde at mcs.anl.gov Wed Jul 31 12:14:49 2013 From: wilde at mcs.anl.gov (Michael Wilde) Date: Wed, 31 Jul 2013 12:14:49 -0500 (CDT) Subject: [Swift-user] working with CSHL on mouse brain data In-Reply-To: <1293938337.15850415.1375290530465.JavaMail.root@ci.uchicago.edu> Message-ID: <711745318.18602502.1375290889671.JavaMail.root@mcs.anl.gov> David, I gave Mark and CSHL a snapshot of 0.94.1-latest, and they seem to be no longer encountering the error. They sent a log, which I just forwarded to you. - Mike ----- Original Message ----- > From: "David Kelly" > To: "Mark Hereld" > Cc: "swift-user" > Sent: Wednesday, July 31, 2013 12:08:50 PM > Subject: Re: [Swift-user] working with CSHL on mouse brain data > > > > Hi Mark, > > > Could you please point me to a log file where you're seeing this > error? It might give some more clues as to what's happening. Thanks! > > > Regards, > David > > > > > From: "Mark Hereld" > To: "swift-user" > Sent: Wednesday, July 31, 2013 9:34:44 AM > Subject: [Swift-user] working with CSHL on mouse brain data > > > first round of submissions to a remote host are doing the > work we expect (creating output files), but it doesn't look like > any more are being submitted to that node because: > "...Could not register channel..." > > > all of the rest of the jobs are being done on the localhost. > > > ideas? > > > -- mark > > > > > > > > > > > > ------------------------------------------------------- > Mark Hereld < hereld at anl.gov > > Senior Fellow - Computation Institute > Experimental Systems Engineer - Mathematics and Computer Science > Visualization and Analysis Lead - Argonne Leadership Computing > Facility > Argonne National Laboratory > The University of Chicago > > > Cell: 630.327.2088 > Voice: 630.252.4170 > > > > > > > > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user > > _______________________________________________ > Swift-user mailing list > Swift-user at ci.uchicago.edu > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user