[jboss-jira] [JBoss JIRA] (DROOLS-904) Trait proxy classes are not reloaded on persistent session deserialization

Davide Sottara (JIRA) issues at jboss.org
Fri Sep 4 20:18:00 EDT 2015


     [ https://issues.jboss.org/browse/DROOLS-904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Sottara updated DROOLS-904:
----------------------------------
    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.

 


  was:
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.

The proxy class bytecode is deserialized correctly (in JavaDialectRuntimeData), but
not loaded by the PCL in a timely fashion.

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

 




> Trait proxy classes are not reloaded on persistent session deserialization
> --------------------------------------------------------------------------
>
>                 Key: DROOLS-904
>                 URL: https://issues.jboss.org/browse/DROOLS-904
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 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
>            Reporter: Davide Sottara
>            Assignee: Davide Sottara
>            Priority: Blocker
>
> 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.
>  



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list