Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
We have been doing a POC to call java code from ECL code.
Our java code uses multiple open source / third party java libraries. At some point during this integration, our ECL code stated throwing - java.lang.NoClassDefFoundError. We spent weeks trying to figure out what the heck is going on. It turns out that the contextClassLoader is null.
This error showed up while creating an instance of Jboss Drool's specific classes.
The following code fixed it.
if(Thread.currentThread().getContextClassLoader() == null)