Bug 1008662
| Summary: | Exception in thread when using a KieScanner and fireUntilHalt and removing a drl file from Maven repository | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Richard Bourner <rbourner> | ||||
| Component: | BRE | Assignee: | Mario Fusco <mfusco> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Tomas David <tdavid> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0.0 | CC: | ddoyle, omikelad, rbourner, tdavid | ||||
| Target Milestone: | ER5 | ||||||
| Target Release: | 6.0.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Windows | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-08-06 20:18:11 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Verified on BRMS 6.0.0.ER5. |
Created attachment 798399 [details] Maven project demonstrating the issue Description of problem: Environment: Drools 6.0.0.CR3 When using a KieScanner along with fireUntilHalt, we get an exception in thread when we change the version of the JAR file in the Maven rule repository. This exception is raised when 1 DRL file is removed from the new JAR in comparison with the previous version of that JAR. The problem doesn’t occur when a rule is removed from an existing .drl. If we modify the Maven rule repository manually (typically by tampering the maven-metadata-local.xml file), the scanner triggers as expected and we also get the same exception as we were doing the deployment by Java code. Version-Release number of selected component (if applicable): How reproducible: Refer to attached JUnit test. Steps to Reproduce: 1. Run the JUnit test. 2. 3. Actual results: Expected results: Additional info: Exception in thread "Timer-0" java.lang.NullPointerException at org.drools.core.util.IoUtils.readBytesFromInputStream(IoUtils.java:167) at org.drools.core.util.IoUtils.readBytesFromZipEntry(IoUtils.java:185) at org.drools.compiler.kie.builder.impl.ZipKieModule.getBytes(ZipKieModule.java:40) at org.drools.compiler.kie.builder.impl.AbstractKieModule.getResource(AbstractKieModule.java:273) at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateToVersion(KieContainerImpl.java:112) at org.kie.scanner.KieRepositoryScannerImpl.updateKieModule(KieRepositoryScannerImpl.java:203) at org.kie.scanner.KieRepositoryScannerImpl.scanNow(KieRepositoryScannerImpl.java:193) at org.kie.scanner.KieRepositoryScannerImpl$ScanTask.run(KieRepositoryScannerImpl.java:180) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)