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

Serverless Workflow: InvalidPathException is returned when building project with gRPC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.29.0.Final
    • 1.24.0.Final
    • Core Engine
    • None

      Expected result: building project is successful (mvn clean compile quarkus:dev -X)

      Actual result: returned error:

       

      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.10.3.Final:generate-code (default) on project serverless-workflow-greeting-client-rpc-quarkus: Quarkus code generation phase has failed: Invocati
      onTargetException: Illegal char <:> at index 2: /C:/work/kogito-sbt-examples-fork-kazancev/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/target/classes/greeting.proto
      -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.quarkus:quarkus-maven-plugin:2.10.3.Final:generate-code (default) on project serverless-workflow-greeting-client-rpc-quarkus: Qu
      arkus code generation phase has failed
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:566)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Quarkus code generation phase has failed
          at io.quarkus.maven.GenerateCodeMojo.generateCode (GenerateCodeMojo.java:86)
          at io.quarkus.maven.GenerateCodeMojo.doExecute (GenerateCodeMojo.java:53)
          at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:154)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:566)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: java.lang.reflect.InvocationTargetException
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:566)
          at io.quarkus.maven.GenerateCodeMojo.generateCode (GenerateCodeMojo.java:80)
          at io.quarkus.maven.GenerateCodeMojo.doExecute (GenerateCodeMojo.java:53)
          at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:154)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:566)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/work/kogito-sbt-examples-fork-kazancev/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/ta
      rget/classes/greeting.proto
          at sun.nio.fs.WindowsPathParser.normalize (WindowsPathParser.java:182)
          at sun.nio.fs.WindowsPathParser.parse (WindowsPathParser.java:153)
          at sun.nio.fs.WindowsPathParser.parse (WindowsPathParser.java:77)
          at sun.nio.fs.WindowsPath.parse (WindowsPath.java:92)
          at sun.nio.fs.WindowsFileSystem.getPath (WindowsFileSystem.java:229)
          at java.nio.file.Path.of (Path.java:147)
          at org.kie.kogito.quarkus.serverless.workflow.rpc.WorkflowRPCCodeGenProvider.fromURL (WorkflowRPCCodeGenProvider.java:105)
          at java.util.Optional.map (Optional.java:265)
          at org.kie.kogito.quarkus.serverless.workflow.rpc.WorkflowRPCCodeGenProvider.getPath (WorkflowRPCCodeGenProvider.java:88)
          at org.kie.kogito.quarkus.serverless.workflow.rpc.WorkflowRPCCodeGenProvider.lambda$trigger$0 (WorkflowRPCCodeGenProvider.java:68)
          at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:195)
          at java.util.stream.ForEachOps$ForEachOp$OfRef.accept (ForEachOps.java:183)
          at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:195)
          at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:177)
          at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1655)
          at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:484)
          at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474)
          at java.util.stream.ForEachOps$ForEachOp.evaluateSequential (ForEachOps.java:150)
          at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential (ForEachOps.java:173)
          at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
          at java.util.stream.ReferencePipeline.forEach (ReferencePipeline.java:497)
          at java.util.stream.ReferencePipeline$7$1.accept (ReferencePipeline.java:274)
          at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:195)
          at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:177)
          at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:195)
          at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:177)
          at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:195)
          at java.util.Iterator.forEachRemaining (Iterator.java:133)
          at java.util.Spliterators$IteratorSpliterator.forEachRemaining (Spliterators.java:1801)
          at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:484)
          at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474)
          at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:913)
          at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
          at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:578)
          at org.kie.kogito.quarkus.serverless.workflow.rpc.WorkflowRPCCodeGenProvider.trigger (WorkflowRPCCodeGenProvider.java:69)
          at io.quarkus.deployment.CodeGenerator.lambda$trigger$1 (CodeGenerator.java:108)
          at io.quarkus.deployment.CodeGenerator.callWithClassloader (CodeGenerator.java:70)
          at io.quarkus.deployment.CodeGenerator.trigger (CodeGenerator.java:93)
          at io.quarkus.deployment.CodeGenerator.initAndRun (CodeGenerator.java:34)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:566)
          at io.quarkus.maven.GenerateCodeMojo.generateCode (GenerateCodeMojo.java:80)
          at io.quarkus.maven.GenerateCodeMojo.doExecute (GenerateCodeMojo.java:53)
          at io.quarkus.maven.QuarkusBootstrapMojo.execute (QuarkusBootstrapMojo.java:154)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:566)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

        1. Error_RPC.txt
          14 kB
          Evgenii Zhiltsov

              ftirados Francisco Javier Tirado Sarti
              evgenyi Evgenii Zhiltsov (Inactive)
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: