So I’'ve got this problem where a piece of software of mine that sends large Messages on a regular basis dies with a “No response from server” message when it tries to send a message again.
And after that, if I log onto the Jive Messenger page and look at the “Room Summary” section, I see that user still logged into the MUC! I then have to manually Destroy Room through the Jive web page and destroy the room before I restart the program. And sometimes the user itself stays on (I check using the Sessions page) even though I terminated the Java process which had the user. Destroying the room and closing that user’'s connection through Jive makes the webpage really slow for about a minute or two.
In more detail, I have a program that polls a webcam’‘s image every 10 seconds and posts it to a MUC as a Smack property (e.g., Packet.setProperty(), Packet.getProperty()). This allows many people to view the image from the webcam, because otherwise it just wouldn’'t be able to handle the bandwidth. The image is a 640x480 JPEG, but low quality so it ends up being about 22KB.
This is really strange, and the behavior is kinda unpredictable. Sometimes, the java process dies with an OutOfMemoryError. Sometimes, the XMPPConnection is closed:
java.net.SocketException: Software caused connection abort: socket write error
Thread (Suspended (breakpoint at line 93 in MyPeer))
MyPeer.connectionClosedOnError(Exception) line: 93
PacketReader.notifyConnectionError(Exception) line: 206
PacketWriter.writePackets() line: 224
PacketWriter.access$000(PacketWriter) line: 34
PacketWriter$1.run() line: 59
I have had no other similar issues with Jive–ever. If anyone has any ideas, please reply. Thanks ahead of time.