Guvnor errors stay forever
by Justin Case
Hi all,
Here's a funny thing I experience:
I declare a function and do the mistake of verifying it before editing anything,
while it's still a template (so it has chevrons). The verify obviously fails -
but with a HTTP error 500! Server crashed?? Indeed I can see in the console:
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
[:6.0.0.Final]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_12]
Caused by: java.lang.RuntimeException: Verifier Errors:
[ERR 102] Line 1:9 mismatched input '<' in function
[ERR 102] Line 1:36 mismatched input '<' in function "calculateAge"
[ERR 102] Line 1:46 mismatched input '>' in function "calculateAge"
Parser returned a null Package
I see quite a few JIRAs about incomplete exception handling - GUVNOR-741,
GUVNOR-690, GUVNOR-536, should I add the above to any of them?
Whatever, an error is an error, but here comes the real problem:
After the above I come to realize that each analysis of a package keeps adding
the results of the previous ones, so the Errors/Warnings list just grows and
grows. An old error will always come again even though the item it refers to is
not even existing anymore (so I cannot analyse/verify anything reliably). I
renamed the above function, I edited it so it doesn't have the chevrons, its
code can be validated fine, but nevertheless Guvnor keeps throwing the same
error 500 and the JBoss console keeps complaining about the oooold function
calculateAge and its chevrons each time I verify or analyse. And it does that by
repeating the message for each retry once more. Either the error list is not
cleaned after the verify, or some artifacts live too long. Logout and relogon
keeps the list, but restarting JBoss solves the problem.
.
I really have the feeling GUVNOR-1499 has the same underlying problem...
For the record: I'm on 5.2.0.Final on JBoss 6, Java 6 on Windows XP.
Thank you very much,
JC
13 years, 4 months
Retrieving Enumerated List from Drools
by lansyj
Hi,
We have a custom CMS which we use to manage content like banner images, and
other personalization content.
We would be using Drools to define user segments and would be associating a
unique code and short name to it - code for the system and short name for
the business users.
Now, is there a way for our custom CMS to be able to retrieve the enumerated
list (basically all possible values of that data element) such that it can
be used for mapping content in the CMS?
Any tip would be helpful.
Best Regards
-lj
--
View this message in context: http://drools.46999.n3.nabble.com/Retrieving-Enumerated-List-from-Drools-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
Using Enumeration for long lists
by lansyj
Hi,
We are planning to use Drools for a Blacklist validation logic which
requires us to manage very long list (could be tens of thousands of IDs).
Can we use the native Drools enumeration for this? Would this be an optimal
implementation?
The other option we were thinking of was to have a list managed separately
in our core application and have in lucene indexed such that Drools rule
checks against the index. But, as you can see, it creates a lot of
development as well as maintenance overhead.
Thanks in advance for any tips on this topic.
Best Regard
-lj
--
View this message in context: http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
delegate a task
by damon
Hi,
I call MinaTaskClient's delegate() method to delegate a task to another
user, I found the state of the task is translate to '*Ready*', instead of
'*Reserved*'.
But from the 'Web Services Human Task Version 1.0' specification, The state
will be translate to 'Reserved' when do delegate -- "A task can be delegated
when it is in an active state (Ready, Reserved, InProgress), and transitions
the task into the Reserved state"
Is there any wrong when I call delegate() method? Or any precondition when
call delegate() method, then the state will be translate to 'Reserved',
instead of 'Ready'?
Thanks
Damon
--
View this message in context: http://drools.46999.n3.nabble.com/delegate-a-task-tp3137901p3137901.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
drools - packaging creates a full snapshot...why?
by jcrowe
I have been using drools for almost a year now and build several packages a
day. Things are starting to slow down a bit and I've started to wonder if
it is because of all the workspace copies and the jcr overhead of them. I
have implemented a deletion of old workspace copies but this made me wonder
why drools is doing (in RulesRepository):
this.session.getWorkspace().copy( source, newName );
its not like i need a copy, once the package is built, it doesn't seem to
'rebuild it' from this snapshot. I have no way of "recovering to" this
snapshot.
Anyone can help me with the reason behind the copy (perhaps why I shouldn't
just delete this copy? I'm sure there are side-effects of this I'm not
thinking of, etc., etc.,)
Any feedback is appreciated.
--
View this message in context: http://drools.46999.n3.nabble.com/drools-packaging-creates-a-full-snapsho...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
Common Practices for warning or debug rules/messages
by wendy
Hi,
I'm working on a system that has a large number of rules and we are
getting to the point where we think it would be useful to have some 'debug'
or 'warning' type rules (for lack of a better word). The warning rules
would be rules that would signal to us that something is wrong with the
underlying data and would require someone to go in and fix something. I was
wondering if there are some standard practice as to how to write, maintain,
format... these rules. I can think of a couple of ways to do this but I
would like the communities opinion. We would also like the ability to turn
on/off these debug or warning rules easily while the rest of the system
keeps on processing.
Thank you,
Wendy
--
View this message in context: http://drools.46999.n3.nabble.com/Common-Practices-for-warning-or-debug-r...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
Drools Ruleflow deadlock issue[thread]
by vdhinesh
Hi,
i am getting the below error while creating the ksession.startProcess()
instance in multithread.
i.e. two thread calling the ksession.startprocess() with the ruleflow as
http://drools.46999.n3.nabble.com/file/n3136706/ruleflow.bmp
based on initial testing i identified due to delete or update sql operation
the below is appearing. Please let me know how to solve this issue
ERROR LOG:
Hibernate: delete from ProcessInstanceInfo where InstanceId=? and OPTLOCK=?
Hibernate: delete from ProcessInstanceInfo where InstanceId=? and OPTLOCK=?
2011/07/04 11:20:06.475{UTC} [JDBCExceptionReporter :
JDBCExceptionReporter.java: logExceptions: 100] [RMI TCP
Connection(6)-10.50.53.32]: WARN: : SQL Error: 60, SQLState: 61000
2011/07/04 11:20:06.475{UTC} [JDBCExceptionReporter :
JDBCExceptionReporter.java: logExceptions: 101] [RMI TCP
Connection(6)-10.50.53.32]: ERROR: : ORA-00060: deadlock detected while
waiting for resource
2011/07/04 11:20:06.475{UTC} [AbstractFlushingEventListener :
AbstractFlushingEventListener.java: performExecutions: 324] [RMI TCP
Connection(6)-10.50.53.32]: ERROR: : Could not synchronize database state
with session
org.hibernate.exception.LockAcquisitionException: could not delete:
[org.drools.persistence.processinstance.ProcessInstanceInfo#8130]
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:112)......
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Ruleflow-deadlock-issue-thread-t...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months