From 599dc3844c8dfccaaf3b0ea6df00f637737cd6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Wed, 25 Apr 2007 08:51:27 +0000 Subject: [PATCH] - trapped an error when classes cannot be initialized --- .../inrialpes/exmo/align/service/AServProtocolManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java b/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java index 9a828692..3cd63459 100644 --- a/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java +++ b/src/fr/inrialpes/exmo/align/service/AServProtocolManager.java @@ -48,6 +48,7 @@ import java.lang.NoSuchMethodException; import java.lang.IllegalAccessException; import java.lang.NullPointerException; import java.lang.UnsatisfiedLinkError; +import java.lang.ExceptionInInitializerError; import java.lang.reflect.InvocationTargetException; import java.io.ByteArrayOutputStream; import java.io.PrintWriter; @@ -667,6 +668,8 @@ public class AServProtocolManager { } catch ( NoClassDefFoundError ncdex ) { } catch (ClassNotFoundException cnfex) { } catch (UnsatisfiedLinkError ule) { + } catch (ExceptionInInitializerError eiie) { + // This one has been added for OMWG, this is a bad error } } } @@ -701,6 +704,8 @@ public class AServProtocolManager { } catch ( ClassNotFoundException cnfex ) { if ( debug ) System.err.println(" ******** "+classname); } catch ( UnsatisfiedLinkError ule ) { + } catch (ExceptionInInitializerError eiie) { + // This one has been added for OMWG, this is a bad error } } } -- GitLab