sure, you want to re-open the ticket?<br><br><div class="gmail_quote">On Mon, Jan 3, 2011 at 7:43 AM, Justin M Wozniak <span dir="ltr"><<a href="mailto:wozniak@mcs.anl.gov">wozniak@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
This looks right for end users, but for development it really helps to get a full stack trace.  Is it possible to turn on the full trace with a runtime option?<br>
        Justin<br>
<br>
-- <br>
Justin M Wozniak<br>
<br>
---------- Forwarded message ----------<br>
Date: Fri, 31 Dec 2010 17:39:13<br>
From: <a href="mailto:noreply@svn.ci.uchicago.edu" target="_blank">noreply@svn.ci.uchicago.edu</a><br>
To: <a href="mailto:swift-commit@ci.uchicago.edu" target="_blank">swift-commit@ci.uchicago.edu</a><br>
Subject: [Swift-commit] r3835 - trunk/src/org/griphyn/vdl/karajan/functions<br>
<br>
Author: skenny<br>
Date: 2010-12-31 17:39:12 -0600 (Fri, 31 Dec 2010)<br>
New Revision: 3835<br>
<br>
Modified:<br>
   trunk/src/org/griphyn/vdl/karajan/functions/ProcessBulkErrors.java<br>
Log:<br>
don't show java exceptions, only the swift error<br>
<br>
Modified: trunk/src/org/griphyn/vdl/karajan/functions/ProcessBulkErrors.java<br>
===================================================================<br>
--- trunk/src/org/griphyn/vdl/karajan/functions/ProcessBulkErrors.java  2010-12-30 21:53:08 UTC (rev 3834)<br>
+++ trunk/src/org/griphyn/vdl/karajan/functions/ProcessBulkErrors.java  2010-12-31 23:39:12 UTC (rev 3835)<br>
@@ -90,31 +90,39 @@<br>
        }<br>
<br>
        public static String getMessageChain(Throwable e) {<br>
+           Throwable orig = e;<br>
                StringBuffer sb = new StringBuffer();<br>
                String prev = null;<br>
-        boolean first = true;<br>
+               String lastmsg = null;<br>
+               boolean first = true;<br>
                while (e != null) {<br>
                        String msg;<br>
                        if (e instanceof NullPointerException || e instanceof ClassCastException) {<br>
                            CharArrayWriter caw = new CharArrayWriter();<br>
                            e.printStackTrace(new PrintWriter(caw));<br>
                            msg = caw.toString();<br>
+<br>
                        }<br>
                        else {<br>
                            msg = e.getMessage();<br>
+                           if(msg != null){<br>
+                           lastmsg = msg;<br>
+                           }<br>
+<br>
                        }<br>
                        if (msg != null && (prev == null || prev.indexOf(msg) == -1)) {<br>
-                if (!first) {<br>
-                    sb.append("\nCaused by:\n\t");<br>
-                }<br>
-                else {<br>
-                    first = false;<br>
-                }<br>
-                               sb.append(msg);<br>
-                prev = msg;<br>
+                           if (!first) {<br>
+                               sb.append("\nCaused by:\n\t");<br>
+                           }<br>
+                           else {<br>
+                               first = false;<br>
+                           }<br>
+                           sb.append(msg);<br>
+                           lastmsg = msg;<br>
+                           prev = msg;<br>
                        }<br>
-            e = e.getCause();<br>
+                       e = e.getCause();<br>
                }<br>
-               return sb.toString();<br>
+               return lastmsg;<br>
        }<br>
 }<br>
<br>
_______________________________________________<br>
Swift-commit mailing list<br>
<a href="mailto:Swift-commit@ci.uchicago.edu" target="_blank">Swift-commit@ci.uchicago.edu</a><br>
<a href="http://mail.ci.uchicago.edu/mailman/listinfo/swift-commit" target="_blank">http://mail.ci.uchicago.edu/mailman/listinfo/swift-commit</a><br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu" target="_blank">Swift-devel@ci.uchicago.edu</a><br>
<a href="http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel" target="_blank">http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel</a><br>
</blockquote></div><br>