perfsonar-dev - perfsonar: r2619 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Subject: perfsonar development work
List archive
perfsonar: r2619 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
Chronological Thread
- From:
- To:
- Subject: perfsonar: r2619 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions
- Date: Thu, 9 Aug 2007 13:33:38 -0400
Author: nina
Date: 2007-08-09 13:33:37 -0400 (Thu, 09 Aug 2007)
New Revision: 2619
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/PerfsonarRequestAction.java
Log:
Updated to catch Throwable (e.g. out of memory)
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/PerfsonarRequestAction.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/PerfsonarRequestAction.java
2007-08-09 15:48:37 UTC (rev 2618)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions/PerfsonarRequestAction.java
2007-08-09 17:33:37 UTC (rev 2619)
@@ -25,6 +25,8 @@
package org.perfsonar.perfsonarui.ui.actions;
import java.awt.event.ActionEvent;
+import java.io.PrintStream;
+import java.io.PrintWriter;
import javax.swing.ActionMap;
import javax.swing.Icon;
@@ -122,9 +124,17 @@
try {
changeName();
run(null);
- } catch (Exception x) {
+ } catch (Throwable x) {
logger.error(x);
- JOptionPane.showMessageDialog(null,x.getMessage());
+ StringBuffer b = new StringBuffer();
+ b.append(x.getMessage());
+ b.append('\n');
+ StackTraceElement[] stack = x.getStackTrace();
+ for (int i=0; i < stack.length; i++) {
+ b.append(stack[i]);
+ b.append('\n');
+ }
+ JOptionPane.showMessageDialog(null,b.toString());
worker = null;
restoreName();
}
- perfsonar: r2619 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/actions, svnlog, 08/09/2007
Archive powered by MHonArc 2.6.16.