avenuthom opened a new issue, #6334:
URL: https://github.com/apache/incubator-kie-drools/issues/6334

   I am running under Java 21 on IntelliJ IDEA. I have created a unit test that 
runs against the drools engine to test my decision tables. Here is my code:
   
                KieServices kieServices = KieServices.Factory.get(); // returns 
null
                Resource resource = 
ResourceFactory.newClassPathResource(decisionTableFilename, getClass());
                KieFileSystem kieFileSystem = 
kieServices.newKieFileSystem().write(resource);
                KieBuilder kieBuilder = 
kieServices.newKieBuilder(kieFileSystem);
                kieBuilder.buildAll();
                KieRepository kieRepository = kieServices.getRepository();
                ReleaseId krDefaultReleaseId = 
kieRepository.getDefaultReleaseId();
                KieContainer kieContainer = 
kieServices.newKieContainer(krDefaultReleaseId);
                return kieContainer;
   
   When I call from my unit test it nearly always Factory.get() method returns 
null. I say nearly because I was able at one point to get it to not return null 
and it lasted until I restarted Intellij.
   
   Looking at the code, I can't imagine how this is happening.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to