Thursday, August 1, 2013

UnresolvedAddressException Tip

Getting java.nio.channels.UnresolvedAddressException?
Having no idea why does this happen?

Check the code that creates the address. Did you use java.net.InetSocketAddress.createUnresolved(String, int) to create it?
Do NOT! Just new java.net.InetSocketAddress and it should be fixed.

P.S. This is kind of a post I write here after spending hours on a stupid bug.
So people can google it out and spend less time on it.

1 comment:

Lucia said...

No, I don't use that to create the URL.
I get this error when sending Web Service request from SOAPUI tool and include Notification URL within it. The service supposed to send the Notification will get this error. And have no clue what is about.