Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.3.8, 1.4.8
-
None
-
logback-core and logback-classic in OSGi
Description
Using a SocketReceiver in an OSGi environment currently fails when running in OSGi.
The event class is ch.qos.logback.classic.spi.LoggingEventVO which is attempted to be deserialized by HardenedObjectInputStream (extends ObjectInputStream).
Since HardenedObjectInputStream is in logback-core, the class loader used for deserialization is the bundle loader for ch.qos.logback.core which is unable to load from package ch.qos.logback.classic.spi.
A couple of ideas for possible fix:
- Add optional Import-Package header for this package
- Allow a different class loader to be specified for deserialization