Jared Davis <sunray <at> davisprogramming.com> writes:
Any advice on this NPE? (March 20th snapshot of 5.00)
It occurs when a second thread attempts to create a session using a static
KnowledgeBase.
java.lang.NullPointerException
at org.drools.SessionConfiguration.initProcessInstanceManagerFactory
Looks like org.drools.SessionConfiguration lines 259-262 should change from
try {
clazz = (Class<ProcessInstanceManagerFactory>)
Thread.currentThread().getContextClassLoader().loadClass( className );
} catch ( ClassNotFoundException e ) {
}
to
try {
ClassLoader ccl = Thread.currentThread().getContextClassLoader();
if (ccl != null) {
clazz = (Class<ProcessInstanceManagerFactory>)
ccl.loadClass( className );
}
} catch ( ClassNotFoundException e ) {
}