Yes, I have noticed this too.

Strangely enough, it works when i "run" the application from Intellij IDEA
but it throws this exception when I try to "debug" the application from
Intellij IDEA.

I guess you're experiencing this on the trunk ?

Changing the parameter type of the setter in SocketAcceptor seems to help:

-public void setLocalAddress(SocketAddress localAddress) {
+public void setLocalAddress(InetSocketAddress localAddress) {

But I need to investigate further, because it appears I can not reproduce
this issue right now.
And I would like to know what exactly is causing this.

Maarten

On 8/31/07, tiandike <[EMAIL PROTECTED]> wrote:
>
>
> when i run SpringMain ,there is an Exception :
>
> Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name 'ioAcceptor' defined in class path resource
> [org/apache/mina/example/chat/serverContext.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException:
> Failed to convert property value of type [java.lang.String] to required
> type
> [java.net.InetSocketAddress] for property 'localAddress'; nested exception
> is java.lang.IllegalArgumentException: Method must not be null
> --
> View this message in context:
> http://www.nabble.com/The-error-in-chat-example-tf4358429s16868.html#a12421164
> Sent from the Apache MINA Support Forum mailing list archive at Nabble.com
> .
>
>

Reply via email to