Author: saces
Date: 2007-11-22 19:44:49 +0000 (Thu, 22 Nov 2007)
New Revision: 15928
Modified:
trunk/freenet/src/freenet/pluginmanager/PluginManager.java
Log:
catch *all* errors while plugin loading
Modified: trunk/freenet/src/freenet/pluginmanager/PluginManager.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/PluginManager.java 2007-11-22
18:31:06 UTC (rev 15927)
+++ trunk/freenet/src/freenet/pluginmanager/PluginManager.java 2007-11-22
19:44:49 UTC (rev 15928)
@@ -597,6 +597,14 @@
Logger.error(this, "could not access plugin main
class", iae1);
pluginFile.delete();
throw new PluginNotFoundException("could not access
plugin main class", iae1);
+ } catch (NoClassDefFoundError ncdfe1) {
+ Logger.error(this, "could not find class def, may a
missing lib?", ncdfe1);
+ pluginFile.delete();
+ throw new PluginNotFoundException("could not find class
def, may a missing lib?", ncdfe1);
+ } catch (Throwable t) {
+ Logger.error(this, "unexcpected error while plugin
loading", t);
+ pluginFile.delete();
+ throw new PluginNotFoundException("unexcpected error
while plugin loading "+t, t);
}
}