lcsim/src/org/lcsim/plugin
diff -u -r1.13 -r1.14
--- LCSimPlugin.java 23 May 2008 03:12:10 -0000 1.13
+++ LCSimPlugin.java 4 Sep 2008 17:40:51 -0000 1.14
@@ -45,7 +45,7 @@
/**
*
* @author tonyj
- * @version $Id: LCSimPlugin.java,v 1.13 2008/05/23 03:12:10 jeremy Exp $
+ * @version $Id: LCSimPlugin.java,v 1.14 2008/09/04 17:40:51 jeremy Exp $
*/
public class LCSimPlugin extends Plugin implements StudioListener, PageListener
@@ -129,9 +129,11 @@
Object converter = converterClass.newInstance();
getApplication().getLookup().add(converter);
}
- catch (Exception t)
- {
- System.err.println("Warning: Unable to create LCSimHepRepConverter, HepRep plugin probably not installed");
+ // This block will catch NoClassDefFoundError (which is not an Exception) as well as other reflection errors that may occur. --JM
+ catch (Throwable t)
+ {
+ t.printStackTrace(System.err);
+ System.err.println("WARNING: Unable to create LCSimHepRepConverter. The HepRep plugin is probably not installed.");
}
SequentialRecordLoop loop = (SequentialRecordLoop) getApplication().getLookup().lookup(SequentialRecordLoop.class);