[JBoss JIRA] (JBRULES-2355) Flow StatelessKnowledgeBase node
by Tihomir Surdilovic (Jira)
[ https://issues.redhat.com/browse/JBRULES-2355?page=com.atlassian.jira.plu... ]
Tihomir Surdilovic closed JBRULES-2355.
---------------------------------------
Resolution: Out of Date
> Flow StatelessKnowledgeBase node
> --------------------------------
>
> Key: JBRULES-2355
> URL: https://issues.redhat.com/browse/JBRULES-2355
> Project: JBRULES
> Issue Type: Feature Request
> Components: drools-process
> Reporter: Mark Proctor
> Assignee: Tihomir Surdilovic
> Priority: Major
> Fix For: 6.0.0.Alpha1
>
>
> We should be able to have a node that takes a changeset that produces a kbase that is local to the node on which we can execute stateless executions. So the node takes a configuration of a changeset. Then it also takes configuration of how of what execute - maybe reuse the command script builder from the flow services integration JBRULES-2354.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 6 months
[JBoss JIRA] (JBRULES-2358) ClassNotFoundException when using "mvel" as a dialect
by Tihomir Surdilovic (Jira)
[ https://issues.redhat.com/browse/JBRULES-2358?page=com.atlassian.jira.plu... ]
Tihomir Surdilovic closed JBRULES-2358.
---------------------------------------
Resolution: Out of Date
> ClassNotFoundException when using "mvel" as a dialect
> -----------------------------------------------------
>
> Key: JBRULES-2358
> URL: https://issues.redhat.com/browse/JBRULES-2358
> Project: JBRULES
> Issue Type: Bug
> Affects Versions: 5.0.1.FINAL
> Environment: OS: Macos X and Linux
> JVM 1.6.0_15 from sun
> Reporter: stephane Brossier
> Assignee: Tihomir Surdilovic
> Priority: Major
> Fix For: 6.0.0.Alpha1
>
> Attachments: Test.java
>
>
> I get a ClassNotFoundexception when using a very simple rule and test. The test dowloads a binary package from guvnor, containing one trivial rule. Then it creates a StatefulKnowledgeSession and insert 500 facts. The drl file uploaded on guvnor is:
> --------------------------
> package mytest.debug.rules
> declare PerUserCount
> num : long
> profile : String
> end
> rule "Event"
> dialect "java"
> when
> e: PerUserCount()
> then
> System.out.println("Possible spammer [p=" + e.getProfile() + "] : count = " + e.getNum());
> end
> ----------------------------
> When calling fireAll, i get an exception. Note that:
> 1) The exception does not show up right away-- it only comes after some of those facts got processed
> 2) If i change the dialect from default 'mvel" to "java" it works fine:
> Exception in thread "main" java.lang.NoClassDefFoundError: mytest/debug/rules/PerUserCount
> at ASMAccessorImpl_7377369041259611028980.getValue(Unknown Source)
> at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:66)
> at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:99)
> at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:102)
> at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:102)
> at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:102)
> at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:41)
> at ASMAccessorImpl_7157329411259611028970.getValue(Unknown Source)
> at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:66)
> at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:99)
> at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
> at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:107)
> at org.mvel2.MVEL.executeExpression(MVEL.java:978)
> at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:87)
> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:934)
> at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:885)
> at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1086)
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:660)
> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:627)
> at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:183)
> at com.drools.debug.Test.runIteration(Test.java:132)
> at com.drools.debug.Test.startTest(Test.java:73)
> at com.drools.debug.Test.main(Test.java:196)
> Caused by: java.lang.ClassNotFoundException: mytest.debug.rules.PerUserCount
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
> ... 23 more
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 6 months
[JBoss JIRA] (JBRULES-2386) Matches constraint fails to match regex
by Tihomir Surdilovic (Jira)
[ https://issues.redhat.com/browse/JBRULES-2386?page=com.atlassian.jira.plu... ]
Tihomir Surdilovic closed JBRULES-2386.
---------------------------------------
Resolution: Out of Date
> Matches constraint fails to match regex
> ---------------------------------------
>
> Key: JBRULES-2386
> URL: https://issues.redhat.com/browse/JBRULES-2386
> Project: JBRULES
> Issue Type: Bug
> Affects Versions: 5.0.1.FINAL
> Reporter: Nick Heudecker
> Assignee: Tihomir Surdilovic
> Priority: Major
> Fix For: 6.0.0.Alpha1
>
> Attachments: drools-example.zip
>
>
> This rule fails to evaluate correctly:
> rule "Test Regex"
> when
> $q : Query()
> $g : QueryGroup() from $q.groups
> $f : QueryFilter(name == "address", regex == true) from $g.filters
> $p : Person(address.value matches $f.value)
> then
> System.out.println("Found regex match");
> end
> I've attached an example project that reproduces the problem.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 6 months
[JBoss JIRA] (JBRULES-2253) ClassNotFound when ASM optimizer kicks in in MVEL consequence
by Tihomir Surdilovic (Jira)
[ https://issues.redhat.com/browse/JBRULES-2253?page=com.atlassian.jira.plu... ]
Tihomir Surdilovic closed JBRULES-2253.
---------------------------------------
Resolution: Out of Date
> ClassNotFound when ASM optimizer kicks in in MVEL consequence
> -------------------------------------------------------------
>
> Key: JBRULES-2253
> URL: https://issues.redhat.com/browse/JBRULES-2253
> Project: JBRULES
> Issue Type: Bug
> Components: drools-core
> Affects Versions: 5.0.1.FINAL
> Reporter: Michael Neale
> Assignee: Tihomir Surdilovic
> Priority: Critical
> Fix For: 6.0.0.Alpha1
>
> Attachments: EvaluationTests.java, fibonacci.drl, repository_export_mic.zip
>
>
> (ok if the subject is really confusing, perhaps this bug isn't for you).
> In chasing down JBRULES-2234 I found this. Instructions (apologies for relying on Guvnor to reproduce):
> To reproduce is not
> easy, but here are some instructions:
> * Run latest Guvnor (if you are able to, if not, then the rest is moot !).
> * Import the attached repo (unzip it first).
> * browse to KnowledgeBases/org/acme/insurance/pricing/
> - press "build package"
> * shut it down, restart (flushes caches etc...)
> Then:
> * browse to KnowledgeBases/org/acme/insurance/pricing/Test Scenarios
> * open PolicyQuotePackageTest
> * run it:
> Now you should see an exception like this:
> Caused by: java.lang.NoClassDefFoundError: org/acme/insurance/Policy
> at ASMAccessorImpl_62408281250565694450.setValue(Unknown Source)
> at org.mvel2.optimizers.dynamic.DynamicSetAccessor.setValue(DynamicSetAccessor.java:74)
> at org.mvel2.compiler.CompiledAccExpression.setValue(CompiledAccExpression.java:47)
> at org.mvel2.MVEL.executeSetExpression(MVEL.java:962)
> at org.mvel2.ast.WithNode$ParmValuePair.eval(WithNode.java:242)
> at org.mvel2.ast.WithNode.getReducedValueAccelerated(WithNode.java:67)
> at org.mvel2.ast.InterceptorWrapper.getReducedValueAccelerated(InterceptorWrapper.java:38)
> at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
> at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:104)
> at org.mvel2.MVEL.executeExpression(MVEL.java:995)
> at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:91)
> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:966)
> This is due to it loading a previously serialized version of the KB.
> If it was to run off a freshly compiled one, its all fine. Also, if I
> tell MVEL to NOT use ASM optimizer, it works fine (using reflection).
> So clearly the stuff is available to the classpath in the right
> places... its only to do with ASM in mvel post deserialization. (and
> for that to happen, MVEL has to execute the compiled expression enough
> to kick in the JIT).
> MVELCompilationUnit in drools is worth examining too... still not sure where the problem lies.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 6 months
[JBoss JIRA] (WFLY-13314) Metrics smallrye contains duplicated help lines
by Matthias Depuydt (Jira)
Matthias Depuydt created WFLY-13314:
---------------------------------------
Summary: Metrics smallrye contains duplicated help lines
Key: WFLY-13314
URL: https://issues.redhat.com/browse/WFLY-13314
Project: WildFly
Issue Type: Bug
Affects Versions: 18.0.1.Final
Reporter: Matthias Depuydt
Assignee: Brian Stansberry
The metrics endpoint on which the wildfly microprofile-metrics-smallrye:2.0 subsystem exposes all metrics can't be scraped with prometheus.
Both the base_gc_time_total & base_gc_total metrics have their help line duplicated which causes prometheus to throw the following error:
Could not build time series for component wildfly: text format parsing error in line 34: second HELP line for metric name "base_gc_total"
I have confirmed this is the case for wildfly 18.0.1
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 6 months