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

Arrays not supported on open api spec files

XMLWordPrintable

    • False
    • None
    • False
    • ---
    • ---
    • 2023 Week 33-35 (from Aug 14)

      Using arrays as schema type provokes this exception

      java.lang.UnsupportedOperationException: Kind PARAMETERIZED_TYPE is not supported
      at org.kie.kogito.quarkus.serverless.workflow.ClassAnnotatedWorkflowHandlerGenerator.fromClass(ClassAnnotatedWorkflowHandlerGenerator.java:50)
      at org.kie.kogito.quarkus.serverless.workflow.openapi.WorkflowOpenApiHandlerGenerator.generateHandler(WorkflowOpenApiHandlerGenerator.java:109)
      at org.kie.kogito.quarkus.serverless.workflow.openapi.WorkflowOpenApiHandlerGenerator.lambda$generateHandler$1(WorkflowOpenApiHandlerGenerator.java:74)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
      at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
      at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
      at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
      at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
      at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
      at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
      at org.kie.kogito.quarkus.serverless.workflow.ClassAnnotatedWorkflowHandlerGenerator.generateHandlerClasses(ClassAnnotatedWorkflowHandlerGenerator.java:36)
      at org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowAssetsProcessor.addWorkItemHandlers(ServerlessWorkflowAssetsProcessor.java:95)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

              ftirados Francisco Javier Tirado Sarti
              ftirados Francisco Javier Tirado Sarti
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: