powered by Jive Software

Openfire info.log IOException

Hi, i have some doubts with info.log file. I have a lot of entries like this:

org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports IOException for session: (SOCKET, R: /xxx.xxx.xxx.xxx:40192, L: /xxx.xxx.xxx.xxx:5222, S: 0.0.0.0/0.0.0.0:5222)

java.io.IOException: Connection reset by peer

at sun.nio.ch.FileDispatcher.read0(Native Method)

at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)

at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)

at sun.nio.ch.IOUtil.read(IOUtil.java:171)

at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.j ava:218)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcesso r.java:198)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$400(SocketIoProce ssor.java:45)

at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProce ssor.java:485)

at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:662)

I’m only doing connections with smack api like this:

ConnectionConfiguration config = new ConnectionConfiguration(serverToUse, 5222);

  • config.setReconnectionAllowed(false);*

  • XMPPConnection connection = new XMPPConnection(config)*

  • connection.connect();*

  • connection.login(user, password, resource?:“id”+Math.random());*

And then I disconnect in this way:

connection.disconnect(new Presence(Presence.Type.unavailable))

I want to know why i have a lot of ioexceptions for different sessions.

Thanks