This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn diff -r 35983:36038 . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2010 JBoss Inc | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.drools.RuntimeDroolsException: Unexpected exception executing action org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction@114304e | |
at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1492) | |
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:182) | |
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:145) | |
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:96) | |
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:44) | |
at org.drools.integrationtests.CepEspTest.testIdentityAssertBehaviorOnEntryPoints(CepEspTest.java:1816) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TestCase "RightUnlinkingComplex" | |
/* | |
* A bit more complex, this test case shows that memories get properly populated | |
* when there are loops like the one between Join1 and Join2 here. | |
*/ | |
Setup | |
Config: | |
drools.lrUnlinkingEnabled, true; | |
ObjectTypeNode: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RightTuple first = new RightTuple( | |
(InternalFactHandle) expectedFactHandles.get(0)); | |
List<RightTuple> actualRightTuples = new ArrayList<RightTuple>(); | |
for (RightTuple rightTuple = rightMemory.getFirst(first); rightTuple != null; rightTuple = (RightTuple) rightTuple.getNext()) { | |
actualRightTuples.add(rightTuple); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Creating backup for %DATE% | |
for /F "tokens=1-4 delims=/ " %%A in ('echo %date%') do (set CDATE=%%B%%C%%D) | |
mysqldump -u root brasouverts_development > d:\brasouverts\backup\dump_%CDATE%.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake db:migrate RAILS_ENV=”production” | |
ENV['RAILS_ENV'] ||= 'production' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testRuleRemovalWithJoinedRootPattern() { | |
String str = ""; | |
str += "package org.drools \n"; | |
str += "rule rule1 \n"; | |
str += "when \n"; | |
str += " String() \n"; | |
str += " Person() \n"; | |
str += "then \n"; | |
str += "end \n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public LeftTupleCollection assertLeftTuple(final LeftTupleCollection leftTupleCollection, | |
final PropagationContext context, | |
final InternalWorkingMemory workingMemory) { | |
final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); | |
boolean useLeftMemory = true; | |
LeftTuple leftTuple = leftTupleCollection.getInsert(); | |
LeftTuple rootLeftTuple = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: java.lang.NullPointerException | |
at org.drools.core.util.RightTupleIndexHashTable.remove(RightTupleIndexHashTable.java:264) | |
at org.drools.reteoo.JoinNode.modifyRightTuple(JoinNode.java:236) | |
at org.drools.reteoo.BetaNode.modifyObject(BetaNode.java:316) | |
at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateModifyObject(CompositeObjectSinkAdapter.java:464) | |
at org.drools.reteoo.CompositeObjectSinkAdapter.propagateModifyObject(CompositeObjectSinkAdapter.java:429) | |
at org.drools.reteoo.ObjectTypeNode.modifyObject(ObjectTypeNode.java:263) | |
at org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:172) | |
at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1461) | |
at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1366) |