I created a sample program that joins a multi user chat room in Openfire Server.
I changed the "Maximum Room Occupants" of multi user chat room to "unlimited".
On joining around 850 user in a multi user chat room, I am getting the following exception
org.jivesoftware.openfire.session.LocalSession - Internal server error
java.lang.NullPointerException
at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:356)
at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857)
at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289)
at org.jivesoftware.openfire.muc.spi.LocalMUCRole.send(LocalMUCRole.java:263)
at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.broadcast(LocalMUCRoom.java:1155)....
CPU Usage is also increasing to 100% at this time.
Please advice me to solve this problem.