mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: Problems with SocketAcceptor usage from Spring
Date Wed, 02 May 2007 13:13:36 GMT
On 5/2/07, Christoph Walcher <mina.20.saintedlama@spamgourmet.com> wrote:
> SVN revision 534322 breaks my Spring configuration on JDK 1.5. My
> problem is quite similar to the problem posted by Vic Ganora but the
> fix applied did not work for me.
> The problem seems to occur because the beanInfo for SocketAcceptor
> doesn't report the setter for the localAddress property because
> getLocalAddress returns an instance of INetSocketAddress while the
> related setter accepts SocketAddress instances.
> IMHO it would be more clear to use SocketAddress in both cases and
> furthermore it would solve my problem.
> Exception extract:
> Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.mina.transport.socket.nio.SocketAcceptor'
> defined in file [xxxxx.xml]: Error setting property values; nested
> exception is org.springframework.beans.NotWritablePropertyException:
> Invalid property 'localAddress' of bean class
> [org.apache.mina.transport.socket.nio.SocketAcceptor]: Bean property
> 'localAddress' is not writable or has an invalid setter method. Does
> the parameter type of the setter match the return type of the getter?

Which version of Spring framework are you using?  Did you try with the
latest version of Spring?

what we call human nature is actually human habit
PGP Key ID: 0x0255ECA6

View raw message