-
Apr 12th, 2012, 10:16 AM
#1
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules