Tobias Mayer - 2010-02-28

I worte an very small icq client. I just want to see how to recieve an send
messages from icq.

If anyone sends me 2 messages in very few time i get an
"ArrayIndexOutOfBoundsException".

for example, anyone sends me:

Hallo bias (in the first message)

:) (in a second message, inmmediate after the first)

i get:

---------Hallo bias----------
28.02.2010 13:33:12 JOscarLib.Core.OscarPacketAnalyser handleService

INFO: --> JOscarLib.Packet.Received.IncomingMessage__4_7 loaded

28.02.2010 13:33:14 JOscarLib.Core.OscarPacketAnalyser handleService

INFO: Received 4 - 10

ArrayCopy

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at
JOscarLib.Core.OscarPacketAnalyser.handleService(OscarPacketAnalyser.java:110)

at
JOscarLib.Core.OscarPacketAnalyser.handlePacket(OscarPacketAnalyser.java:68)

at JOscarLib.Core.OscarClient.run(OscarClient.java:112)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ArrayIndexOutOfBoundsException

at java.lang.System.arraycopy(Native Method)

at JOscarLib.RawData.<init>(RawData.java:102)

at JOscarLib.Packet.Received.MissedMessage4_10.<init>(MissedMessage4_10.ja
va:89)

... 8 more

28.02.2010 13:33:14 JOscarLib.Core.OscarPacketAnalyser handlePacket

WARNUNG: failed to service packet (continuing with other packets)

Does anyone else have the same problem? Any Ideas?

Thanks