<div dir="ltr">I made a small change to CacheNode.java in my local copy that just avoids calling any methods on FutureObject f if it is null. Maybe there is a better fix, but it seems to be working well for now anyway.<div>
<br></div>Index: modules/karajan/src/org/globus/cog/karajan/compiled/nodes/CacheNode.java<br>===================================================================<br>--- modules/karajan/src/org/globus/cog/karajan/compiled/nodes/CacheNode.java (revision 3874)<br>
+++ modules/karajan/src/org/globus/cog/karajan/compiled/nodes/CacheNode.java (working copy)<br>@@ -128,7 +128,9 @@<br><br> Cache cache = getCache(stack, key == this);<br> synchronized (cache) {<br> FutureObject f = (FutureObject) cache.getCachedValue(key);<br>
- f.setValue(ret);<br>+ if(f != null) {<br>+ f.setValue(ret);<br>+ }<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 1, 2014 at 1:35 PM, David Kelly <span dir="ltr"><<a href="mailto:davidkelly@uchicago.edu" target="_blank">davidkelly@uchicago.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>At the beginning of my run (apparently before any jobs actually start on the scheduler) I am running into this error:</div>
<div><br></div><div>
Swift 0.95 RC5 swift-r7605 cog-r3874</div><div><br>RunID: 20140301-1911-fe86tqf8<br>Progress: Sat, 01 Mar 2014 19:11:49+0000<br>Progress: Sat, 01 Mar 2014 19:11:50+0000 Selecting site:193 Stage in:307<br><br>Execution failed:<br>
Exception in RunpSIMS:<br> Arguments: [047, 438, params.psims, output/047/438output.tar.gz]<br> Host: midway<br> Directory: RunpSIMS-20140301-1911-fe86tqf8/jobs/g/RunpSIMS-g4b3m5nl<br>exception @ swift-int.k, line: 530<br>
Caused by: java.lang.NullPointerException<br>cache @ swift-int.k, line: 134<br>Caused by: java.lang.NullPointerException<br>at org.globus.cog.karajan.compiled.nodes.CacheNode.setValue(CacheNode.java:131)<br>at org.globus.cog.karajan.compiled.nodes.CacheNode.runBody(CacheNode.java:77)<br>
at org.globus.cog.karajan.compiled.nodes.InternalFunction.run(InternalFunction.java:153)
<p>This only seems to happen when I have 500 or more tasks. If I set foreach.max.threads to a low number like 50, it seems to work fine.</p><p>The log is at <a href="http://web.ci.uchicago.edu/~davidk/logs/RunpSIMS-20140301-1921-r4dps0i4.log" target="_blank">http://web.ci.uchicago.edu/~davidk/logs/RunpSIMS-20140301-1921-r4dps0i4.log</a>.</p>
<p>Any ideas?</p>Thanks,<br>David</div></div>
</blockquote></div><br></div>