Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-1683

Error building native image with DMN + uber jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 0.9.0
    • Core Engine
    • 2020 Week 28-30 (from Jul 6)

      kogito 0.9.0 quarkus 1.3.0.FInal

      repro:

      [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

              mfusco@redhat.com Mario Fusco
              evacchi Edoardo Vacchi (Inactive)
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: