powered by Jive Software

Strange java.net.UnknownHostException error


I have installed openfire on a Debian etch with ldap and postgres.

I can login to the server from the web interface and I can use a client to login.

I add another user to my list but sometimes no autorization is requesed to other user.

Sometimes when I or other users login someone are online in a visible state but other are offline or not autorized.

In the error log I see a very strange error:

[org.jivesoftware.openfire.session.LocalOutgoingServerSession.cr eateOutgoingSession(LocalOutgoingServerSession.java:258)]

Error trying to connect to remote server: pietro(DNS lookup:


java.net.UnknownHostException: pietro

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

at java.net.Socket.connect(Socket.java:520)

But pietro is only my username, not my hostname.

There is the same error even with other account.

What is the problem?


This problem is caused by Openfire inserting non-valid JIDs into your roster. Openfire then thinks these IDs are server names?

When you add a buddy, you need to use a valid JID: ex) pietro@myhostname.com