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

LocalDate* are on available in the ObjectMapper

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 1.13.0.Final
    • 1.15.0.Final
    • Core
    • None
    • False
    • False
    • Hide

      Reproducer project: https://github.com/dmarrazzo/order-kogito/tree/date-test
      Branch date-test

      1. Launch the process
      2. Perform the first task (make sure to set proceed flag)
      3. Perform the second task which contains the LocalDate payload

      Show
      Reproducer project: https://github.com/dmarrazzo/order-kogito/tree/date-test Branch date-test 1. Launch the process 2. Perform the first task (make sure to set proceed flag) 3. Perform the second task which contains the LocalDate payload
    • 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th)

    Description

      If the data model contains a LocalDate, I get the following exception:

      Unable to find source-code formatter for language: txt. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      2021-11-25 15:08:35,390 ERROR [org.jbp.wor.ins.imp.WorkflowProcessInstanceImpl] (executor-thread-3) Unexpected error (id 2efd13a0-aaa4-4159-9581-db770ac9183d) while executing node Automatic Acceptance in process instance ccd8b4ff-3056-421e-a981-1ace8007b5bf: org.jbpm.workflow.instance.WorkflowRuntimeException: [order:ccd8b4ff-3056-421e-a981-1ace8007b5bf - Automatic Acceptance:3] -- Java 8 date/time type `java.time.LocalDate` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: java.util.HashMap["order"]->com.example.model.Order["deliveryDate"])
      	at org.jbpm.workflow.instance.node.RuleSetNodeInstance.handleException(RuleSetNodeInstance.java:224)
      	at org.jbpm.workflow.instance.node.RuleSetNodeInstance.internalTrigger(RuleSetNodeInstance.java:206)
      	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:209)
      	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:406)
      	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:391)
      	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:361)
      	at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:50)
      	at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:375)
      	at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:335)
      	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:398)
      	at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:310)
      

      Attachments

        Issue Links

          Activity

            People

              evacchi Edoardo Vacchi
              dmarrazz@redhat.com Donato Marrazzo
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: