Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
0.9.0
-
2020 Week 28-30 (from Jul 6)
Description
kogito 0.9.0 quarkus 1.3.0.FInal
repro:
- checkout https://github.com/danielezonca/home-automation-poc/blob/master/sample-kogito/pom.xml#L162
- in quarkus plugin config set <ubjerJar>true</uberjar>
- mvn -Pnative package
[INFO] ------------------------------------------------------------------------ [INFO] Total time: 26.376 s [INFO] Finished at: 2020-04-03T09:05:25+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.3.0.Final:native-image (default) on project sample-kogito: Failed to generate native image: io.quarkus.builder.BuildException: Build failure: Build failed due to errors [ERROR] [error]: Build step org.kie.kogito.quarkus.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.IllegalArgumentException: 'other' is different type of Path [ERROR] at java.base/sun.nio.fs.UnixPath.relativize(UnixPath.java:429) [ERROR] at java.base/sun.nio.fs.UnixPath.relativize(UnixPath.java:43) [ERROR] at org.kie.kogito.codegen.decision.DecisionContainerGenerator.classDeclaration(DecisionContainerGenerator.java:74) [ERROR] at org.kie.kogito.codegen.ApplicationGenerator.generateApplicationSections(ApplicationGenerator.java:242) [ERROR] at org.kie.kogito.codegen.ApplicationGenerator.generate(ApplicationGenerator.java:210) [ERROR] at org.kie.kogito.quarkus.deployment.KogitoAssetsProcessor.generateModel(KogitoAssetsProcessor.java:175) [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:938) [ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:273) [ERROR] at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) [ERROR] at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2027) [ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1551) [ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1442) [ERROR] at java.base/java.lang.Thread.run(Thread.java:834) [ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:479)
workaround: don't build native with uber jar
Attachments
Issue Links
- is duplicated by
-
KOGITO-2846 Native image fails to build on Kogito project (maybe because of assembly plugin)
- Resolved