KIE Server - Loads of warnings when deploying containers

178 views
Skip to first unread message

jbpmd...@gmail.com

unread,
Apr 2, 2019, 11:53:02 AM4/2/19
to jBPM Usage
Hi,

I'm currently experiencing an issue when deploying kjars to the kie-server using the workbench. Looking in the logs, there are loads of warnings in the form "WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-102) Unable to create instance of type com.package.ClassName due to com.package.ClassName" where the package and class are the same. For now I have been ignoring these issues, but I wanted to trim down the logs and was wondering if anyone had some insight as to what causes this, and how I can resolve these warnings.

For reference I am using 7.10.0.Final.

Thanks

Maciej Swiderski

unread,
Apr 2, 2019, 3:24:36 PM4/2/19
to John, jBPM Usage
You can enabled class filtering for drools extension (or even disable drools extension if you don’t use it)
-Dorg.drools.server.filter.classes=true

Maciej

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/24c3cdab-8c5c-4aae-8034-50410a060476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jbpmd...@gmail.com

unread,
Apr 4, 2019, 4:04:43 AM4/4/19
to jBPM Usage
Thanks Maciej, I forgot to mention that I had actually set this as a property in the kie-server standalone as follows

<property name="org.drools.server.filter.classes" value="true"/>

I also just tested it by setting JAVA_OPTS, which I have confirmed is being set in the logs (see below). However I am still getting the same issue, any ideas?

=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/jboss/wildfly

  JAVA: /usr/lib/jvm/java/bin/java

  JAVA_OPTS:  -server -Xms256m -Xmx1024m -Djava.net.preferIPv4Stack=true -Dorg.drools.server.filter.classes=true

=========================================================================


On Tuesday, April 2, 2019 at 8:24:36 PM UTC+1, Maciej Swiderski wrote:
You can enabled class filtering for drools extension (or even disable drools extension if you don’t use it)
-Dorg.drools.server.filter.classes=true

Maciej

On 2 Apr 2019, at 17:53, jbpmd...@gmail.com wrote:

Hi,

I'm currently experiencing an issue when deploying kjars to the kie-server using the workbench. Looking in the logs, there are loads of warnings in the form "WARN  [org.kie.server.services.drools.DroolsKieServerExtension] (default task-102) Unable to create instance of type com.package.ClassName due to com.package.ClassName" where the package and class are the same. For now I have been ignoring these issues, but I wanted to trim down the logs and was wondering if anyone had some insight as to what causes this, and how I can resolve these warnings.

For reference I am using 7.10.0.Final.

Thanks

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-...@googlegroups.com.
Message has been deleted

jbpmd...@gmail.com

unread,
Apr 8, 2019, 4:00:01 AM4/8/19
to jBPM Usage
Hi,

Just an update - I tried setting the property 'org.drools.server.ext.disabled' and this got rid of the warning. However as I need the Drools functionality I cannot leave this enabled.

Any ideas why the 'org.drools.server.filter.classes' property isn't working?

Many thanks,

jbpmd...@gmail.com

unread,
Apr 11, 2019, 12:12:13 PM4/11/19
to jBPM Usage
Anyone have any ideas why this isn't working?

Maciej Swiderski

unread,
Apr 12, 2019, 5:07:11 AM4/12/19
to John, jBPM Usage
Not really but if you share your pom.xml of the Kjar and what sort of warning you get we could provide additional input.

Maciej

To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.

To post to this group, send email to jbpm-...@googlegroups.com.

Thaxton Mauzy

unread,
Aug 31, 2022, 5:10:06 PM8/31/22
to jBPM Usage
Hey thread - if anyone is still running into this issue, this update might help.

We had the same problem at kJAR deployment on our standalone KIE: the WARN messages about unable to create instance and such...it looks like those errors were mainly coming from classes that were part of POM sub-dependencies that were marked as <optional>. Take this joda-time dependency we added to our kJAR (for no reason other than to test this issue):
<dependency>
  <groupId>joda-time</groupId>
  <artifactId>joda-time</artifactId>
  <version>2.11.1</version>
</dependency>

The POM for that joda-time dependency has an optional dependency for joda-convert:
<dependency>
<groupId>org.joda</groupId>
<artifactId>joda-convert</artifactId>
<version>1.9.2</version>
<scope>compile</scope>
<optional>true</optional>
<!-- mandatory in Scala -->
</dependency>

And when we deployed a kJAR that had just joda-time as a dependency and only used the org.joda.time.DateTime class, KIE still complained about the convert library with those WARN messages and then would not run the process even though the script wasn't using anything from "convert". At runtime we'd see those NoClassDefFound errors and such.

So we updated standalone.xml with the system-property mentioned above:
<system-properties>
<property name="org.drools.server.filter.classes" value="true/>
...
</system-properties>

And we still see the WARN messages at kJAR deploy, but the code now works at runtime/execution. 

So org.drools.server.filter.classes seems to fix the runtime but not deployment.

I hope that helps!

RHPAM 7.11
Java11
jBPM/KIE 7.52.0.Final-redhat-00008
Reply all
Reply to author
Forward
0 new messages