[JBoss JIRA] (DROOLS-5535) Drools - KieServices.Factory.get() returns null
by Ashish Srivastava (Jira)
[ https://issues.redhat.com/browse/DROOLS-5535?page=com.atlassian.jira.plug... ]
Ashish Srivastava reopened DROOLS-5535:
---------------------------------------
[~mfusco]
so based on your input seems you are suggesting kogito, but that creates a lot of regression as we are using drools kie jar 7.36.1 and entire application depends on the same.
so looking for a approach where quarkus support the native kie jars without introduction of kogito
we have spring boot 2.0.3.RELEASE integrated with drools kie jar and works fine on production with java -jar approach
Please suggest if there is a workaround for the same.Ready to coordinate with the team and parallely trying more debugging/solution for the same
> Drools - KieServices.Factory.get() returns null
> -----------------------------------------------
>
> Key: DROOLS-5535
> URL: https://issues.redhat.com/browse/DROOLS-5535
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.36.0.Final
> Reporter: Ashish Srivastava
> Assignee: Mario Fusco
> Priority: Major
>
> I try to integrate a Drools project in a maven application. The Drools app is running perfectly on his own, but when I try to integrate it in the *quarkus project*, I get a java.lang.NullPointerException.
> After some researches, it seems to happen because KieServices.Factory.get() return me null because of kie.conf.
> Drools Site Quote is: Many modules of Drools (e.g. drools-core, drools-compiler) have a file named {{kie.conf}} containing the names of the classes implementing the services provided by the corresponding module. When running Drools in a fat JAR, for example created by the Maven Shade Plugin, those various {{kie.conf}} files need to be merged, otherwise , the fat JAR will contain only 1 kie.conf from a single dependency, resulting into errors. You can merge resources in the Maven Shade Plugin using transformers, like this:
> ([https://docs.jboss.org/drools/release/7.14.0.Final/drools-docs/html_singl...])
> how can we configure the same for Quarkus Project ? or is there any way to load these file externally ..
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 1 month
[JBoss JIRA] (DROOLS-5535) Drools - KieServices.Factory.get() returns null
by Ashish Srivastava (Jira)
[ https://issues.redhat.com/browse/DROOLS-5535?page=com.atlassian.jira.plug... ]
Ashish Srivastava commented on DROOLS-5535:
-------------------------------------------
[~mfusco]
so based on your input seems you are suggesting kogito, but that creates a lot of regression as we are using drools kie jar 7.36.1 and the entire application depends on the same.
so looking for a approach where quarkus support the native kie jars without the introduction of kogito we have spring boot 2.0.3.RELEASE integrated with drools kie jar and works fine on production with java -jar approach
Please suggest if there is a workaround for the same. Ready to coordinate with the team and parallelly trying more debugging/solution for the same
> Drools - KieServices.Factory.get() returns null
> -----------------------------------------------
>
> Key: DROOLS-5535
> URL: https://issues.redhat.com/browse/DROOLS-5535
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.36.0.Final
> Reporter: Ashish Srivastava
> Assignee: Mario Fusco
> Priority: Major
>
> I try to integrate a Drools project in a maven application. The Drools app is running perfectly on his own, but when I try to integrate it in the *quarkus project*, I get a java.lang.NullPointerException.
> After some researches, it seems to happen because KieServices.Factory.get() return me null because of kie.conf.
> Drools Site Quote is: Many modules of Drools (e.g. drools-core, drools-compiler) have a file named {{kie.conf}} containing the names of the classes implementing the services provided by the corresponding module. When running Drools in a fat JAR, for example created by the Maven Shade Plugin, those various {{kie.conf}} files need to be merged, otherwise , the fat JAR will contain only 1 kie.conf from a single dependency, resulting into errors. You can merge resources in the Maven Shade Plugin using transformers, like this:
> ([https://docs.jboss.org/drools/release/7.14.0.Final/drools-docs/html_singl...])
> how can we configure the same for Quarkus Project ? or is there any way to load these file externally ..
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 1 month
[JBoss JIRA] (DROOLS-5537) Performance issue - Test scenario creation for DMN & PMML model
by Toni Rikkola (Jira)
[ https://issues.redhat.com/browse/DROOLS-5537?page=com.atlassian.jira.plug... ]
Toni Rikkola moved RHDM-1420 to DROOLS-5537:
--------------------------------------------
Project: Drools (was: Red Hat Decision Manager)
Key: DROOLS-5537 (was: RHDM-1420)
Workflow: GIT Pull Request workflow (was: CDW with docs v1)
Docs QE Status: NEW
Component/s: PMML
Scenario Simulation and Testing
(was: Decision Central)
(was: DMN)
(was: PMML)
Affects Build: (was: CR2)
Affects Version/s: (was: 7.8.0.GA)
QE Status: NEW
QE Test Coverage: (was: +)
> Performance issue - Test scenario creation for DMN & PMML model
> ---------------------------------------------------------------
>
> Key: DROOLS-5537
> URL: https://issues.redhat.com/browse/DROOLS-5537
> Project: Drools
> Issue Type: Bug
> Components: PMML, Scenario Simulation and Testing
> Reporter: Jozef Marko
> Assignee: Toni Rikkola
> Priority: Critical
> Labels: drools-tools, regression
>
> The issue may be caused by RHDM-1393
> The performance issue can be spotted when user will try to create a 'Test Scenario' for a DMN model, that includes a PMML model, notice it is not needed to use any logic from the PMML, just include it.
> The creation time is an order of magnitude larger for CR2 than it was for CR1.
> The attachment contains a project that can be used to follow steps to reproduce.
> The issue can not be reproduced if the DMN model doesn't include a PMML.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 1 month
[JBoss JIRA] (WFLY-13706) Support for adding a KeyCloak feature pack with bootable jar for client side adapters
by Darran Lofthouse (Jira)
Darran Lofthouse created WFLY-13706:
---------------------------------------
Summary: Support for adding a KeyCloak feature pack with bootable jar for client side adapters
Key: WFLY-13706
URL: https://issues.redhat.com/browse/WFLY-13706
Project: WildFly
Issue Type: Feature Request
Components: Documentation, Security, Test Suite
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Fix For: 21.0.0.Beta1
In conjunction with the bootable jar support currently being developed this feature request is to cover support for KeyCloak client side adapter installation integrated with the Elytron security subsystem.
The main feature pack is anticipated to be delivered by the KeyCloak project, however as this is specifically for use with WildFly we likely need WildFly documentation and possibly test cases so this Jira issue to to cover tasks required within WildFly.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 1 month
[JBoss JIRA] (WFCORE-5066) [QA] A few tests don't work using IBM JDK because of mock-server 5.9.0
by Panagiotis Sotiropoulos (Jira)
Panagiotis Sotiropoulos created WFCORE-5066:
-----------------------------------------------
Summary: [QA] A few tests don't work using IBM JDK because of mock-server 5.9.0
Key: WFCORE-5066
URL: https://issues.redhat.com/browse/WFCORE-5066
Project: WildFly Core
Issue Type: Bug
Components: Test Suite
Affects Versions: 13.0.0.Beta1
Reporter: Panagiotis Sotiropoulos
Assignee: Ricardo Martin Camarero
After JIRA WFCORE-4850 the mock-server 5.9.0 does not work with IBM JDK which makes a few tests fail with the following error:
{code:bash}
cd ./testsuite/standalone/
export JAVA_HOME=/home/rmartinc/apps/ibm-java-x86_64-80/
mvn clean test -Dtest=org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase
...
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 s <<< FAILURE! - in org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase
[ERROR] org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase Time elapsed: 0.003 s <<< ERROR!
java.lang.NoClassDefFoundError: sun.security.x509.GeneralNameInterface
at org.mockserver.socket.tls.jdk.JDKKeyAndCertificateFactory.<init>(JDKKeyAndCertificateFactory.java:36)
at org.mockserver.socket.tls.NettySslContextFactory.<init>(NettySslContextFactory.java:37)
at org.mockserver.client.MockServerClient.<init>(MockServerClient.java:57)
at org.mockserver.integration.ClientAndServer.<init>(ClientAndServer.java:19)
at org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase.setup(SecurityCommandsTestCase.java:358)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:157)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
Caused by: java.lang.ClassNotFoundException: sun.security.x509.GeneralNameInterface
at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:944)
at java.lang.ClassLoader.loadClass(ClassLoader.java:889)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:872)
... 36 more
{code}
The tests that don't work are the following three classes:
* CertificateAuthoritiesTestCase.java (elytron)
* KeyStoresTestCase.java (elytron)
* SecurityCommandsTestCase.java (testsuite/standalone)
This is explained in the mock-server [issue 750|https://github.com/mock-server/mockserver/issues/750]. For the moment the only solution is doing a downgrade to 5.8.1. Although it is expected to be fixed soon in the mock-server (maybe in the next version 5.10.1 or 5.11.0).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 1 month
[JBoss JIRA] (DROOLS-5535) Drools - KieServices.Factory.get() returns null
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5535?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-5535.
---------------------------------
Resolution: Explained
Kogito is a new business automation suite [https://kogito.kie.org/]
It is cloud native and internally uses drools and jbpm respectively as rules and workflow engine. It is fully integrated with quarkus through a quarkus extension, see [https://quarkus.io/guides/kogito] and [https://developers.redhat.com/blog/2019/08/29/kogito-for-quarkus-intellig...]
You can find many examples on how to use it with both quarkus and spring-boot here https://github.com/kiegroup/kogito-examples
> Drools - KieServices.Factory.get() returns null
> -----------------------------------------------
>
> Key: DROOLS-5535
> URL: https://issues.redhat.com/browse/DROOLS-5535
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.36.0.Final
> Reporter: Ashish Srivastava
> Assignee: Mario Fusco
> Priority: Major
>
> I try to integrate a Drools project in a maven application. The Drools app is running perfectly on his own, but when I try to integrate it in the *quarkus project*, I get a java.lang.NullPointerException.
> After some researches, it seems to happen because KieServices.Factory.get() return me null because of kie.conf.
> Drools Site Quote is: Many modules of Drools (e.g. drools-core, drools-compiler) have a file named {{kie.conf}} containing the names of the classes implementing the services provided by the corresponding module. When running Drools in a fat JAR, for example created by the Maven Shade Plugin, those various {{kie.conf}} files need to be merged, otherwise , the fat JAR will contain only 1 kie.conf from a single dependency, resulting into errors. You can merge resources in the Maven Shade Plugin using transformers, like this:
> ([https://docs.jboss.org/drools/release/7.14.0.Final/drools-docs/html_singl...])
> how can we configure the same for Quarkus Project ? or is there any way to load these file externally ..
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 1 month
[JBoss JIRA] (DROOLS-5535) Drools - KieServices.Factory.get() returns null
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5535?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-5535:
--------------------------------
Sprint: 2020 Week 31-33 (from Jul 27)
> Drools - KieServices.Factory.get() returns null
> -----------------------------------------------
>
> Key: DROOLS-5535
> URL: https://issues.redhat.com/browse/DROOLS-5535
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.36.0.Final
> Reporter: Ashish Srivastava
> Assignee: Mario Fusco
> Priority: Major
>
> I try to integrate a Drools project in a maven application. The Drools app is running perfectly on his own, but when I try to integrate it in the *quarkus project*, I get a java.lang.NullPointerException.
> After some researches, it seems to happen because KieServices.Factory.get() return me null because of kie.conf.
> Drools Site Quote is: Many modules of Drools (e.g. drools-core, drools-compiler) have a file named {{kie.conf}} containing the names of the classes implementing the services provided by the corresponding module. When running Drools in a fat JAR, for example created by the Maven Shade Plugin, those various {{kie.conf}} files need to be merged, otherwise , the fat JAR will contain only 1 kie.conf from a single dependency, resulting into errors. You can merge resources in the Maven Shade Plugin using transformers, like this:
> ([https://docs.jboss.org/drools/release/7.14.0.Final/drools-docs/html_singl...])
> how can we configure the same for Quarkus Project ? or is there any way to load these file externally ..
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 1 month