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

Issue when deploying a simple Kogito-Process in vsCode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 0.6.0
    • None
    • Core Engine
    • None
    • Hide

      I'll add a screenshot of the Process

      1. install Kogito extension vcCode
      2. create a new Quarkus Project with Quarkus extension
      3. create a process
      4. try to deploy......
      https://developers.redhat.com/blog/2019/09/23/how-the-new-quarkus-extension-for-visual-studio-code-improves-the-development-experience/
      click to start the deployment
      Debugging a Quarkus project

      Show
      I'll add a screenshot of the Process 1. install Kogito extension vcCode 2. create a new Quarkus Project with Quarkus extension 3. create a process 4. try to deploy...... https://developers.redhat.com/blog/2019/09/23/how-the-new-quarkus-extension-for-visual-studio-code-improves-the-development-experience/ click to start the deployment Debugging a Quarkus project

      For a demo I plan to demo the Cogito extension into vscode

      https://github.com/kiegroup/kogito-tooling/releases

      I followed this tutorial to create a simple process.
      https://www.youtube.com/watch?v=D45u2EONcPA
      the process is attached.

      When deploying it I get:

      INFO] Scanning for projects...
      [INFO]
      [INFO] -----------------< org.quarkus.bpm:quarkus-demo-bpm >-----------------
      [INFO] Building quarkus-demo-bpm 1.0.0-SNAPSHOT
      [INFO] -------------------------------[ jar ]--------------------------------
      [INFO]
      [INFO] — quarkus-maven-plugin:0.25.0:dev (default-cli) @ quarkus-demo-bpm —
      Listening for transport dt_socket at address: 5005
      13:23:52,032 INFO [io.qua.dep.QuarkusAugmentor] Beginning quarkus augmentation
      13:23:52,719 INFO [org.jbo.threads] JBoss Threads version 3.0.0.Final
      13:23:54,408 ERROR [io.qua.dev.DevModeMain] Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      [error]: Build step io.quarkus.kogito.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.AssertionError: A string was unexpectedly empty.
      at com.github.javaparser.utils.Utils.assertNonEmpty(Utils.java:54)
      at com.github.javaparser.ast.expr.SimpleName.setIdentifier(SimpleName.java:86)
      at com.github.javaparser.ast.expr.SimpleName.<init>(SimpleName.java:63)
      at com.github.javaparser.ast.expr.SimpleName.<init>(SimpleName.java:54)
      at com.github.javaparser.ast.expr.NameExpr.<init>(NameExpr.java:57)
      at org.jbpm.compiler.canonical.ActionNodeVisitor.visitNode(ActionNodeVisitor.java:85)
      at org.jbpm.compiler.canonical.AbstractVisitor.visitNode(AbstractVisitor.java:52)
      at org.jbpm.compiler.canonical.ProcessToExecModelGenerator.visitNodes(ProcessToExecModelGenerator.java:304)
      at org.jbpm.compiler.canonical.ProcessToExecModelGenerator.visitProcess(ProcessToExecModelGenerator.java:215)
      at org.jbpm.compiler.canonical.ProcessToExecModelGenerator.generate(ProcessToExecModelGenerator.java:125)
      at org.kie.kogito.codegen.process.ProcessExecutableModelGenerator.generate(ProcessExecutableModelGenerator.java:45)
      at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:225)
      at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:65)
      at org.kie.kogito.codegen.ApplicationGenerator.lambda$generateComponents$7(ApplicationGenerator.java:209)
      at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:269)
      at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
      at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
      at org.kie.kogito.codegen.ApplicationGenerator.generateComponents(ApplicationGenerator.java:210)
      at org.kie.kogito.codegen.ApplicationGenerator.generate(ApplicationGenerator.java:195)
      at io.quarkus.kogito.deployment.KogitoAssetsProcessor.generateModel(KogitoAssetsProcessor.java:152)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at io.quarkus.deployment.ExtensionLoader$1.execute(ExtensionLoader.java:930)
      at io.quarkus.builder.BuildContext.run(BuildContext.java:415)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2011)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1535)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1426)
      at java.lang.Thread.run(Thread.java:748)
      at org.jboss.threads.JBossThread.run(JBossThread.java:479)

      at io.quarkus.runner.RuntimeRunner.run(RuntimeRunner.java:149)
      at io.quarkus.dev.DevModeMain.doStart(DevModeMain.java:180)
      at io.quarkus.dev.DevModeMain.start(DevModeMain.java:94)
      at io.quarkus.dev.DevModeMain.main(DevModeMain.java:66)
      Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      [error]: Build step io.quarkus.kogito.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.AssertionError: A string was unexpectedly empty.
      at com.github.javaparser.utils.Utils.assertNonEmpty(Utils.java:54)
      at com.github.javaparser.ast.expr.SimpleName.setIdentifier(SimpleName.java:86)
      at com.github.javaparser.ast.expr.SimpleName.<init>(SimpleName.java:63)
      at com.github.javaparser.ast.expr.SimpleName.<init>(SimpleName.java:54)
      at com.github.javaparser.ast.expr.NameExpr.<init>(NameExpr.java:57)
      at org.jbpm.compiler.canonical.ActionNodeVisitor.visitNode(ActionNodeVisitor.java:85)
      at org.jbpm.compiler.canonical.AbstractVisitor.visitNode(AbstractVisitor.java:52)
      at org.jbpm.compiler.canonical.ProcessToExecModelGenerator.visitNodes(ProcessToExecModelGenerator.java:304)
      at org.jbpm.compil

        1. test.bpmn
          7 kB
          Christian Stark

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-cstark Christian Stark
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: