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
  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]
  3. 0

    GitHub comment 14#183032868

    GitHub | 10 months ago | sheshmantha
    java.lang.IllegalArgumentException: Property value [Map(key1 -> value1, key2 -> value2)] is of type class scala.collection.immutable.Map$Map2 is not supported
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug 181068 – The type [null] is not the expected [EntityType] for the key class [class myClass]

    netbeans.org | 1 month ago
    java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class entity.MyClass].
  6. 0

    db:: 3.67::HandleRequestInternal is not called in spring zd

    hivmr.com | 8 months ago
    java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class data.NewEntity].

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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