You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2004/02/18 17:45:05 UTC
cvs commit: avalon-excalibur/instrument-manager/src/java/org/apache/excalibur/instrument/manager/http SampleChartHandler.java
leif 2004/02/18 08:45:05
Modified: instrument-manager/src/java/org/apache/excalibur/instrument/manager/http
SampleChartHandler.java
Log:
Modify the headless workaround code so that it works on Solaris as well as Linux.
Revision Changes Path
1.4 +5 -2 avalon-excalibur/instrument-manager/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java
Index: SampleChartHandler.java
===================================================================
RCS file: /home/cvs/avalon-excalibur/instrument-manager/src/java/org/apache/excalibur/instrument/manager/http/SampleChartHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SampleChartHandler.java 30 Jan 2004 06:39:35 -0000 1.3
+++ SampleChartHandler.java 18 Feb 2004 16:45:05 -0000 1.4
@@ -218,8 +218,11 @@
{
g = bi.createGraphics();
}
- catch ( NoClassDefFoundError e )
+ catch ( Throwable t )
{
+ // Linux throws NoClassDefFoundError.
+ // Solaris throws InternalError
+
// On Headless UNIX machines this error will be thrown when attempting to
// create an graphic. The AWT libraries require a native library that
// only exists on UNIX system which have X-Windows installed. This is
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org