[JBoss JIRA] (DROOLS-4894) DomainClassesMetadata java files are created under directories with dot separated name
by Edoardo Vacchi (Jira)
[ https://issues.redhat.com/browse/DROOLS-4894?page=com.atlassian.jira.plug... ]
Edoardo Vacchi commented on DROOLS-4894:
----------------------------------------
is this still happening on master? I though [~mfusco] had fixed this already
> DomainClassesMetadata java files are created under directories with dot separated name
> --------------------------------------------------------------------------------------
>
> Key: DROOLS-4894
> URL: https://issues.redhat.com/browse/DROOLS-4894
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.31.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Luca Molteni
> Priority: Minor
>
> DomainClassesMetadataXXX java source files are created under directories with dot separated name instead of usual package hierarchy. It doesn't seem to cause issues though.
> For example, when I run kogito-examples/drools-quarkus-unit-example
> {noformat}
> $ mvn clean package
> ...
> $ tree target/generated-sources/
> target/generated-sources/
> ├── annotations
> └── kogito
> ├── org
> │ ├── drools
> │ │ └── project
> │ │ └── model
> │ │ ├── ProjectModel.java
> │ │ └── ProjectRuntime.java
> │ └── kie
> │ └── kogito
> │ ├── examples
> │ │ ├── ApplicationConfig.java
> │ │ └── Application.java
> │ ├── queries
> │ │ ├── AdultUnitDTO.java
> │ │ ├── AdultUnitQueryFindAdultNamesEndpoint.java
> │ │ ├── AdultUnitQueryFindAdultsEndpoint.java
> │ │ ├── AdultUnitQueryFindNotAdultNamesAndAgeEndpoint.java
> │ │ ├── AdultUnitRuleUnitInstance.java
> │ │ ├── AdultUnitRuleUnit.java
> │ │ ├── RulesF894883E1030542FEFCE9860F835B9B7_AdultUnit.java
> │ │ ├── RulesF894883E1030542FEFCE9860F835B9B7_AdultUnitRuleMethods0.java
> │ │ └── RulesF894883E1030542FEFCE9860F835B9B7.java
> │ └── rules
> │ └── alerting
> │ ├── LoggerServiceRuleUnitInstance.java
> │ ├── LoggerServiceRuleUnit.java
> │ ├── MonitoringServiceRuleUnitInstance.java
> │ ├── MonitoringServiceRuleUnit.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2_LoggerService.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2_LoggerServiceRuleMethods0.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2_MonitoringService.java
> │ └── Rules4723952D402A230BDB0E7081EBBA10E2_MonitoringServiceRuleMethods0.java
> ├── org.kie.kogito.queries
> │ └── DomainClassesMetadataF894883E1030542FEFCE9860F835B9B7.java
> └── org.kie.kogito.rules.alerting
> └── DomainClassesMetadata4723952D402A230BDB0E7081EBBA10E2.java
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-4894) DomainClassesMetadata java files are created under directories with dot separated name
by Edoardo Vacchi (Jira)
[ https://issues.redhat.com/browse/DROOLS-4894?page=com.atlassian.jira.plug... ]
Edoardo Vacchi edited comment on DROOLS-4894 at 12/24/19 2:25 AM:
------------------------------------------------------------------
is this still happening on master? I though [~mfusco] had fixed this already (kogito)
was (Author: evacchi):
is this still happening on master? I though [~mfusco] had fixed this already
> DomainClassesMetadata java files are created under directories with dot separated name
> --------------------------------------------------------------------------------------
>
> Key: DROOLS-4894
> URL: https://issues.redhat.com/browse/DROOLS-4894
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.31.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Luca Molteni
> Priority: Minor
>
> DomainClassesMetadataXXX java source files are created under directories with dot separated name instead of usual package hierarchy. It doesn't seem to cause issues though.
> For example, when I run kogito-examples/drools-quarkus-unit-example
> {noformat}
> $ mvn clean package
> ...
> $ tree target/generated-sources/
> target/generated-sources/
> ├── annotations
> └── kogito
> ├── org
> │ ├── drools
> │ │ └── project
> │ │ └── model
> │ │ ├── ProjectModel.java
> │ │ └── ProjectRuntime.java
> │ └── kie
> │ └── kogito
> │ ├── examples
> │ │ ├── ApplicationConfig.java
> │ │ └── Application.java
> │ ├── queries
> │ │ ├── AdultUnitDTO.java
> │ │ ├── AdultUnitQueryFindAdultNamesEndpoint.java
> │ │ ├── AdultUnitQueryFindAdultsEndpoint.java
> │ │ ├── AdultUnitQueryFindNotAdultNamesAndAgeEndpoint.java
> │ │ ├── AdultUnitRuleUnitInstance.java
> │ │ ├── AdultUnitRuleUnit.java
> │ │ ├── RulesF894883E1030542FEFCE9860F835B9B7_AdultUnit.java
> │ │ ├── RulesF894883E1030542FEFCE9860F835B9B7_AdultUnitRuleMethods0.java
> │ │ └── RulesF894883E1030542FEFCE9860F835B9B7.java
> │ └── rules
> │ └── alerting
> │ ├── LoggerServiceRuleUnitInstance.java
> │ ├── LoggerServiceRuleUnit.java
> │ ├── MonitoringServiceRuleUnitInstance.java
> │ ├── MonitoringServiceRuleUnit.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2_LoggerService.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2_LoggerServiceRuleMethods0.java
> │ ├── Rules4723952D402A230BDB0E7081EBBA10E2_MonitoringService.java
> │ └── Rules4723952D402A230BDB0E7081EBBA10E2_MonitoringServiceRuleMethods0.java
> ├── org.kie.kogito.queries
> │ └── DomainClassesMetadataF894883E1030542FEFCE9860F835B9B7.java
> └── org.kie.kogito.rules.alerting
> └── DomainClassesMetadata4723952D402A230BDB0E7081EBBA10E2.java
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-4894) DomainClassesMetadata java files are created under directories with dot separated name
by Toshiya Kobayashi (Jira)
Toshiya Kobayashi created DROOLS-4894:
-----------------------------------------
Summary: DomainClassesMetadata java files are created under directories with dot separated name
Key: DROOLS-4894
URL: https://issues.redhat.com/browse/DROOLS-4894
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.31.0.Final
Reporter: Toshiya Kobayashi
Assignee: Luca Molteni
DomainClassesMetadataXXX java source files are created under directories with dot separated name instead of usual package hierarchy. It doesn't seem to cause issues though.
For example, when I run kogito-examples/drools-quarkus-unit-example
{noformat}
$ mvn clean package
...
$ tree target/generated-sources/
target/generated-sources/
├── annotations
└── kogito
├── org
│ ├── drools
│ │ └── project
│ │ └── model
│ │ ├── ProjectModel.java
│ │ └── ProjectRuntime.java
│ └── kie
│ └── kogito
│ ├── examples
│ │ ├── ApplicationConfig.java
│ │ └── Application.java
│ ├── queries
│ │ ├── AdultUnitDTO.java
│ │ ├── AdultUnitQueryFindAdultNamesEndpoint.java
│ │ ├── AdultUnitQueryFindAdultsEndpoint.java
│ │ ├── AdultUnitQueryFindNotAdultNamesAndAgeEndpoint.java
│ │ ├── AdultUnitRuleUnitInstance.java
│ │ ├── AdultUnitRuleUnit.java
│ │ ├── RulesF894883E1030542FEFCE9860F835B9B7_AdultUnit.java
│ │ ├── RulesF894883E1030542FEFCE9860F835B9B7_AdultUnitRuleMethods0.java
│ │ └── RulesF894883E1030542FEFCE9860F835B9B7.java
│ └── rules
│ └── alerting
│ ├── LoggerServiceRuleUnitInstance.java
│ ├── LoggerServiceRuleUnit.java
│ ├── MonitoringServiceRuleUnitInstance.java
│ ├── MonitoringServiceRuleUnit.java
│ ├── Rules4723952D402A230BDB0E7081EBBA10E2.java
│ ├── Rules4723952D402A230BDB0E7081EBBA10E2_LoggerService.java
│ ├── Rules4723952D402A230BDB0E7081EBBA10E2_LoggerServiceRuleMethods0.java
│ ├── Rules4723952D402A230BDB0E7081EBBA10E2_MonitoringService.java
│ └── Rules4723952D402A230BDB0E7081EBBA10E2_MonitoringServiceRuleMethods0.java
├── org.kie.kogito.queries
│ └── DomainClassesMetadataF894883E1030542FEFCE9860F835B9B7.java
└── org.kie.kogito.rules.alerting
└── DomainClassesMetadata4723952D402A230BDB0E7081EBBA10E2.java
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-4872) "customSerializationMapper" in JSONMarshaller.configureMarshaller() doesn't respect JSONMarshallerExtensions
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-4872?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi reassigned DROOLS-4872:
-----------------------------------------
Assignee: Toshiya Kobayashi (was: Maciej Swiderski)
> "customSerializationMapper" in JSONMarshaller.configureMarshaller() doesn't respect JSONMarshallerExtensions
> ------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-4872
> URL: https://issues.redhat.com/browse/DROOLS-4872
> Project: Drools
> Issue Type: Component Upgrade
> Components: kie server
> Affects Versions: 7.29.0.Final, 7.30.0.Final, 7.31.0.Final
> Reporter: Petar Tahchiev
> Assignee: Toshiya Kobayashi
> Priority: Major
>
> Hello,
> as discussed here:
> https://groups.google.com/forum/#!topic/drools-setup/85k05vo0Ix8
> I'm trying to configure the JSONMarshaller so I can serialize/deserialize objects of type {{javax.money.MonetaryAmount}}, however even though I register my own {{JSONMarshallerExtension}} seems like the conversion is handled by the {{customSerializationMapper}} in {{JSONMarshaller.configureMarshaller()}} and this mapper is not passed to the extension so there's no way I can configure it. This leads to the attributes of type {{MonetaryAmount}} being serialized in a wrong way (not using any modules registered through the {{JSONMarshallerExtension}}.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-4872) "customSerializationMapper" in JSONMarshaller.configureMarshaller() doesn't respect JSONMarshallerExtensions
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-4872?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi updated DROOLS-4872:
--------------------------------------
Story Points: 5
Sprint: 2019 Week 50-52 (from Dec 9)
> "customSerializationMapper" in JSONMarshaller.configureMarshaller() doesn't respect JSONMarshallerExtensions
> ------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-4872
> URL: https://issues.redhat.com/browse/DROOLS-4872
> Project: Drools
> Issue Type: Component Upgrade
> Components: kie server
> Affects Versions: 7.29.0.Final, 7.30.0.Final, 7.31.0.Final
> Reporter: Petar Tahchiev
> Assignee: Toshiya Kobayashi
> Priority: Major
>
> Hello,
> as discussed here:
> https://groups.google.com/forum/#!topic/drools-setup/85k05vo0Ix8
> I'm trying to configure the JSONMarshaller so I can serialize/deserialize objects of type {{javax.money.MonetaryAmount}}, however even though I register my own {{JSONMarshallerExtension}} seems like the conversion is handled by the {{customSerializationMapper}} in {{JSONMarshaller.configureMarshaller()}} and this mapper is not passed to the extension so there's no way I can configure it. This leads to the attributes of type {{MonetaryAmount}} being serialized in a wrong way (not using any modules registered through the {{JSONMarshallerExtension}}.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-4169) Can't compile large .drl files with security manager turned on in tomcat
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-4169?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-4169:
--------------------------------
Sprint: 2020 Week 01-03 (from Dec 30) (was: 2019 Week 50-52 (from Dec 9))
> Can't compile large .drl files with security manager turned on in tomcat
> ------------------------------------------------------------------------
>
> Key: DROOLS-4169
> URL: https://issues.redhat.com/browse/DROOLS-4169
> Project: Drools
> Issue Type: Bug
> Affects Versions: 7.22.0.Final
> Environment: Java 11
> Tomcat 9
> Ubuntu 18.10/Amazon Linux AMI
> Reporter: Anthony Bruno
> Assignee: Mario Fusco
> Priority: Major
>
> Reproduction repository: https://github.com/AussieGuy0/drools-bug
> *Summary*
> When large rule (.drl) files are complied **with** the security manager turned
> on in a servlet container (e.g. Tomcat), it causes `AccessControlExceptions`, which causes `NoClassDefFoundErrors`.
> *Steps*
> Prereqs: Program is run in servlet context (e.g .war file in tomcat)
> 1. Turn on security manager
> 2. Provide policy files through the properties `java.security.policy` and `kie.security.policy`
> 3. Compile a `.drl` file that has more than `parallelRulesBuildThreshold` (default: 10) rules
> *Expected Result*
> Rules are compiled successfully
> *Actual Result*
> No class def error
> *Cause*
> In `KnowledgeBuilderImpl`, a `ForkJoinPool` is created and used for parallel building.
> A `ForkJoinPool` with no `ForkJoinWorkerThreadFactory` specified, it will use a default factory
> that provides it's own permissions. These permissions are not sufficient for compiling
> drl files in a servlet context.
> *Potential Fix*
> A potential fix is to allow the user to provide their own `ForkJoinWorkerThreadFactory` as a
> configuration option for drools.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-4892) in evaluators for type Double does not work with executable model
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-4892?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-4892:
--------------------------------
Sprint: 2020 Week 01-03 (from Dec 30)
> in evaluators for type Double does not work with executable model
> ------------------------------------------------------------------
>
> Key: DROOLS-4892
> URL: https://issues.redhat.com/browse/DROOLS-4892
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.26.0.Final, 7.31.0.Final
> Reporter: Hiroko Miura
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
> Attachments: executable-model-DoubleTest.zip
>
>
> The constraint like the following does not match when using executable model.
> {noformat}
> rule "Double nnn"
> when
> f : Fact( doubleVal in ( 100, 200, 300 ) )
> then
> ...
> end
> {noformat}
> This rule can fire if executable model is not used.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months