]
Lukáš Petrovický updated DROOLS-34:
-----------------------------------
Labels: reported-by-qe (was: )
IllegalArgumentException while creating a new JPA knowledge session
-------------------------------------------------------------------
Key: DROOLS-34
URL:
https://issues.jboss.org/browse/DROOLS-34
Project: Drools
Issue Type: Bug
Affects Versions: 6.0.0.Alpha9
Reporter: Ivo Bek
Assignee: Mario Fusco
Labels: reported-by-qe
Here
(
https://github.com/droolsjbpm/drools/blob/master/drools-persistence-jpa/s...)
is incompatible constructor with KnowledgeBase instead of KieBase which causes the
exception. Other methods that are using the constructor should be fixed as well.
FYI I create the session this way:
ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env); // where
kbase is instance of injected KieBase