Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9531

[Business Central] Forms DatePicker generates null value when show time is off

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 7.44.0.Final
    • Console
    • None
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • ---
    • ---

    Description

      Context: using forms to perform human tasks in a process.

      The data object has a date field (java.util.Date).

      In the form designer the field is rendered with a DatePicker.

      Among the DatePicker options: deselect the "Show Time". 

       

       

      At runtime, when the user enter the date and submit the form, the outcome is a null value. In the logs the following exception is raised:

      Unable to find source-code formatter for language: text. 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
      14:21:41,733 WARN  [org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.ModelMarshaller] (default task-1) Error modifying object 'Employee {id: null, name: oioih, department: Store, roleTitle: Sales, startDate: null, extendedInfo: null }': cannot set value 'null' to property 'startDate'14:21:41,733 WARN  [org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.ModelMarshaller] (default task-1) Error modifying object 'Employee {id: null, name: oioih, department: Store, roleTitle: Sales, startDate: null, extendedInfo: null }': cannot set value 'null' to property 'startDate'14:21:41,733 WARN  [org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.ModelMarshaller] (default task-1) Caused by:: org.apache.commons.beanutils.ConversionException: No value specified for 'Date' at deployment.business-central.war//org.apache.commons.beanutils.converters.AbstractConverter.handleMissing(AbstractConverter.java:328) at deployment.business-central.war//org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:149)
      

       

       

      Attachments

        Activity

          People

            rh-ee-pefernan Pere Fernandez Perez
            dmarrazz@redhat.com Donato Marrazzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: