[jboss-jira] [JBoss JIRA] Created: (JBRULES-2181) CLONE -Race conditions in AbstractRuleBase

Neil Wallace (JIRA) jira-events at lists.jboss.org
Tue Jul 7 10:28:51 EDT 2009


CLONE -Race conditions in AbstractRuleBase
------------------------------------------

                 Key: JBRULES-2181
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2181
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-core  (expert)
    Affects Versions: 5.0.0.CR1
         Environment: Windows, Drools CR1
            Reporter: Neil Wallace
            Assignee: Edson Tirelli
             Fix For: 5.0.1.FINAL


ReteooRuleBaseMultiThreadedTest is failing because of race conditions in AbstractRuleBase

java.lang.NullPointerException
	at org.drools.common.AbstractRuleBase.lock(AbstractRuleBase.java:408)
	at org.drools.common.AbstractRuleBase.removePackage(AbstractRuleBase.java:655)
	at org.drools.reteoo.ReteooRuleBaseMultiThreadedTest$PackageModifier.doOperation(ReteooRuleBaseMultiThreadedTest.java:143)
	at org.drools.reteoo.ReteooRuleBaseMultiThreadedTest$BlockedThread.run(ReteooRuleBaseMultiThreadedTest.java:121)

junit.framework.AssertionFailedError: Exception in modifier thread expected:<false> but was:<true>
	at org.drools.reteoo.ReteooRuleBaseMultiThreadedTest.testNewSessionWhileModifyingRuleBase(ReteooRuleBaseMultiThreadedTest.java:80)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list