expose root cause for class not found exceptions

Description

currently all delegation classloading is done "silent"
and if the class is not found no cause is given.

this should be changed so that the most relevant ncfe is given as the cause for the activiti exception.

another aspect that's not right is that only ClassNotFoundExceptions are caught. what about NoClassDefFoundErrors? i believe there are other potential errors coming out of classloading. so shouldn't we just catch all of them? so shouldn't we be catching throwable instead?

private static Class<?> loadClassSilent(String className, ClassLoader classLoader) {
try {
return Class.forName(className, true, classLoader);
} catch (ClassNotFoundException cnfe) {
// Ignore exception, we return null;
return null;
}
}

Assignee

Frederik Heremans

Reporter

Tom Baeyens

Labels

None

Components

Fix versions

Priority

Major
Configure