mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Fix for SPARK-1816
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user