Bug 749936

Summary: Unable to load StatefulKnowledgeSession
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jeffrey Bride <jbride2001>
Component: jBPM 5Assignee: Kris Verlaenen <kverlaen>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Petrovický <lpetrovi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: brms-jira, mrietvel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-21 14:41:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeffrey Bride 2011-10-28 23:02:04 UTC
this could very well be the same as the following :

https://issues.jboss.org/browse/JBPM-3383
https://issues.jboss.org/browse/JBRULES-3237

in case it's not, I'm experiencing the following problem:
http://pastebin.com/yt9QT4aK

when executing the following test case :

https://github.com/jbride/jbpm/blob/gbd/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/session/ReloadStatefulSessionTest.java

in summary, drools recently is unable to load a StatefulKnowledgeSession from a remote RDBMS after having bounced the jbpm5 runtime.

This test has been conducted using commit # :  a35de1f5981fda80add1b3f337e32785e4afe9d8 from the master branch of jbpm5 on 28 October.

Comment 1 Marco Rietveld 2011-11-12 02:24:56 UTC
I ran this test with the fix for 3237: this is the same issue. 

Once the fix from 3237 is backported to drools-5.3, this can also be closed. 

I'll also add the test to the jbpm-persistence-jpa -- we can run it as a unit test if we use the h2 file database so that results will be saved between test cases.

Comment 2 Jeffrey Bride 2011-11-14 16:02:45 UTC
thanks Marco.
from today's jbpm5 IRC, it appears that the following are the two relevant test cases :

drools/drools-compiler/src/test/java/org/drools/integrationtests/UnmarshallingTest.java

drools-persistence-jpa/src/test/java/org/drools/timer/integrationtests/TimerAndCalendarTest.java

Comment 3 Marco Rietveld 2011-11-14 16:10:14 UTC
Correct. :) 

This commit fixes BZ-740499/JBRULES-3146 but introductes JBRULES-3237/this BZ bug: 

https://github.com/droolsjbpm/drools/commit/0a3575e8073f2abc035b13e11381464e5ac17306#diff-4

This commit fixes this bug/JBRULES-3237, but reintroduces BZ-740499/JBRULES-3146. 

https://github.com/droolsjbpm/drools/commit/f2298f058322ae934a43f354e791757ed54e9ba8

:( 

I'm leaving this up to Edson and the rest of the Drools team given that it's a Drools problem that affects jBPM.