Runtime Exception null accessor
by Bojan Janisch
Hello Guys,
I've thought many hours about this problem, but don't know how to fix it. I've also searched the web, getting only some unfinished problems. Maybe someone here knows how to solve it:
Each time I'm running JDrools through my textfiles (I'm using it in textmining concepts), I get the same runtime exception:
25.02.2013 18:03:59 org.apache.uima.collection.impl.cpm.engine.CPMThreadGroup process
SCHWERWIEGEND: The CPM thread group caught the following unhandled error: java.lang.RuntimeException (Thread Name: Thread-5)
25.02.2013 18:03:59 de.fraunhofer.scai.bio.uima.core.deploy.StatusCallbackListenerImpl entityProcessComplete(151)
SCHWERWIEGEND: Exception occurred
java.lang.RuntimeException: Null accessor on node: a1_begin
at de.fraunhofer.scai.bio.uima.core.deploy.StatusCallbackListenerImpl.entityProcessComplete(StatusCallbackListenerImpl.java:151)
at org.apache.uima.collection.impl.cpm.engine.CPMThreadGroup.notifyListener(CPMThreadGroup.java:103)
at org.apache.uima.collection.impl.cpm.engine.CPMThreadGroup.uncaughtException(CPMThreadGroup.java:86)
at java.lang.Thread.dispatchUncaughtException(Thread.java:1888)
For me it looks like an unhandeld race condition (but I'm not quite sure). Does someone have had this or a similar problem regarding null accessors at runtime?
Thanks for your help.
Bojan
13 years, 1 month
Rule IDE
by starfish15
Hello all,
Just want a confirmation of something quite miniscule. Though my teacher at
a very young age had tole me that "No Q can ever be a DUMB Q" ;)
The last time i had checked and had definitely known, that ECLIPSE was the
only IDE which had the RULE IDE plugin. Recently, someone challenged me on
this query and i was a bit flustered.
Hence kindly assist on this query.
Regards,
starfish
--
View this message in context: http://drools.46999.n3.nabble.com/Rule-IDE-tp4022564.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
DB2 and Guvnor
by IPatel
Hi All,
I am trying to configure Guvnor so that it can connect to DB2. I came across
a document online that shows the steps to do this..however i cannot find
that document anymore.
Does anyone have the link/reference/steps on how to do this??
Thank you
--
View this message in context: http://drools.46999.n3.nabble.com/DB2-and-Guvnor-tp4022522.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
Compiled rules differ KnowledgeAgent vs ResourceChangeScanner
by lhorton
Version 5.2.0.Final. I have a DRL file that is loaded into my server using a
change set and Spring configuration. The file loads without error, and I am
able to read the compiled package and print the rule names to confirm they
did load; however, only one of the rules fires. Then I copy (hot-deploy)
the same DRL file to its server-side directory, and the Resource change
Scanner picks it up and reloads it. After reload, all the expected rules
execute.
My guess is that the Spring/KnowledgeAgent compilation is different than the
one done via the resource change scanner. Has anyone else seen this
behavior? Any suggestions for further trouble shooting?
I can attach the change set, spring config and drl file if needed.
--
View this message in context: http://drools.46999.n3.nabble.com/Compiled-rules-differ-KnowledgeAgent-vs...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
KnowledgeAgent: impossible to add a map for a null resource! skiping.
by anikulin
Hi
I've configurated KnowledgeAgent like this and it was working with PKG files
from guvnor, but when i changed path and type of recources to DRL when i
trying to run it on server i have such warning in logs and KnowledgeBase is
empty and no rules are fired:
KnowledgeAgent: impossible to add a map for a null resource! skiping.
KnowledgeBase kbase =
KnowledgeBaseFactory.newKnowledgeBase();
ResourceChangeScannerConfiguration sconf = ResourceFactory
.getResourceChangeScannerService()
.newResourceChangeScannerConfiguration();
sconf.setProperty("drools.resource.scanner.interval",
scannerInterval);
ResourceFactory.getResourceChangeScannerService().configure(sconf);
KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory
.newKnowledgeAgentConfiguration();
aconf.setProperty("drools.agent.scanDirectories", "true");
aconf.setProperty("drools.agent.scanResources", "true");
aconf.setProperty("drools.agent.newInstance", "true");
kagent = KnowledgeAgentFactory.newKnowledgeAgent("changeSetAgent",
kbase, aconf);
kagent.applyChangeSet(ResourceFactory
.newClassPathResource("ChangeSet.xml"));
But this warn I have only with server deploying, when i run this program
just as standalone java program everythink is ok and rules are firing.
My ChangeSet.xml looks like this:
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...'>
<add>
<resource
source='http://localhost:8083/drools-guvnor/rest/packages/magick/source'
type='DRL' basicAuthentication="enabled" username="admin"
password="admin" />
</add>
</change-set>
P.S. I have to change PKG type to DRL, cause drools ignore calendars clause
in compiled rules from guvnor.
Can you help me to solve this problem?
Thanks, Anton
--
View this message in context: http://drools.46999.n3.nabble.com/KnowledgeAgent-impossible-to-add-a-map-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
Editing DefaultAgenda.java file from org.drools.common
by Mallory
Hello,
I would be grateful to receive some help regarding editing Drools engine
source code. I am looking at making the drools engine execute rules parallel
so I went ahead and changed the DefaultAgenda.java source file. On running
this file everything worked perfectly well. I tried to run two different for
loops from 1 to 500 in two different rules and I saw that both threads were
working together.
On the other hand when I make a jar file of this by using the class file for
DefaultAgenda and try to run in a new project I am getting the error below:
java.lang.NoSuchMethodError:
org.drools.RuleBaseConfiguration.getComponentFactory()Lorg/drools/reteoo/ReteooComponentFactory;
at org.drools.common.DefaultAgenda.setWorkingMemory(DefaultAgenda.java:215)
at
org.drools.reteoo.ReteooWorkingMemory.<init>(ReteooWorkingMemory.java:110)
at
org.drools.reteoo.ReteooStatefulSession.<init>(ReteooStatefulSession.java:81)
at
org.drools.reteoo.ReteooRuleBase.newStatefulSession(ReteooRuleBase.java:402)
at
org.drools.reteoo.ReteooRuleBase.newStatefulSession(ReteooRuleBase.java:387)
at
org.drools.impl.KnowledgeBaseImpl.newStatefulKnowledgeSession(KnowledgeBaseImpl.java:176)
at
org.drools.impl.KnowledgeBaseImpl.newStatefulKnowledgeSession(KnowledgeBaseImpl.java:163)
at drools.main.DroolsApi.createKnowledgeBase(DroolsApi.java:38)
at drools.main.TestMain.main(TestMain.java:8)
Can someone please help me fix this issue?
Thanks in advance:)
--
View this message in context: http://drools.46999.n3.nabble.com/Editing-DefaultAgenda-java-file-from-or...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
GC Overhead Limit Exceeded and 1B JoinLeftNode Objects
by Julian Klein
Hi all,
I trying to run Drools Expert with varying sizes of memory, but no matter
how large I go the system continues to thrown OoM Exceptions. As my
application runs memory slowly, but steadily dries up. Perhaps this is
related to the other recent thread regarding memory leaks? I have searched
high and low in the forums with no luck on what could cause this problem.
It seems like a memory leak to me at this point as I have profiled and
found no problems in my code.
How My App Works:
Anyway, my application creates a StatefulKnowledgeSession with ~100 rules,
inserts a 1000 facts, fires all rules, inserts new facts created from the
first run, changes the agenda, fires rules again and then disposes the
session and related resources. It does this in tight loops, thousands of
times. This means there should not be 1B objects floating around in memory
from Drools.
I have thought of a few ways out:
1) reduce the speed at which I create and dispose rule sessions; not ideal
for performance
2) re-using the session though this seems it will cause more memory issues
3) move to stateless knowledge sessions, but for some reason some of my
utility functions fail with this approach.
Any insight would be appreciated.
Thanks,
Julian
13 years, 1 month