<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Sorry Mihael, I've pasted the error below. <br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Why does the error go away, when the string assignment statements are reversed in order?<br>
</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>swift args_trunk.swift -foo="helloFOO"<br>Swift trunk swift-r7073 (swift modified locally) cog-r3787 (cog modified locally)<br>
RunID: 20130918-2014-t0fyb8m1<br>[Error] sites.xml, line 1, col 9: cvc-elt.1: Cannot find the declaration of element 'config'.<br>Progress: time: Wed, 18 Sep 2013 20:14:29 +0000<br><br>Execution failed:<br>java.lang.ClassCastException: Invalid type: expected a org.griphyn.vdl.mapping.AbstractDataNode but got a org.globus.cog.karajan.analyzer.InvalidArgChannel<br>
swiftscript:arg @ args_trunk, line: 22<br>Caused by: java.lang.ClassCastException: Invalid type: expected a org.griphyn.vdl.mapping.AbstractDataNode but got a org.globus.cog.karajan.analyzer.InvalidArgChannel<br> at org.griphyn.vdl.karajan.lib.swiftscript.FnArg.function(FnArg.java:63)<br>
at org.griphyn.vdl.karajan.lib.SwiftFunction.runBody(SwiftFunction.java:108)<br> at org.globus.cog.karajan.compiled.nodes.InternalFunction.run(InternalFunction.java:154)<br> at org.globus.cog.karajan.compiled.nodes.CompoundNode.runChild(CompoundNode.java:87)<br>
at org.globus.cog.karajan.compiled.nodes.InternalFunction.run(InternalFunction.java:147)<br> at org.globus.cog.karajan.compiled.nodes.CompoundNode.runChild(CompoundNode.java:87)<br> at org.globus.cog.karajan.compiled.nodes.Sequential.run(Sequential.java:22)<br>
at org.globus.cog.karajan.compiled.nodes.CompoundNode.runChild(CompoundNode.java:87)<br> at org.globus.cog.karajan.compiled.nodes.UParallel$1.run(UParallel.java:68)<br> at k.thr.LWThread.run(LWThread.java:228)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br> at java.lang.Thread.run(Thread.java:722)<br>
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">-Yadu<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Sep 18, 2013 at 3:11 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov" target="_blank">hategan@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, the error is due to the optional value missing. There's shouldn't be<br>
an error to begin with, but a temporary workaround is:<br>
<br>
string FOO = arg("foo", "defaultValue")<br>
<div class="im HOEnZb"><br>
On Wed, 2013-09-18 at 14:44 -0500, Yadu Nand wrote:<br>
</div><div class="HOEnZb"><div class="h5">> Ketan reported a script failing for him on trunk alone and this is the<br>
> condensed<br>
> form of his script that fails consistently on trunk:<br>
><br>
> func() {<br>
> string FOO=arg("foo");<br>
> string BAR="hello";<br>
> tracef("FOO : %s | BAR : %s\n", FOO, BAR);<br>
> }<br>
> func();<br>
><br>
> This script does pass on 0.94RC3, but not on Trunk. Could someone confirm<br>
> if this<br>
> is valid syntax ?<br>
><br>
> Reversing the order of the assignments to the following, gets the test to<br>
> pass:<br>
><br>
> func() {<br>
> string BAR="hello";<br>
> string FOO=arg("foo");<br>
> tracef("FOO : %s | BAR : %s\n", FOO, BAR);<br>
> }<br>
> func();<br>
><br>
><br>
> Thanks,<br>
><br>
> Yadu<br>
</div></div><div class="HOEnZb"><div class="h5">> Ketan reported a script failing for him on trunk alone and this is the<br>
> condensed<br>
><br>
> form of his script that fails consistently on trunk:<br>
><br>
> func() {<br>
> string FOO=arg("foo");<br>
> string BAR="hello";<br>
> tracef("FOO : %s | BAR : %s\n", FOO, BAR);<br>
> }<br>
> func();<br>
><br>
><br>
> This script does pass on 0.94RC3, but not on Trunk. Could someone<br>
> confirm if this<br>
><br>
> is valid syntax ?<br>
><br>
><br>
> Reversing the order of the assignments to the following, gets the test<br>
> to pass:<br>
><br>
> func() {<br>
> string BAR="hello";<br>
> string FOO=arg("foo");<br>
> tracef("FOO : %s | BAR : %s\n", FOO, BAR);<br>
> }<br>
> func();<br>
><br>
><br>
><br>
><br>
> Thanks,<br>
><br>
> Yadu<br>
> _______________________________________________<br>
> Swift-devel mailing list<br>
> <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Yadu Nand B<div><br></div></div>
</div>