sukiseka opened a new issue, #2068: URL: https://github.com/apache/incubator-kie-kogito-examples/issues/2068
I would like to implement OpenAPI orchestration. I am using Kogito 10.0.x [configuring-openapi-services-endpoints](https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/service-orchestration/configuring-openapi-services-endpoints.html) and I am using the example code from here [conversion-workflow-function](https://github.com/apache/incubator-kie-kogito-examples/blob/10.0.x/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml#L33) mvn clean package -X I get IllegalArgumentException. Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: C:\incubator-kie-kogito-examples\serverless-workflow-examples\serverless-workflow-temperature-conversion\conversion-workflow\src\main\resources\fahrenheit-to-celsius.sw.json at java.net.URI.create (URI.java:906) at java.util.Optional.map (Optional.java:260) at org.kie.kogito.serverless.workflow.utils.ServerlessWorkflowUtils.getBaseURI (ServerlessWorkflowUtils.java:145) at org.kie.kogito.serverless.workflow.io.URIContentLoaderFactory.buildLoader (URIContentLoaderFactory.java:79) at org.kie.kogito.quarkus.serverless.workflow.WorkflowCodeGenUtils.getResource (WorkflowCodeGenUtils.java:92) at org.kie.kogito.quarkus.serverless.workflow.WorkflowCodeGenUtils.lambda$processFunction$2 (WorkflowCodeGenUtils.java:86) at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197) at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:179) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1625) at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:499) 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:596) at java.util.stream.ReferencePipeline$7$1.accept (ReferencePipeline.java:276) at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197) at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197) at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:179) at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:197) at java.util.Iterator.forEachRemaining (Iterator.java:133) at java.util.Spliterators$IteratorSpliterator.forEachRemaining (Spliterators.java:1845) at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:509) at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:499) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:921) at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:682) at org.kie.kogito.quarkus.serverless.workflow.openapi.WorkflowOpenApiSpecInputProvider.read (WorkflowOpenApiSpecInputProvider.java:47) at io.quarkiverse.openapi.generator.deployment.codegen.OpenApiGeneratorStreamCodeGen.trigger (OpenApiGeneratorStreamCodeGen.java:64) at io.quarkus.deployment.CodeGenerator.lambda$trigger$4 (CodeGenerator.java:204) at io.quarkus.deployment.CodeGenerator.callWithClassloader (CodeGenerator.java:179) at io.quarkus.deployment.CodeGenerator.trigger (CodeGenerator.java:201) at io.quarkus.deployment.CodeGenerator.initAndRun (CodeGenerator.java:78) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) I tried a simple project with one .sw.json and an openapi.yaml. Used the same library versions as in the example. Tried file:, classpath:, relative path, absolute path in the operation. Nothing works. What am I doing wrong ? Could you help solve this issue please -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
