Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-904

Trait proxy classes are not restored on persistent session deserialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 6.3.0.Final
    • 5.5.0.Final, 5.6.0.Final, 6.0.0.Final, 6.0.1.Final, 6.1.0.Final, 6.2.0.Final, 6.3.0.CR1, 6.3.0.CR2
    • core engine
    • None
      • Serialize a session that uses traits
      • Recreate the KieBase and use it to deserialize the session
      • Process fails with a ClassNotFoundException
    • Medium
    • NEW
    • NEW

    Description

      Trait proxy classes are created lazily at runtime when a trait is instantiated for the first time.
      Deserializing a previously persisted session containing a proxy instance requires the
      proxy class to be available to the KieBase's project class loader by the time the session is
      restored. However, a freshly recreated KieBase for the purpose of restoring a session will
      not have the proper classes loaded.

      Note: to date, existing serialization tests reuse the same KieBase, thus not showing the issue.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            dsotty Davide Sottara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: