Why I get ArrayIndexOutOfBoundsException when inserting a large byte array into an Any?
There is/was a bug in jacorb that wouldn't let you do the following:
ORB orb = ORB.init(args, props); // any byte larger than 4000 causes an ArrayIndexOutOfBoundException // when inserting into the any byte bytes = new byte; Any any = orb.create_any(); OctetSeqHelper.insert(any, bytes);
We solved that by producing a patched jacorb.jar v2.2.1 (JBoss patch 1).
This is included from JBoss v4.0.2beta+