caused the error org.drools.runtime.rule.ConsequenceException:
by AZZAZ mohamed
Hi,
I use a simple rule in the drl file but when i run the programe i have this
exception i dont now the origine
org.drools.runtime.rule.ConsequenceException: rule: Test
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:916)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:845)
at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1056)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:733)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:699)
at
org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
please you can investigate the issue. thanks
13 years, 3 months
request for help in TwitterCBR
by madhusoodan shanbhag
Hi,
I am having following problem in TwitterCBR example application.
Exception in thread "Thread-0" java.lang.IllegalStateException:
Authentication credentials are missing. See
http://twitter4j.org/configuration.html for the detail.
at
twitter4j.TwitterBaseImpl.ensureAuthorizationEnabled(TwitterBaseImpl.java:205)
at twitter4j.TwitterStreamImpl.sample(TwitterStreamImpl.java:147)
at org.drools.examples.twittercbr.TwitterCBR$1.run(TwitterCBR.java:80)
at java.lang.Thread.run(Unknown Source)
I have configured twitter4j.properties file as following.
debug=true
oauth.consumerKey=BpOiuGBcoZnbHsueuwM0w
oauth.consumerSecret=hQdpWR2Nu6m8vG35ggu1LdAoVfBgKiBsDxq7RDQVA
oauth.accessToken=257812222-aqqkXHdKIcVv0JfGu4oftAmb5uRNNQ9r2i9pzlzj
oauth.accessTokenSecret=1HqzEKEiL6EbzP8SDW6ox5vnc5qxSn1JxQTIsOFujE
Where I am going wrong?
Regards
Madhusoodan
13 years, 3 months
(no subject)
by AZZAZ mohamed
Hi,
I want to convert my file. brl to file. drl. I have this exception. does
anyone has an idea (solution)
thank you in advance
Caused by: com.thoughtworks.xstream.converters.ConversionException:
metadataList : metadataList : metadataList : metadataList
---- Debugging information ----
message : metadataList : metadataList
cause-exception :
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : metadataList : metadataList
class : org.drools.brms.client.modeldriven.brl.RuleModel
required-type : org.drools.brms.client.modeldriven.brl.RuleModel
path : /rule/metadataList
-------------------------------
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
at
org.drools.brms.server.util.BRXMLPersistence.unmarshal(BRXMLPersistence.java:91)
at fr.dto.RulesEngine.<init>(RulesEngine.java:42)
... 2 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException:
metadataList : metadataList
at
com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68)
at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at
com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:71)
13 years, 3 months
drools rasing error while testing in maven environment but same works fine in eclispe test environment
by Kumar, Ravendra
Hi,
I have a rule that is working fine in eclipse junit4 test environment.
Running through maven test environment. It is throwing error.
the description is as below.
rule "insert LNACrossTXPONSatConfig into memory"
when
$TXP: Transponder($ULNK_CHNL_LIST: uplinkChannelConfigurations )
$ULNK_CHNL: ArrayList() from $ULNK_CHNL_LIST
then
insert( new LNACrossTXPOnSatConfig($TXP.satelliteConfigurationUUIDRef.id, $TXP.id, $ULNK_CHNL.uplinkLnaUUIDRef.id, $ULNK_CHNL.uplinkFreqConverterUUIDRef.id) );
**********************************************************************************
infrastructure:
eclipse-ide: indigo
drools lib: drools 5.2.final
eclipse plugin: drools plugin 5.2.final
jdk 6
**********************************************************************************
error:
Unable to Analyse Expression drools.insert(new LNACrossTXPOnSatConfig($TXP.satelliteConfigurationUUIDRef.id, $TXP.id,
$ULNK_CHNL.uplinkLnaUUIDRef.id, $ULNK_CHNL.uplinkFreqConverterUUIDRef.id));:
[Error: unable to resolve method using strict-mode: java.lang.Object.id()]
[Near : {... drools.insert(new LNACrossTXPO ....}]
^
[Line: 3, Column: 98] : [Rule name='insert LNACrossTXPONSatConfig into memory']
**********************************************************************************
Any help would be highly appreciated.
Thanks,
Rav
Think green - keep it on the screen.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
13 years, 3 months
Log4j in the rules?
by granz@MIT.EDU
Hi,
Is it possible to use Log4j inside the rules (RHS)?? (drl file)
Thanks,
Fabrice
13 years, 3 months
Guvnor 5.2.0 (Final) under Geronimo 2.1.4
by john@oa
Guvnor 5.2.0 (Final)
Hello
I need to get Guvnor 5.2.0 (Final) up and running under Geronimo 2.1.4
(Tomcat6 variant).
Have started looking at this and have already found that there are class
loading/conflict issues as the container utilises xstream 1.2.2 and the
Guvnor requires 1.3.1.
There are probably a whole host of other issues. Has anyone used the Guvnor
under Geronimo? Any tips on getting this working much appreciated.
Cheers
John
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-2-0-Final-under-Geronimo-2-1-4...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 3 months
Working with Declared Types
by హరీష్ చౌదరి కూకట్ల
Hello EveryOne,
We are using declared types in our technical rules. But, in the then part of
the rule we want to insert these declared objects to a global list so that I
can get the output. So, is there anyway to insert these declared types into
the list.
Thanks,
Harish
13 years, 3 months
Memory leak in 5.2/5.3
by Swindells, Thomas
I'm in the middle of trying to upgrade our application to Drools 5.2 from 5.1 however I keep facing out of memory issues (I've also tried on the current 5.3 beta).
I've simplified my code into the following test case which on my machine after about 600 or so iterations gives an Out of memory exception:
@Test
public void testCase() throws InterruptedException
{
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
for(int i = 0; i < 1000; i++) {
System.out.println("Run " + i);
StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
for(int j = 0; j < 100; j++) {
session.insert(new byte[10240]);
}
session.dispose();
session = null;
System.gc();
}
}
Am I missing anything here - I'm calling session.dispose() which is all I believe is necessary when finishing the session, however using a profiler shows that all the StatefulKnowledgeSessionImpl and ReteooStatefulSessions are still present and therefore keeping hold of all the byte arrays and memory.
Using a profiler it shows that the GC roots of the StatefulKnowledgeSessionImpl are
kruntime of org.jbpm.process.instance.ProcessRuntimeImpl
kruntime of org.jbpm.process.instance.event.DefaultSignalManager
kruntime of org.jbpm.process.instance.timer.TimerManager
kruntime of org.drools.reteoo.ReteooStatefulSession
Similarly for the ReteooStatefulSession:
session of org.drools.impl.StatefulKnowledgeSessionImpl
session of org.drools.impl.StatefulKnowledgeSessionImpl
workingMemory of org.jbpm.process.instance.ProcessRuntimeImpl
workingMemory of org.jbpm.process.instance.ProcessRuntimeImpl
workingMemory of org.jbpm.process.instance.ProcessRuntimeImpl
Is this a known issue? Am I missing anything in my code above.
I guess the alternative is to reuse my sessions - what is the most efficient way to remove all the facts from the working memory and get it back into a pristine state?
Thanks,
Thomas
________________________________
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster(a)nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
13 years, 3 months
Problem evaluating with Enum
by Hezi Stern
I have encountered the following problem using enums in drools.
I have an enum defined called ETimeConstraint, something of the sort:
public enum ETimeConstraint {
NO_CONSTRAINT,
TODAY,
TOMORROW,
;
}
Now I wish to filter sentences which reside in the working memory based on a
time constraint which is of this enum type.
I created the following test rule
rule "My Test"
when
$sentences: ArrayList()
from collect (IPhoneSentences.Sentence(
descriptor contains ETimeConstraint
))
then
//something
end
this does not work meaning no sentence are selected although I know that
there are sentences in the working memory.
but when I add ETimeConstraint.name it does:
rule "My Test"
when
$sentences: ArrayList()
from collect (IPhoneSentences.Sentence(
descriptor contains ETimeConstraint.name
))
then
//something
end
I can stick to this workaround but it becomes very problematic to work this
way. Furthermore once I wish to define a variable for example defining
$timeConstraint :
rule "My Test"
when
$cm: Condition(
$timeConstraint:
contextIntention,
)
$sentences: ArrayList()
from collect (IPhoneSentences.Sentence(
descriptor contains $timeConstraint
))
then
//something
end
this will not work because I can't put $timeConstraint.name
any suggestions?
I am running:
- Drools 5.2.0
- Eclipse Helios
- JBoss 5.1.0
Thanks
Hezi
13 years, 3 months