System problems
by paco
I am using Drools 5.4.0, guvnor 5.3.0 and default database.
I imported the rules with XML file (550 KB) in Guvnor. After I can check,
validate and test (with run analysis button) the rules without problems.
Everything works fine.
After when I import ed other rules XML file (30,000 KB), I realized that the
system becomes too slow and obviously I can no longer veifier, validate or
test my rules. I get errors like the following:
Please suggest
King regards
--
View this message in context: http://drools.46999.n3.nabble.com/System-problems-tp4018361.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
ResourceCompilationFailedEvent - when does it happen, and why?
by Gustaf Cele
I'm trying to understand what KnowledgeAgentEventListener. resourceCompilationFailed signifies, and when it occurs. The javadocs don't say anything, and it's not entirely obvious from looking at the code what causes it. Suppose I have KnowledgeAgent with newInstance=true and initialized with a changeset which links to a Guvnor instance like this:
<change-set >
<add>
<resource type="PKG"
source="http://guvnor-host/drools-guvnor/org.drools.guvnor.Guvnor/package/com.exa..." />
</add>
</change-set>
Just throwing syntax errors into the rules in Guvnor obviously doesn't work, since I can't even build the binary package then. Is there any way to provoke this event with the above setup, so I can see how it affects my application? I'm using Drools 5.4.0.Final.
12 years, 4 months
Guvnor jackrabbit session issue?
by drdaveg
I am moving some working Eclipse-developed code to Guvnor and am seeing a
huge number of messages logged for jackrabbit "session that has already been
closed". This happens nearly continuously, with the session number
ascending:
11:18:01,889 WARN [org.apache.jackrabbit.core.session.SessionState]
(Finalizer) Attempt to close session-guest-45 after it has alre
ady been closed. Please review your code for proper session management.:
java.lang.Exception: Stack trace of the duplicate attempt t
o close session-guest-45
Trying to debug the working code moved from my local system Guvnor that say
to check the log. These session messages consume thousands of lines of
warnings (at dozens per button press) that finding any "real" error messages
seems impossible (even with automated searches).
This issue has been posted on other forums but I don't see anything here.
Is there a work around this issue - hopefully correcting the session
persistence, as opposed to changing the logging level? I am guessing
leaving Guvnor ungracefully causes an endless stream of these (forever).
Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-jackrabbit-session-issue-tp38680...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months
debug drools in Spring environment
by al so
Environment: Eclipse Indigo, Drools Core,Guvnor,Task 5.2.1.Final, Spring
MVC 3.x
How would one do Debug As Drools Application in this scenario to hit a
break point in the drl file?
You get a a big list of Crap from Eclipse where my drools app is not even
listed although I performed the Drools app conversion.
Eclipse looks for Main method but this is a Spring MVC app.
12 years, 5 months
NullPointerException when deploying drools-core-5.4.0.Final (OSGi)
by Nicholas Hemley
Hello,
I have the following error deploying drools-core-5.4.0.Final to ServiceMix 4.4.x
The error is as follows:
java.lang.NullPointerException
at org.apache.felix.framework.resolver.ResolverImpl.toStringBlame(ResolverImpl.java:1521)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:860)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:130)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.felix.framework.Felix$StatefulResolver.resolve(Felix.java:4129)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3459)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.felix.framework.Felix.startBundle(Felix.java:1739)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:914)[org.apache.felix.framework-3.0.9-fuse-07-03.jar:]
at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:54)[24:org.apache.karaf.shell.osgi:2.2.2.fuse-06-03]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:240)[26:org.apache.karaf.shell.console:2.2.2.fuse-06-03]
All the necessary bundle dependencies are installed ok.
How do I fix this please?
Cheerio,
Nic
12 years, 5 months
Drools-Camel Server > Commands in separate jar?
by Nicholas Hemley
Hello,
I have made a Drools Client that connects to the Drools-Camel Server using XML generated from the Command objects.
However, when I deploy my client (to ServiceMix) it has a dependency on drools-core (since the Commands are in this project), thus I have to include quite a few unnecessary transitive dependencies.
Would it be an idea for the Commands to be split into a separate 'drools-common' project (with jar artifact) to avoid this?
I suppose one option for me is to export them from drools-core and construct this jar myself...
Cheerio,
Nic
12 years, 5 months
Import into specific package GUVNOR help !
by abhinay_agarwal
hello,
m using GUVNOR v5.3.0
i upload a POJO JAR in global area and created a rule using it in the global
area..
now, when i imported the same jar into a package and tried making rules
using it, it shows me the following error..
Note: No model has been defined.
Tip: You will want to import or define a model for this user interface to
work !
M, i doing something wrong, can yu plz help me out !!
Thanks,
Abhinay
--
View this message in context: http://drools.46999.n3.nabble.com/Import-into-specific-package-GUVNOR-hel...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months
Does Drools Fusion consume a lot of memory?
by chrisLi
Hi, Edson and all
I am making an experiment on Drools Fusion these days. I found it
consumes a lot of memory. And the
number of rules, the fields of events, the complexity of rules affect the
memory usage.
The flow of my experiment is as follow:
1. I have two tables, one for Transaction, one for account. The
transaction table have a foreign key
number which is the primary key of account table.
2. In one thread, I loaded transaction data and account data into a
ArrayBlockingQueue, whose size is 100000.
3. In another thread, I inserted the Transaction as events and the
related account as facts into the
Fusion Engine.
4. I used a java profiler tool to monitor the memory usage of the Fusion
engine, and recorded the
highest heap memory usage of ecah round of my experiment.
Here is the results:
Amount of events highest heap memory usage(MB)
5000 268
10000 470
15000 555
20000 645
25000 845
30000 958
35000 1011
40000 1127
45000 1331
Is this the normal memory usage of Drools Fusion? Otherwise, did I make a
mistake?
See the attachments for the rules and Java Model classes . If you are
intrested in this experiment, I can upload all codes.
Thank you very much. I will appreciate for your response.
http://drools.46999.n3.nabble.com/file/n4018307/Cep1.drl Cep1.drl
http://drools.46999.n3.nabble.com/file/n4018307/TransactionEvent.java
TransactionEvent.java
http://drools.46999.n3.nabble.com/file/n4018307/Account.java Account.java
--
View this message in context: http://drools.46999.n3.nabble.com/Does-Drools-Fusion-consume-a-lot-of-mem...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months