powered by Jive Software

ArrayIndexOutOfBoundsException when joining to group chat

Hi,

I use Jive Messenger v. 2.2.1. Yesterday I had problem with joining users to group chat.

There were many errors in error.log like this one:

org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUs erChatServerImpl.java:203) Internal server error

java.lang.ArrayIndexOutOfBoundsException: 26[/b]

at java.util.LinkedList.toArray(LinkedList.java:694)

at java.util.LinkedList.addAll(LinkedList.java:265)

at java.util.LinkedList.addAll(LinkedList.java:242)

at java.util.LinkedList.(LinkedList.java:98)

at org.jivesoftware.messenger.muc.HistoryStrategy.getMessageHistory(HistoryStrateg y.java:189)

at org.jivesoftware.messenger.muc.MUCRoomHistory.getMessageHistory(MUCRoomHistory. java:109)

at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.joinRoom(MUCRoomImpl.java:555)

at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:378)

at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:123)

at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiU serChatServerImpl.java:200)

at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.process(MultiUserCha tServerImpl.java:184)

at org.jivesoftware.messenger.PresenceRouter.handle(PresenceRouter.java:92)

at org.jivesoftware.messenger.PresenceRouter.route(PresenceRouter.java:61)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:73)

at org.jivesoftware.messenger.net.SocketReader.processPresence(SocketReader.java:3 01)

at org.jivesoftware.messenger.net.ClientSocketReader.processPresence(ClientSocketR eader.java:49)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:208)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:111)

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

Parameter “Show a Specific Number of Messages” is set to value “25”. Jive messenger tried to use index 26.

After restarting Jive Messenger was ok.

Does anyone know what happened?

Hey Ondrej,

Thanks for the bug report. I created the issue JM-455 and I’'m testing the fix now. I will update this thread when a fix is available.

Thanks,

– Gato

Hey Ondrej,

Bug fixed has been tested and is working fine. You may get the next nightly build or wait for the next beta or RC that is going to come out this week.

Regards,

– Gato