Announcement Announcement Module
No announcement yet.
Problems with using CustomEditorConfigurer: java.lang.NumberFormatException. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with using CustomEditorConfigurer: java.lang.NumberFormatException.

    Hi! I have some problems with registering CustomEditorConfigurer. I add bean to my spring configuration file:
    <bean id="customEditorConfigurer"
    class="org.springframework.beans.factory.config.Cu stomEditorConfigurer" >
    <property name="customEditors">
    <entry key="java.util.List">
    class="MyListProperyEditor" >
    <property name="operationTimeoutMap">
    <entry key="operationFirst">

    operationTimeoutMap has type LinkedHashMap<String, Integer>, and in result I have exception

    'MyListProperyEditor#26e56ae' : Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.util.LinkedHashMap] to required type [java.util.LinkedHashMap] for property 'operationTimeoutMap'; nested exception is java.lang.NumberFormatException: For input string: "${DefaultOperationTimeout}".

    property DefaultOperationTimeout has integer type.

    Could you help me to solve this problem?