Bug 740499
Summary: | NPE when persisting timers | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Tomas Schlosser <tschloss> |
Component: | BRE (Expert, Fusion) | Assignee: | Nobody <nobody> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | BRMS 5.2.0.GA | CC: | mproctor, rzhang |
Target Milestone: | --- | Keywords: | TestBlocker |
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: | 2025-02-10 03:14:14 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: | |||
Bug Depends On: | 724796 | ||
Bug Blocks: |
Description
Tomas Schlosser
2011-09-22 09:10:43 UTC
I'll need a test case to fix this. Add this method to org.drools.timer.integrationtests.TimerAndCalendarTest in drools-persistence-jpa tests. @Test public void testEventExpires() throws Exception { String timerRule = "package org.drools.test\n" + "declare TestEvent \n" + " @role( event )\n" + " @expires( 10s )\n" + "end\n" + "" + "rule TimerRule \n" + " when \n" + " TestEvent( ) from entry-point \"Test\"\n" + " then \n" + "end"; KnowledgeBaseConfiguration kbconf = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); kbconf.setOption(EventProcessingOption.STREAM); KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(kbconf); Resource resource = ResourceFactory.newByteArrayResource(timerRule.getBytes()); Collection<KnowledgePackage> kpackages = buildKnowledgePackage(resource, ResourceType.DRL); kbase.addKnowledgePackages(kpackages); StatefulKnowledgeSession ksession = createSession(kbase); FactType type = kbase.getFactType("org.drools.test", "TestEvent"); Assert.assertNotNull("could not get type", type); ksession = disposeAndReloadSession(ksession,kbase); ksession.getWorkingMemoryEntryPoint("Test").insert(type.newInstance()); ksession.fireAllRules(); ksession = disposeAndReloadSession(ksession,kbase); ksession = disposeAndReloadSession(ksession,kbase); } thanks, I have identified the issue and fixing. I'll have a fix for tomorrow 23/sept. This bug was fixed in BRMS-5.2.0.ER5, marking it verified. This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |