Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r4545 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels

Subject: perfsonar development work

List archive

perfsonar: r4545 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r4545 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels
  • Date: Thu, 25 Sep 2008 09:31:45 -0400

Author: nina
Date: 2008-09-25 09:31:44 -0400 (Thu, 25 Sep 2008)
New Revision: 4545

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
Log:
Added pointer to the perfsonar.log file in the error reporting window
https://bugzilla.perfsonar.net/show_bug.cgi?id=470

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
2008-09-25 13:30:21 UTC (rev 4544)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels/StatusBar.java
2008-09-25 13:31:44 UTC (rev 4545)
@@ -25,7 +25,6 @@
package org.perfsonar.perfsonarui.ui.panels;

import java.awt.BorderLayout;
-import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.LayoutManager;
@@ -33,6 +32,7 @@
import java.awt.event.MouseEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
+import java.io.File;
import java.io.PrintWriter;
import java.io.StringWriter;

@@ -241,35 +241,42 @@
};
p.add(new JLabel(top),BorderLayout.NORTH);

+ StringBuffer errorText = new StringBuffer();
+
if (x instanceof AxisFault) {
AxisFault axisFault = (AxisFault) x;
- t = new JTextArea(axisFault.dumpToString());
+ errorText.append(axisFault.dumpToString());

+
} else if (x instanceof RequestInterruptedException) {
- t = new JTextArea(x.getMessage());
+ errorText.append(x.getMessage());
} else if (x instanceof PSErrorCodeException) {
PSErrorCodeException px = (PSErrorCodeException) x;
- StringBuffer b = new StringBuffer();
+
if ((px.getErrorCode()!= null)
&&(!"".equals(px.getErrorCode()))) {
- b.append("Error code \t");
- b.append(px.getErrorCode());
- b.append('\n');
+ errorText.append("Error code \t");
+ errorText.append(px.getErrorCode());
+ errorText.append('\n');
}

if ((px.getErrordescription() != null) &&
(!"".equals(px.getErrordescription()))) {
- b.append("Error description \t");
- b.append(px.getErrordescription());
- b.append('\n');
+ errorText.append("Error description \t");
+ errorText.append(px.getErrordescription());
+ errorText.append('\n');
}
- t = new JTextArea(b.toString());
+
} else {
StringWriter w = new StringWriter();
x.printStackTrace(new PrintWriter(w));
- t = new JTextArea(w.toString());
+ errorText.append(w.toString());
w = null;
}

+ errorText.append("\n\nSee the
"+System.getProperty("user.dir")+File.separator+"perfsonar.log file for
further error details.");
+ t = new JTextArea(errorText.toString());

+
+
t.setAutoscrolls(true);

JScrollPane sp = new JScrollPane(t);



  • perfsonar: r4545 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/panels, svnlog, 09/25/2008

Archive powered by MHonArc 2.6.16.

Top of Page