Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1752

SocketReceiver cannot deserialize events in OSGi

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major 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

      Attachments

        Activity

          People

            logback-dev Logback dev list
            joeshannon Joe Shannon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: