[JBoss JIRA] (DROOLS-4731) Working with Long field
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-4731?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-4731.
---------------------------------
Resolution: Rejected
There's no reason why you should be allowed to call a method accepting a Long passing an int to into inside a consequence. You cannot do this in Java and the consequence is basically Java code. It works in mvel (in some cases) but with the introduction of the executable model we want a more strictly typed drl.
> Working with Long field
> -----------------------
>
> Key: DROOLS-4731
> URL: https://issues.jboss.org/browse/DROOLS-4731
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.28.0.Final
> Reporter: Pavel Tavoda
> Assignee: Mario Fusco
> Priority: Major
> Attachments: error-with-long.zip
>
>
> Setting long field value in THEN:
> This are 3 different problems:
> 1) package as kjar with 'mvn clean install' result in "Error: unable to resolve method using strict-mode: org.drools.core.spi.Activation.setValue(java.lang.Integer)"
> RESULT:
> IntInRuleJava.drl - FAIL
> IntInRuleMvel.drl - FAIL
> LongInRuleJava.drl - OK
> LongInRuleMvel.drl - FAIL
> LongError.gdst - FAIL
> 2) package as kjar with 'mvn clean install -Ddrools.dialect.mvel.strict=false', same error on different files:
> IntInRuleJava.drl - FAIL
> IntInRuleMvel.drl - OK
> LongInRuleJava.drl - OK
> LongInRuleMvel.drl - OK
> LongError.gdst - OK
> 3) with 'mvn clean install -DgenerateModel=YES' it result in 'incompatible types: int cannot be converted to java.lang.Long', setting strict false have no influence on result
> IntInRuleJava.drl - FAIL
> IntInRuleMvel.drl - FAIL
> LongInRuleJava.drl - OK
> LongInRuleMvel.drl - OK
> LongError.gdst - FAIL
> Setting 'drools.dialect.mvel.strict' in kmodule.xml doesn't work.
> Example project attached.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (DROOLS-4669) Scanner is not using container ClassLoader
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-4669?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-4669.
---------------------------------
Resolution: Cannot Reproduce
> Scanner is not using container ClassLoader
> ------------------------------------------
>
> Key: DROOLS-4669
> URL: https://issues.jboss.org/browse/DROOLS-4669
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.28.0.Final
> Environment: Java 11, Java 8, Linux Debian
> Reporter: Pavel Tavoda
> Assignee: Mario Fusco
> Priority: Major
> Attachments: drools-sample.zip, screenshot-1.png
>
>
> I had issue with standard Spring project. My configuration ended with following exception:
> {code:java}
> Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
> at org.drools.compiler.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:117)
> {code}
> Because of this I have to setup KieSession this way:
> {code:java}
> KieServices kieServices = KieServices.Factory.get();
> ReleaseId kieRelease = kieServices.newReleaseId("sk.f4s", "encounter-rule", "1.0.0-SNAPSHOT");
> KieContainer kieContainer = kieServices.newKieContainer(kieRelease, this.getClass().getClassLoader());
> kieSession = kieContainer.newStatelessKieSession();
> {code}
> After this everything works fine. However I want to reload my kBase with scanner. I add following two lines:
> {code:java}
> kieScanner = kieServices.newKieScanner(kieContainer);
> kieScanner.start(1000l);
> {code}
> After this following exception is raised:
> {code}
> Exception in thread "Timer-0" java.lang.RuntimeException: Unable to load dialect 'org.drools.compiler.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.compiler.rule.builder.dialect.java.JavaDialectConfiguration'
> at org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl.addDialect(KnowledgeBuilderConfigurationImpl.java:394)
> at org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl.buildDialectConfigurationMap(KnowledgeBuilderConfigurationImpl.java:380)
> at org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl.init(KnowledgeBuilderConfigurationImpl.java:235)
> at org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl.init(KnowledgeBuilderConfigurationImpl.java:187)
> at org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl.<init>(KnowledgeBuilderConfigurationImpl.java:155)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.getBuilderConfiguration(AbstractKieProject.java:302)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.createKnowledgeBuilder(AbstractKieProject.java:288)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:213)
> at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:75)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:271)
> at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieModule(KieBuilderImpl.java:264)
> at org.drools.compiler.kie.builder.impl.InternalKieModule.build(InternalKieModule.java:120)
> at org.kie.scanner.KieRepositoryScannerImpl.updateKieModule(KieRepositoryScannerImpl.java:200)
> at org.kie.scanner.KieRepositoryScannerImpl.internalUpdate(KieRepositoryScannerImpl.java:185)
> at org.kie.scanner.KieRepositoryScannerImpl.internalUpdate(KieRepositoryScannerImpl.java:55)
> at org.drools.compiler.kie.builder.impl.AbstractKieScanner.scanNow(AbstractKieScanner.java:147)
> at org.drools.compiler.kie.builder.impl.AbstractKieScanner$ScanTask.run(AbstractKieScanner.java:127)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
> Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
> at org.drools.compiler.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:117)
> at org.drools.compiler.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:78)
> at org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl.addDialect(KnowledgeBuilderConfigurationImpl.java:390)
> ... 18 more
> {code}
> I guess reason is that scanner is not using ClassLoader from KieContainer. Of course it will be better to fix reason why 'The Eclipse JDT Core jar is not in the classpath' is raised anyway because I'm using just standard Spring Web project with two Spring contexts (application and Web) what is very standard approach. Compiler IS awailable on classpath only Drools classloader doesn't see it.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (WFLY-12446) Memory leak in StatelessSessionComponent
by Romain Pelisse (Jira)
[ https://issues.jboss.org/browse/WFLY-12446?page=com.atlassian.jira.plugin... ]
Romain Pelisse closed WFLY-12446.
---------------------------------
Resolution: Explained
> Memory leak in StatelessSessionComponent
> ----------------------------------------
>
> Key: WFLY-12446
> URL: https://issues.jboss.org/browse/WFLY-12446
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld, EJB
> Affects Versions: 17.0.1.Final
> Reporter: Joerg Baesner
> Assignee: Cheng Fang
> Priority: Major
> Attachments: dump-weld.png, playground-jee8.zip, server.log.gz, wfly-12446-heap-dump.png
>
>
> When running the attached reproducer application and doing a memory analysis afterwards, it looks like a memory leak, e. g.
> {code}
> One instance of "org.jboss.as.ejb3.component.stateless.StatelessSessionComponent" loaded by "org.jboss.modules.ModuleClassLoader @ 0x5e0fbc2e0" occupies 936,593,520 (96.13%) bytes. The memory is accumulated in one instance of "java.util.concurrent.ConcurrentLinkedQueue$Node" loaded by "<system class loader>".
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (DROOLS-4743) Add empty background data row on migration
by Gabriele Cardosi (Jira)
Gabriele Cardosi created DROOLS-4743:
----------------------------------------
Summary: Add empty background data row on migration
Key: DROOLS-4743
URL: https://issues.jboss.org/browse/DROOLS-4743
Project: Drools
Issue Type: Bug
Components: Scenario Simulation and Testing
Reporter: Gabriele Cardosi
Assignee: Gabriele Cardosi
During 1.7 -> 1.8 migration background model is created but without empty background data - must add otherwise backend code is broken
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (DROOLS-4742) [DMN Designer] Code Completion - Add suggestions about "requirements" and/or "dependencies" of a decision node
by Guilherme Gomes (Jira)
[ https://issues.jboss.org/browse/DROOLS-4742?page=com.atlassian.jira.plugi... ]
Guilherme Gomes updated DROOLS-4742:
------------------------------------
Description:
Add suggestions about "requirements" and/or "dependencies" of a decision node.
For instance, when a *Decision* {{routing}} has *Input Data* {{Customer}} in the information requirement, the code completion must show the suggestion {{Customer}}.
was:
Add suggestions about "requirements" and/or "dependencies" of a decision node.
For instance, when a Decision {{routing}} has Input Data {{Customer}} in the information requirement, the code completion must show the suggestion {{Customer}}.
> [DMN Designer] Code Completion - Add suggestions about "requirements" and/or "dependencies" of a decision node
> --------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-4742
> URL: https://issues.jboss.org/browse/DROOLS-4742
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Guilherme Gomes
> Priority: Major
> Labels: drools-tools
>
> Add suggestions about "requirements" and/or "dependencies" of a decision node.
> For instance, when a *Decision* {{routing}} has *Input Data* {{Customer}} in the information requirement, the code completion must show the suggestion {{Customer}}.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months
[JBoss JIRA] (DROOLS-4741) [DMN Designer] Basic Code Completion for DMN Literal Expressions (7.7)
by Guilherme Gomes (Jira)
Guilherme Gomes created DROOLS-4741:
---------------------------------------
Summary: [DMN Designer] Basic Code Completion for DMN Literal Expressions (7.7)
Key: DROOLS-4741
URL: https://issues.jboss.org/browse/DROOLS-4741
Project: Drools
Issue Type: Epic
Components: DMN Editor
Reporter: Guilherme Gomes
Assignee: Guilherme Gomes
Users must have a basic code completion for DMN Literal Expressions.
This task is a MVP, and don't have any backend logic. The code completion is powered by a simple autocompleted of FEEL functions and a simple code highlight.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 8 months