Ciao All,
I’m contacting because I’m trying to update our project to use the latest kogito version 1.19.0.Final but I’m facing with a weird exception (cfr the one below)
the mvn quarkus:dev works fine, also the uber jar is being generated properly, but suddenly the below error is coming
I’m using mvn 3.6.3 and openjdk 11.0.4 and the following properties
<!-- kogito -->
<version.org.kie.kogito>1.19.0.Final</version.org.kie.kogito>
<!-- drools version used in kogito -->
<version.org.drools>8.19.0.Beta</version.org.drools>
<!-- quarkus -->
<quarkus-plugin.version>2.7.3.Final</quarkus-plugin.version>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>2.7.3.Final</quarkus.platform.version>
And this is the build plugin used to build the jar
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
last time when we updated to kogito 1.15.0.Final we didn’t find any issue;
PS C:\Apps\drools\drools-demo-rest-quarkus> mvn clean install -DskipTests=true -DoutputFile=output
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Drools :: Demo :: Rest Quarkus [pom]
[INFO] Drools :: Demo :: Rest Quarkus DMN [jar]
[INFO]
[INFO] -----------< com.csg.intsw.drools:drools-demo-rest-quarkus >------------
[INFO] Building Drools :: Demo :: Rest Quarkus 1.19.0-SNAPSHOT [1/2]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ drools-demo-rest-quarkus ---
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:build (default) @ drools-demo-rest-quarkus ---
[INFO] Type of the artifact is POM, skipping build goal
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ drools-demo-rest-quarkus ---
[INFO] Installing C:\Apps\drools\drools-demo-rest-quarkus\pom.xml to C:\data\dev\.m2\repository\com\csg\intsw\drools\drools-demo-rest-quarkus\1.19.0-SNAPSHOT\drools-demo-rest-quarkus-1.19.0-SNAPSHOT.pom
[INFO]
[INFO] ---------------< com.csg.intsw.drools:rest-quarkus-dmn >----------------
[INFO] Building Drools :: Demo :: Rest Quarkus DMN 1.19.0-SNAPSHOT [2/2]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rest-quarkus-dmn ---
[INFO] Deleting C:\Apps\drools\drools-demo-rest-quarkus\rest-quarkus-dmn\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rest-quarkus-dmn ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ rest-quarkus-dmn ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to C:\Apps\drools\drools-demo-rest-quarkus\rest-quarkus-dmn\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rest-quarkus-dmn ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ rest-quarkus-dmn ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to C:\Apps\drools\drools-demo-rest-quarkus\rest-quarkus-dmn\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ rest-quarkus-dmn ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ rest-quarkus-dmn ---
[INFO] Building jar: C:\Apps\drools\drools-demo-rest-quarkus\rest-quarkus-dmn\target\rest-quarkus-dmn-1.19.0-SNAPSHOT.jar
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:build (default) @ rest-quarkus-dmn ---
[INFO] Performed addonsConfig discovery, found: AddonsConfig{usePersistence=false, useTracing=false, useMonitoring=false, usePrometheusMonitoring=false, useCloudEvents=false, useExplainability=false, useProcessSVG=false, useEventDrivenDecisions=false, useEventDrivenRules=false}
[INFO] Generator discovery performed, found [decisions]
[INFO] Initializing DMN DT Validator...
[INFO] DMN DT Validator initialized.
[INFO] Analysing decision tables in DMN Model 'Traffic Violation' ...
[INFO] analysis for decision table 'Fine':
[WARNING] Columns: [Violation.Type] relate to FEEL string values which can be enumerated for the inputs; Gap analysis skipped.
[WARNING] [io.quarkus.resteasy.common.deployment.ResteasyCommonProcessor] Directly injecting a @ConfigProperty into a JAX-RS provider may lead to unexpected results. To ensure proper results, please change the type of the field to javax.enterprise.inject.Instance<java.lang.String>. Offending field is 'svcMavenVersion' of class 'com.csg.intsw.drools.lstnr.DecisionServiceContainerResponseFilter'
[WARNING] [io.quarkus.resteasy.common.deployment.ResteasyCommonProcessor] Directly injecting a @ConfigProperty into a JAX-RS provider may lead to unexpected results. To ensure proper results, please change the type of the field to javax.enterprise.inject.Instance<java.lang.String>. Offending field is 'svcGitCommit' of class 'com.csg.intsw.drools.lstnr.DecisionServiceContainerResponseFilter'
[WARNING] [io.quarkus.resteasy.common.deployment.ResteasyCommonProcessor] Directly injecting a @ConfigProperty into a JAX-RS provider may lead to unexpected results. To ensure proper results, please change the type of the field to javax.enterprise.inject.Instance<java.lang.String>. Offending field is 'svcBuildNumber' of class 'com.csg.intsw.drools.lstnr.DecisionServiceContainerResponseFilter'
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building uber jar: C:\Apps\drools\drools-demo-rest-quarkus\rest-quarkus-dmn\target\rest-quarkus-dmn-1.19.0-SNAPSHOT-runner.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Drools :: Demo :: Rest Quarkus 1.19.0-SNAPSHOT:
[INFO]
[INFO] Drools :: Demo :: Rest Quarkus ..................... SUCCESS [ 4.876 s]
[INFO] Drools :: Demo :: Rest Quarkus DMN ................. FAILURE [01:13 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:18 min
[INFO] Finished at: 2022-04-11T14:34:21+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.7.3.Final:build (default) on project rest-quarkus-dmn: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.JarResultBuildStep#buildRunnerJar threw an exception: java.lang.IllegalStateException: java.nio.file.NoSuchFileException: /META-INF/resources
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:891)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:829)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] Caused by: java.nio.file.NoSuchFileException: /META-INF/resources
[ERROR] at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:893)
[ERROR] at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:282)
[ERROR] at java.base/java.nio.file.Files.newOutputStream(Files.java:220)
[ERROR] at io.quarkus.deployment.pkg.steps.JarResultBuildStep.copyCommonContent(JarResultBuildStep.java:1251)
[ERROR] at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar0(JarResultBuildStep.java:386)
[ERROR] at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar(JarResultBuildStep.java:270)
[ERROR] at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildRunnerJar(JarResultBuildStep.java:208)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:882)
[ERROR] ... 6 more
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :rest-quarkus-dmn
--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/385b8756-8fce-4638-bf30-24e955033481n%40googlegroups.com.
Hi Matteo,thank you for your suggestion, it was very helpful; .I was able to reproduce the issue even with the example downloaded from the quarkus website:the issue is related to quarkus.package.type=uber-jar in my application.propertiesit seems that since Kogito 1.16 this option doesn't work anymore.after removing the property it works fine (I have to change the dockerization part though).do you know if it's a known limitation with quarkus/kogito related the uber jar?
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/7bd18b92-bd53-4884-a046-d308f16ef56dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/CACPHShzO%3Duse1ZWd6BZEFj522%3DCUzM641SCxJdOSrwYfGuL5zQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/322ec524-8130-46ba-a501-62ac5902bc27n%40googlegroups.com.
With Kogito : 1.20.0
=============================================================================
java -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+UseStringDeduplication -Xms300m -Xmx3500m -jar quarkus-run.jar
-60 Payloads (5MB size)
-Ran with default rest endpoints for the main process
Response Time: Average response time is 89115 ms.
Heap Memory Consumed : Approx 2 gb .
With kogito 1.12.0 and using Quarkus uber-jar :
-java -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+UseStringDeduplication -Xms300m -Xmx3500m -jar desaei-backdating-rules-1.0.0-SNAPSHOT-runner.jar
-60 Payloads (5MB size)
-Ran with default rest endpoints for the main process :
Response time : Average response time 878 ms
Heap Consumed : Approx 2 gb
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/29b788db-0d23-480e-b813-6ae318771934n%40googlegroups.com.