java.lang.IllegalArgumentException: Map key 'propertyDefinition' has value [null] that is not of expected type [class com.company.product.MyFormBean], instead it is of type [null]

Spring JIRA | Ray Krueger | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Discussed at http://forum.springframework.org/showthread.php?t=25784 Essentially, for a parent flow to pass flow scope values into a subflow, that subflow MUST declare an input-mapper in it's flow definition. This is new functionality introduced in RC2 I believe. Once you introduce an input-mapper into the flow definition, that flow can no longer be used as a stand-alone flow. The reason being that the input-mapper required parameter is null. java.lang.IllegalArgumentException: Map key 'propertyDefinition' has value [null] that is not of expected type [class com.company.product.MyFormBean], instead it is of type [null] at org.springframework.binding.util.MapAccessor.assertKeyValueInstanceOf(MapAccessor.java:455) at org.springframework.binding.util.MapAccessor.assertKeyValueOfType(MapAccessor.java:442) at org.springframework.binding.util.MapAccessor.get(MapAccessor.java:95) at org.springframework.binding.util.MapAccessor.get(MapAccessor.java:78) at org.springframework.webflow.AbstractAttributeMap.get(AbstractAttributeMap.java:113) at org.springframework.webflow.action.FormObjectAccessor.getFormObject(FormObjectAccessor.java:148) at org.springframework.webflow.action.FormAction.getFormObject(FormAction.java:700) at org.springframework.webflow.action.FormAction.setupForm(FormAction.java:481) ...

    Spring JIRA | 1 decade ago | Ray Krueger
    java.lang.IllegalArgumentException: Map key 'propertyDefinition' has value [null] that is not of expected type [class com.company.product.MyFormBean], instead it is of type [null]
  2. 0

    Discussed at http://forum.springframework.org/showthread.php?t=25784 Essentially, for a parent flow to pass flow scope values into a subflow, that subflow MUST declare an input-mapper in it's flow definition. This is new functionality introduced in RC2 I believe. Once you introduce an input-mapper into the flow definition, that flow can no longer be used as a stand-alone flow. The reason being that the input-mapper required parameter is null. java.lang.IllegalArgumentException: Map key 'propertyDefinition' has value [null] that is not of expected type [class com.company.product.MyFormBean], instead it is of type [null] at org.springframework.binding.util.MapAccessor.assertKeyValueInstanceOf(MapAccessor.java:455) at org.springframework.binding.util.MapAccessor.assertKeyValueOfType(MapAccessor.java:442) at org.springframework.binding.util.MapAccessor.get(MapAccessor.java:95) at org.springframework.binding.util.MapAccessor.get(MapAccessor.java:78) at org.springframework.webflow.AbstractAttributeMap.get(AbstractAttributeMap.java:113) at org.springframework.webflow.action.FormObjectAccessor.getFormObject(FormObjectAccessor.java:148) at org.springframework.webflow.action.FormAction.getFormObject(FormAction.java:700) at org.springframework.webflow.action.FormAction.setupForm(FormAction.java:481) ...

    Spring JIRA | 1 decade ago | Ray Krueger
    java.lang.IllegalArgumentException: Map key 'propertyDefinition' has value [null] that is not of expected type [class com.company.product.MyFormBean], instead it is of type [null]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Map key 'propertyDefinition' has value [null] that is not of expected type [class com.company.product.MyFormBean], instead it is of type [null]

      at org.springframework.binding.util.MapAccessor.assertKeyValueInstanceOf()
    2. org.springframework.binding
      MapAccessor.get
      1. org.springframework.binding.util.MapAccessor.assertKeyValueInstanceOf(MapAccessor.java:455)
      2. org.springframework.binding.util.MapAccessor.assertKeyValueOfType(MapAccessor.java:442)
      3. org.springframework.binding.util.MapAccessor.get(MapAccessor.java:95)
      4. org.springframework.binding.util.MapAccessor.get(MapAccessor.java:78)
      4 frames
    3. org.springframework.webflow
      AbstractAttributeMap.get
      1. org.springframework.webflow.AbstractAttributeMap.get(AbstractAttributeMap.java:113)
      1 frame
    4. Spring Web Flow
      FormAction.setupForm
      1. org.springframework.webflow.action.FormObjectAccessor.getFormObject(FormObjectAccessor.java:148)
      2. org.springframework.webflow.action.FormAction.getFormObject(FormAction.java:700)
      3. org.springframework.webflow.action.FormAction.setupForm(FormAction.java:481)
      3 frames