mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Walcher" <mina.20.saintedl...@spamgourmet.com>
Subject Problems with SocketAcceptor usage from Spring
Date Wed, 02 May 2007 12:34:25 GMT
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?

Mime
View raw message