As reported in OpenRefine/OpenRefine#1882
with analysis in OpenRefine/OpenRefine#1889
Butterfly implements its own ClassLoader called ButterflyClassLoader, with some custom logic to reload classes on the fly when they are modified.
To do so, the method loadClass from the parent class URLClassLoader was overridden, with a home-made interpretation of the delegation model which was incorrect: the problem was that it tried to load a class first by itself before trying the parent loader (whereas the parent loader should be tried first).
This lead to Jackson annotations being marked as loaded by ButterflyClassLoader instead of WebappClassLoader, so the hashes of the classes would differ and the Jackson introspection code would not find them when generating serializers and deserializers for POJOs coming from extensions.
As reported in OpenRefine/OpenRefine#1882
with analysis in OpenRefine/OpenRefine#1889