On 5/3/07, Christoph Walcher <[EMAIL PROTECTED]> wrote:
Hi,
i just switched to Spring version 2.0.4 - now the exception looks a
little bit different:
Yep. It looks like Spring team fixed their issue.
org.springframework.beans.TypeMismatchException: Failed to convert
property value of type [java.lang.String] to required type
You need to specify the property editor for InetSocketAddress. You
could add the following element:
<!-- This makes it possible to specify java.net.SocketAddress values
(e.g. :1234 below) as Strings.
They will be converted into java.net.InetSocketAddress objects by
Spring. -->
<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
<property name="customEditors">
<map>
<entry key="java.net.SocketAddress">
<bean
class="org.apache.mina.integration.spring.InetSocketAddressEditor" />
</entry>
</map>
</property>
</bean>
HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6