gives error while retracting an object
by Ganesh
Hi Team,
I am using drools-guvnor 5.4 version and designer 2.1 version,
I am calling an drools object from web service
While retracting an object I am getting
classCastException,"*java.lang.boolean cannot be cast to
org.drools.spi.activation* "
I am using session.retract(droolsobject);-Every time I got the error in this
line
This issue rise very often,
I think this issue is due to increase on load on object ,As I found this is
the reason while I search in INTERNET
Can you please tell me how to solve this
Regards
Ganesh N Neelekani
--
View this message in context: http://drools.46999.n3.nabble.com/gives-error-while-retracting-an-object-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
uninitializedEntityFilter example
by chakez30
I have set my planning variable to be nullable. But using this the
constucution heuristic initializes variables to null values and i think this
is a waste of time for computing the optimal solution. From the documents
you can overwrite this using uninitializedEntityFilter. But it doesnt show
the actual UninitializedTaskFilter.class. What would be the content of this
class? Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/uninitializedEntityFilter-example-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
uninitializedEntityFilter example
by chakez30
I have set my planning variable to be nullable. But using this the
constucution heuristic initializes variables to null values and i think this
is a waste of time for computing the optimal solution. From the documents
you can overwrite this using uninitializedEntityFilter. But it doesnt show
the actual UninitializedTaskFilter.class. What would be the content of this
class? Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/uninitializedEntityFilter-example-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
Drools memory issue
by Sateesh Hegde
Hi Team,
We are using drools 5.2 and here is the memory foot print. This is
the steady state memory after 3 days of testing. We are keeping the
fact in WM and I am fine with the memory consumption from facts.
However I am not able to understand this RightTuple of type
HashMapEntry, and it looks like a leak suspect.
Any help pointer to figure out what are these RightTuple and I also
suspect it is grwoing over a period of time, though my fact count
remain fairly constant.
Thanks and Regards
--
Sateesh Hegde
12 years, 4 months
Ignoring PatternSyntaxException in decison tables
by DOLECEK Ales
Hello,
we have provided users with option to edit some of the rules in Excel table. One of the CONDITIONs uses "matches" operator and the pattern is in the spreadsheet. Users have entered wrong regular expression which, when compiled using Pattern.compile(), throws PatternSyntaxException.
The rules defined in the Excel table are however loaded and merged into the knowledgebase without problems. At runtime during evaluation no error is thrown.
My question is: Is there a way to find out wrong regular expression on the RHS of matches operator during knowledgebase creation?
Ales
12 years, 4 months
What is the side-effect of using the CE "from"?
by Sonata
Hi, I remember seeing some best practice and since then it has been in my
mind that the Drools team actually against the use of CE "from". I do
however find it really useful and use it alot (and in fact everywhere).
Could the Drools team clear this up?
For example, I found it useful because
1. When a fact is inserted into the working memory, "from" conditions are
not evaluated.
This is good because the fact may not be ready yet (e.g. need updating to
fill in more stuff to complete it in some rules) and evaluating the fact too
early may cause exceptions. Using "from" does not suffer from this issue.
2. Also, this is good because I dont get unnecessary calls to getters of
that newly inserted fact for all the rules in the kbase with the class of
that fact in the LHS because they may not be triggered at the end (e.g.
filtered by agenda-groups, activation-groups). I put auditing codes on my
getters to track usage and profiling, hence each call to getters is quite
expensive for me (elapse time recording, database updating, etc.)
3. Once a preceding "from" condition fails, all the subsequent "from"
conditions will not be evaluated. Again, this is good to save unnecessary
member accesses to boost performance.
I know what I dont get using "from" is same pattern node sharing (i.e. same
condition pattern across rules is evaluated only once when "from" is not
used), but it seems to me that the pros outweigh the cons.
Thanks the Drools team for clarifying
--
View this message in context: http://drools.46999.n3.nabble.com/What-is-the-side-effect-of-using-the-CE...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
session deserialization slidingTimeWindow NPE
by Alexander Wolf
Sometimes (I am not sure what the actual reason is yet ) I get following NPE when I try to deserialize my ksessions:
java.lang.NullPointerException
at org.drools.common.ConcurrentNodeMemories.getNodeMemory(ConcurrentNodeMemories.java:63)
at org.drools.common.AbstractWorkingMemory.getNodeMemory(AbstractWorkingMemory.java:1034)
at org.drools.rule.SlidingTimeWindow$BehaviorExpireWMAction.<init>(SlidingTimeWindow.java:460)
This is not a new problem, I found an old post on the mailing list, that describes the same here: (but unfortunately without any answers)
http://drools.46999.n3.nabble.com/rules-users-5-5-0-Final-persistence-to-...
Apparently it's got something to do with slidingTime in one rule, but as it does not always occur - am I quite puzzled.
Any Ideas or Workarounds?
- Alex
12 years, 4 months