om.github.jknack.handlebars.HandlebarsException: /resources/app/templates/forms/bindable-controls/bindable-single-select.hbs:4:11: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String /resources/app/templates/forms/bindable-controls/bindable-single-select.hbs:4:11

GitHub | dudabone | 5 months ago
  1. 0

    Each helper throws "java.lang.ClassCastException" when Map key is not a string

    GitHub | 5 months ago | dudabone
    om.github.jknack.handlebars.HandlebarsException: /resources/app/templates/forms/bindable-controls/bindable-single-select.hbs:4:11: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String /resources/app/templates/forms/bindable-controls/bindable-single-select.hbs:4:11

    Root Cause Analysis

    1. om.github.jknack.handlebars.HandlebarsException

      /resources/app/templates/forms/bindable-controls/bindable-single-select.hbs:4:11: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String /resources/app/templates/forms/bindable-controls/bindable-single-select.hbs:4:11

      at com.github.jknack.handlebars.helper.EachHelper.apply()
    2. com.github.jknack
      BaseTemplate.apply
      1. com.github.jknack.handlebars.helper.EachHelper.apply(EachHelper.java:89)
      2. com.github.jknack.handlebars.internal.Block.merge(Block.java:211)
      3. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:128)
      4. com.github.jknack.handlebars.internal.TemplateList.merge(TemplateList.java:94)
      5. com.github.jknack.handlebars.internal.BaseTemplate.apply(BaseTemplate.java:128)
      5 frames