Fix for SPARK-1816

This commit is contained in:
alexander
2016-10-12 00:27:25 -04:00
parent 0eb223c4c8
commit b91c655a72

View File

@ -640,6 +640,7 @@ Log.error("Unable to load plugin " + clazz + ".", ex);
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
Log.debug("Trying to initialize " + plugin1); Log.debug("Trying to initialize " + plugin1);
try { try {
plugin1.initialize(); plugin1.initialize();
} }
catch (Throwable e) { catch (Throwable e) {
@ -661,8 +662,17 @@ Log.error("Unable to load plugin " + clazz + ".", ex);
public void shutdown() { public void shutdown() {
for (Plugin plugin1 : plugins) { for (Plugin plugin1 : plugins) {
try { try {
try
{
plugin1.shutdown(); plugin1.shutdown();
} }
catch(NoSuchMethodError e)
{
Log.error("NoSuchMethodError on shutdown of plugin" + e );
}
}
catch (Exception e) { catch (Exception e) {
Log.warning("Exception on shutdown of plugin.", e); Log.warning("Exception on shutdown of plugin.", e);
} }