[MAGNOLIA-6753] Investigate and propose solution in arch meeting for MGNLWORKFLOW-332 Created: 22/Aug/16  Updated: 26/Aug/16  Resolved: 24/Aug/16

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Michael Mühlebach Assignee: Ilgun Ilgun
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLWORKFLOW-332 Session numbers add up in the workflo... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Sprint: Basel 58
Story Points: 5

 Description   

Outcome of the investigation is that org.kie.internal.persistence.jcr#buildCommandService(Long, KieBase, KieSessionConfiguration, Environment) method is trying to fetch a proper class and constructor of it. However, org.drools.persistenceSimpleSessionCommandService which is a basic session command service) has a constructor version of Long.class for sessionId. The is a problem is we try to fetch in org.kie.internal.persistence.jcr#buildCommandService(Long, KieBase, KieSessionConfiguration, Environment) method to get a constructor for Integer.class and therefore simply hitting to the exception of java.lang.NoSuchMethodException. Simply changing Integer.class to Long.class would work for the particular issue since there will be no exception and thus session will be found in the persistence layer.


Generated at Mon Feb 12 04:17:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.