
Originally Posted by
kierann
I've encountered this a couple times now in dm Server 1 where ObjectInputStream will use the classloader of the bundle who exports the class instead of the caller. Looking at the source code for ObectInputStream I've tracked it down to a native method called latestUserDefinedLoader which seems to be grabbing the wrong classloader. I think a few other people have experienced a similiar issue. This more than likely is an issue with ObjectInputStream rather than with dm Server, but does anyone know a workaround?
This is also related to "Ehcache Persistence Class Loading Issue".