I have the same problem to you. 
I'm using the latest snapshot (mina-core-2.0.0-M1-20080124.103130-116.jar).

| java.lang.ArrayIndexOutOfBoundsException
| at
org.apache.mina.util.CircularQueue.shrinkIfNeeded(CircularQueue.java:233)

This problem caused when newLen is less than the length of
System.arraycopy().

| Object[] tmp = new Object[newLen];
| ..   
|            if (first < last) {
|                System.arraycopy(items, first, tmp, 0, last - first);      
* bug
|            } else {
|                System.arraycopy(items, first, tmp, 0, oldLen - first);   *
bug
|                System.arraycopy(items, 0, tmp, oldLen - first, last);    *
bug
|            }

It seems to be preferred to use java.util.LinkedList instead of custom
CircularQueue 
for messageQueue(s) in
AbstractProtocolEncoderOutput/AbstractProtocolDecoderOutput.

Thanks,

Makoto YUI
-- 
View this message in context: 
http://www.nabble.com/mina-and-jdk6u4-tp14922204s16868p15225610.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to