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

Support for map data type in protobuf generation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Core Engine
    • False
    • False

       

      {{ERROR] src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (33:1362) : The method setCurrentAnswers(LinkedHashMap<String,Answer>) in the type UserAnswerLog is not applicable for the arguments (ArrayList)
      [ERROR] src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (33:1380) : Type mismatch: cannot convert from ArrayList to LinkedHashMap<String,Answer>
      [ERROR] src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (38:1628) : The method writeCollection(String, Collection<? super E>, Class<E>) in the type MessageMarshaller.ProtoStreamWriter is not applicable for the arguments (String, LinkedHashMap<String,Answer>, Class<String>)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 14.306 s
      [INFO] Finished at: 2021-11-26T18:11:45-05:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.4.0.Final:build (default) on project dynamic-qa-decision-service: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
      [ERROR] [error]: Build step org.kie.kogito.quarkus.processes.deployment.ProcessesAssetsProcessor#postGenerationProcessing threw an exception: java.lang.IllegalStateException: src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (33:1362) : The method setCurrentAnswers(LinkedHashMap<String,Answer>) in the type UserAnswerLog is not applicable for the arguments (ArrayList)
      [ERROR] src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (33:1380) : Type mismatch: cannot convert from ArrayList to LinkedHashMap<String,Answer>
      [ERROR] src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (38:1628) : The method writeCollection(String, Collection<? super E>, Class<E>) in the type MessageMarshaller.ProtoStreamWriter is not applicable for the arguments (String, LinkedHashMap<String,Answer>, Class<String>)
      [ERROR] src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (33:1362) : The method setCurrentAnswers(LinkedHashMap<String,Answer>) in the type UserAnswerLog is not applicable for the arguments (ArrayList)src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (33:1380) : Type mismatch: cannot convert from ArrayList to LinkedHashMap<String,Answer>src/main/java/org/kie/kogito/app/UserAnswerLogMessageMarshaller.java (38:1628) : The method writeCollection(String, Collection<? super E>, Class<E>) in the type MessageMarshaller.ProtoStreamWriter is not applicable for the arguments (String, LinkedHashMap<String,Answer>, Class<String>)
      [ERROR] at org.kie.kogito.quarkus.common.deployment.InMemoryCompiler.compile(InMemoryCompiler.java:104)
      [ERROR] at org.kie.kogito.quarkus.common.deployment.KogitoQuarkusResourceUtils.compileGeneratedSources(KogitoQuarkusResourceUtils.java:168)
      [ERROR] at org.kie.kogito.quarkus.processes.deployment.ProcessesAssetsProcessor.generatePersistenceInfo(ProcessesAssetsProcessor.java:195)
      [ERROR] at org.kie.kogito.quarkus.processes.deployment.ProcessesAssetsProcessor.postGenerationProcessing(ProcessesAssetsProcessor.java:157)
      [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:821)
      [ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
      [ERROR] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
      [ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
      [ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
      [ERROR] at java.base/java.lang.Thread.run(Thread.java:834)
      [ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)}}

              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: