Hibernate Configuration with Drools 5.4
by zeeshan
Hi All !
I want to use Hibernate for database persistence in my drools project.
Please suggest me the steps. I am using 5.4.0 final version. Which version
of hibernate I shall use whether 3.1 or Annotation one.....?? I have idea
about 3.1. Actually I am having 50,000 records in one of my Decision table,
so it is taking too much time to give the result. Now I have decided to use
move this to database. So please tell me configuration steps.
Thanks !!
--
View this message in context: http://drools.46999.n3.nabble.com/Hibernate-Configuration-with-Drools-5-4...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
break points in drl file
by al so
has anyone tried putting break points in drl file as part of a Spring MVC
app?
no clue on which Main method to choose when doing Debug As Drools
Application from eclipse 3.6/3.7 in this situation.
13 years, 8 months
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.
13 years, 8 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.
13 years, 8 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.
13 years, 8 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.
13 years, 8 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
13 years, 8 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
13 years, 8 months