When I launch multiple clients at the same time (> 20), some of them fail to send messages over UDP. This is the null pointer exception thrown by the SmartFox framework:
Code: Select all
java.lang.NullPointerException
at sfs2x.client.core.sockets.UDPSocketLayer.write(UDPSocketLayer.java:143)
at sfs2x.client.bitswarm.UDPManager.send(UDPManager.java:104)
at sfs2x.client.core.SFSIOHandler.writeUDP(SFSIOHandler.java:409)
at sfs2x.client.core.SFSIOHandler.onDataWrite(SFSIOHandler.java:392)
at sfs2x.client.core.SFSProtocolCodec.onPacketWrite(SFSProtocolCodec.java:79)
at sfs2x.client.bitswarm.BitSwarmClient.send(BitSwarmClient.java:223)
at sfs2x.client.SmartFox.send(SmartFox.java:893)
Cheers
Jan