Drools 5.0 to 5.4 upgrade
by Ben Cuthbert
After upgrading the jars to the latest version I am getting this when starting my rules
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Caused by: java.lang.NoSuchFieldError: COMPILER_OPT_ALLOW_RESOLVE_INNERCLASSES_WITH_DOTNOTATION
at org.drools.rule.builder.PatternBuilder.setInputs(PatternBuilder.java:969)
at org.drools.rule.builder.PatternBuilder.buildRelationalExpression(PatternBuilder.java:669)
at org.drools.rule.builder.PatternBuilder.buildExpression(PatternBuilder.java:634)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:618)
at org.drools.rule.builder.PatternBuilder.processConstraintsAndBinds(PatternBuilder.java:449)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:310)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:118)
at org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:67)
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:84)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:2706)
at org.drools.compiler.PackageBuilder.compileRules(PackageBuilder.java:930)
at org.drools.compiler.PackageBuilder.compileAllRules(PackageBuilder.java:839)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:831)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:467)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:673)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:45)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:34)
13 years, 9 months
Problem with ObjectFatory for jaxb objects
by devan.vanreenen@gmail.com
Hi there,
I uploaded a domain model to a package on Guvnor
The imported objects contain jaxb objects from 2 different schemas
included in the package imports are
import uk.co.myapp.rules.ObjectFactory
import uk.co.myapp.rules.domain.policy.ObjectFactory
My rules objects use uk.co.myapp.rules.ObjectFactory but I am trying to
create a function which uses objects that use
uk.co.myapp.rules.domain.policy.ObjectFactory but the function fails to
compile
[calcAgeNext] [ calcAgeNext : Function Compilation error
calcAgeNext (line:-100): The import
uk.co.myapp.rules.domain.policy.ObjectFactory collides with another import
statement
]
Please assist, how can I fix this.
Thanks
Devan
--
View this message in context: http://drools.46999.n3.nabble.com/Problem-with-ObjectFatory-for-jaxb-obje...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 9 months
Memory Control
by Kang Heng WU
Hi All,
The performance of JBoss Expert and Fusion is fine. The throughput of
JBoss Expert and Fusion is about 9900 and 4500 messages per second. But
we meet the following problems.
When the number of handled messages is about 500,000, the performance of
Expert is very slow. Its memory is about 300 Mbyte.
When the number of handled messages is about 300,000, the performance of
Fusion is very slow. Its memory is about 300 Mbyte.
What is the problem? How can we solve it?
Thanks in advance,
Kent
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This message (including any attachments) is for the named
addressee(s)'s use only. It may contain sensitive, confidential,
private proprietary or legally privileged information intended for a
specific individual and purpose, and is protected by law. If you are
not the intended recipient, please immediately delete it and all copies
of it from your system, destroy any hard copies of it
and notify the sender. Any use, disclosure, copying, or distribution of
this message and/or any attachments is strictly prohibited.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 years, 9 months
Disabling strict mode in 5.4
by Joe White
How do you disable strict mode in 5.4? We are using the code below and
getting strict mode exceptions. It worked in prior versions. Do you have
to use the new APIs to disable strict mode?
PackageBuilderConfiguration pkgBuilderCfg = new
PackageBuilderConfiguration();
MVELDialectConfiguration mvelConf = (MVELDialectConfiguration)
pkgBuilderCfg.getDialectConfiguration( "mvel" );
mvelConf.setStrict(false);
mvelConf.setLangLevel(5);
PackageBuilder builder = new PackageBuilder(pkgBuilderCfg);
builder.addPackageFromDrl(new StringReader(drlString));
An example exception:
1.
19:17:51,137|ERROR|drools.DroolsMgr|DroolsMgr.java|159|deployRulesFromMo
delForScope|org.apache.camel.spring.Main.main()|smf-rcp-SNAPSHOT|Failed
to deploy rules from model
2. com.recondotech.hre.rules.management.HRERulesManagmentException:
org.drools.rule.InvalidRulePackage: Unable to Analyse Expression
$existingValue.toLowerCase():
3. [Error: unable to resolve method using strict-mode:
java.lang.Object.toLowerCase()]
4. [Near : {... $existingValue.toLowerCase() ....}]
5. ^ : [Rule
name='PEL_CHANGELIST_RES.AUTH.Actual First Name']
Thanks
Joe
13 years, 9 months
referencing the incoming objects vs the matching object
by Ben Cuthbert
All
If I have an object say
class TestObject {
private String type;
private String name;
}
And I want to match opposite types so I fire in the following
insert(new TestObject("TYPE_1", "This is our type 1 object");
insert(new TestObject("TYPE_2", "This is our type 1 object");
So I want to say only match again opposite types
would this work?
rule "#999 Match"
dialect "mvel"
when
$incoming : TestObject($type: type)
$current : TestObject( type != $type)
then
insert(new String("LOGGING: incoming:" + $incoming.getType() + " current:" + $current.getType() ));
end
13 years, 9 months
Is it possible to select multiple enumerations?
by online.regos@gmail.com
I am using version 5.3.0.Final and would like to know if anyone knows of a way to select multiple enumerations in a guided decision table.
Using the <SHIFT> or <CNTL> keys when trying to select multiple enumerations from a drop down list does not work either.
If anyone has found a way to do this, your advice would be appreciated?
13 years, 9 months
Want to host IntelliFest (previously RuleFest)?
by Mark Proctor
IntelliFest (previously RuleFest) is currently trying to find premises
on the west coast of USA, with near by accomodation, to host 150 people
for 4 days. Interested in hosting?
If so contact me on mproctor at codehaus d0t org
13 years, 9 months