[CDO] Loading JAVA_CLASS CdoType -> ClassNotFoundException [message #1826650] |
Tue, 28 April 2020 05:16  |
Eclipse User |
|
|
|
Hi,
When trying to load a cdo object which contains a field of the type CDOTypeImpl.JAVA_CLASS, I get an ClassNotFound-Exception when trying to load cdo objects with references to application provided classes (in my case an enum). Storing that Object however worked as expected.
I am rather new to OSGI, but from what I understand, this is expected - when storing the object, the custom class has already been loaded by the application-bundle classloader. However when deserializing the byte[], the bundle-classloader of org.eclipse.emf.cdo.common is used (because ObjectInputStream using latestUserDefinedLoader() by default) has no knowledge of the application-provided class.
Any idea how I can provide my application-bundle class loader to CDO in order to allow for application-classes to be deserialized?
Thanks you in advance & best regards, Clemens
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03928 seconds