How to telnet to openfire server?

I’ve installed openfire on my Windows Vista laptop and was able to connect using the Pandion IM client.

I’d like to try some examples from the O’Reilly book where it suggests using telnet but I have not been able to successfully telnet in.

When I use putty to telnet to the server on port 5222, the connection is refused and I see a bunch of messages on the openfire console:

1831862 [SocketAcceptor-0] WARN - Unexpected exception.
org.apache.mina.common.RuntimeIOException: Invalid argument:
at org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.setKee pAlive(
at org.apache.mina.transport.socket.nio.SocketSessionImpl.(SocketSessionImpl .java:101)
at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.processSessions(Sock
at org.apache.mina.transport.socket.nio.SocketAcceptor$ ava:225)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)
Caused by: Invalid argument:
at Method)
at Source)
at$1.setInt(Unknown Source)
at Source)
at Source)
at$IP$TCP.keepAlive(Unknown Source)
at Source)
at Source)
at org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.setKee pAlive(
… 7 more

Any ideas?