Bug 727547

Summary: Unable to load session snapshot when persisting events after firing the rules
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Tomas Schlosser <tschloss>
Component: BRE (Expert, Fusion)Assignee: Mark Proctor <mproctor>
Status: CLOSED DUPLICATE QA Contact: Tomas Schlosser <tschloss>
Severity: high Docs Contact:
Priority: high    
Version: BRMS 5.2.0-ER1CC: atangrin, brms-jira, lcarlon, mproctor, tsurdilo
Target Milestone: ---   
Target Release: BRMS 5.2.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-17 17:23:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 724796    

Description Tomas Schlosser 2011-08-02 12:34:44 UTC
Description of problem:
When I insert an event into knowledge session received from JPAKnowledgeService and reload the session, everything is fine but when I insert event, fire rules and try to reload the session I get error with root NullPointerException.


Steps to Reproduce:
1. insert event
2. fire rules
3. call JPAKnowledgeService.loadStatefulKnowledgeSession
  
Actual results:
long stacktrace

Expected results:
reloaded session

Additional info:
java.lang.reflect.InvocationTargetException
org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:103)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)
at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)
at org.jboss.qa.drools.features.PersistenceTest.testCEP(PersistenceTest.java:210)
25 lines not shown

Caused by null
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:88)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)
at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)
at org.jboss.qa.drools.features.PersistenceTest.testCEP(PersistenceTest.java:210)
25 lines not shown

Caused by Unable to load session snapshot
org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:96)
at org.drools.persistence.SingleSessionCommandService.initKsession(SingleSessionCommandService.java:193)
at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:157)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:88)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)
at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)
at org.jboss.qa.drools.features.PersistenceTest.testCEP(PersistenceTest.java:210)
25 lines not shown

Caused by null
org.drools.reteoo.LeftTupleImpl.<init>(LeftTupleImpl.java:164)
at org.drools.reteoo.LeftTupleImpl.<init>(LeftTupleImpl.java:150)
at org.drools.marshalling.impl.InputMarshaller.readLeftTuple(InputMarshaller.java:498)
at org.drools.marshalling.impl.InputMarshaller.readFactHandles(InputMarshaller.java:373)
at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:221)
at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:92)
at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:91)
at org.drools.persistence.SingleSessionCommandService.initKsession(SingleSessionCommandService.java:193)
at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:157)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:88)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.loadStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:71)
at org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:131)
at org.jboss.qa.drools.features.PersistenceTest.testCEP(PersistenceTest.java:210)
25 lines not shown

Comment 1 Tihomir Surdilovic 2011-08-17 17:23:07 UTC

*** This bug has been marked as a duplicate of bug 724796 ***