Announcement Announcement Module
Collapse
No announcement yet.
Problems with using CustomEditorConfigurer: java.lang.NumberFormatException. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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">
    <map>
    <entry key="java.util.List">
    <bean
    class="MyListProperyEditor" >
    <property name="operationTimeoutMap">
    <map>
    <entry key="DEFAULT_OPERATION_TIMEOUT">
    <value>${DefaultOperationTimeout}</value>
    </entry>
    <entry key="operationFirst">
    <value>${operationFirstTimeout}</value>
    </property>
    </bean>

    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?
Working...
X