Commit 79b449ee authored by Jörg Richter's avatar Jörg Richter

Improve server log for detecting outdated plugins (#389)

parent 56209d5b
Pipeline #10495 passed with stages
in 8 minutes and 33 seconds
......@@ -140,14 +140,14 @@ class PluginManager {
try {
String activatorClassName = bundle.getHeaders().get("Bundle-Activator");
if (activatorClassName != null) {
Class activatorClass = bundle.loadClass(activatorClassName); // throws ClassNotFoundException
return PluginActivator.class.isAssignableFrom(activatorClass);
Class activatorClass = bundle.loadClass(activatorClassName); // throws ClassNotFoundException...
return PluginActivator.class.isAssignableFrom(activatorClass); // resp. NoClassDefFoundError
} else {
// Note: 3rd party bundles may have no activator
return false;
}
} catch (Exception e) {
throw new RuntimeException("Plugin detection failed for bundle " + bundle, e);
} catch (Throwable e) { // Note: catch errors as well
throw new RuntimeException("DMX plugin detection failed for bundle " + bundle, e);
}
}
......
......@@ -8,7 +8,7 @@
</div>
<div class="field">
<div class="field-label">Released</div>
Jul 12, 2020
Jul 17, 2020
</div>
<div class="field">
<div class="field-label">License</div>
......
......@@ -9,7 +9,7 @@ import extraElementUI from './element-ui'
import 'font-awesome/css/font-awesome.css'
import './websocket'
console.log('[DMX] 2020/07/12')
console.log('[DMX] 2020/07/17')
// 1) Init dm5 library
// The dm5 library must be inited *before* the dm5-webclient component is instantiated.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment