2 Replies Latest reply on Jun 13, 2013 2:10 PM by Bobby Diaz

    ArrayIndexOutOfBoundsException when trying to deserialize an insert statement

    Bobby Diaz Newbie

      I am getting the following error when trying to execute an insert statement (PreparedStatement) which includes multiple columns containing ArrayList<Float> with 1000+ values each.  Has anyone encountered this issue or is there a known work around?  Using Java 1.6, JBoss 7.11, Teiid 8.3.

       

      11:19:02,694 ERROR [org.teiid.TRANSPORT] (New I/O server worker #1-1) Unhandled exception, closing client instance: java.lang.ArrayIndexOutOfBoundsException

                at org.jboss.netty.buffer.HeapChannelBuffer.getBytes(HeapChannelBuffer.java:107) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.buffer.DynamicChannelBuffer.getBytes(DynamicChannelBuffer.java:138) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.buffer.AbstractChannelBuffer.readBytes(AbstractChannelBuffer.java:338) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.buffer.ChannelBufferInputStream.read(ChannelBufferInputStream.java:122) [netty-3.2.6.Final.jar:]

                at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2265) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2278) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2773) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readHandle(ObjectInputStream.java:1430) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1489) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1666) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1322) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [rt.jar:1.6.0_27]

                at org.teiid.core.util.ExternalizeUtil.readArray(ExternalizeUtil.java:117) [teiid-common-core-8.3.0.Final.jar:8.3.0.Final]

                at org.teiid.core.util.ExternalizeUtil.readList(ExternalizeUtil.java:134) [teiid-common-core-8.3.0.Final.jar:8.3.0.Final]

                at org.teiid.core.util.ExternalizeUtil.readList(ExternalizeUtil.java:138) [teiid-common-core-8.3.0.Final.jar:8.3.0.Final]

                at org.teiid.client.RequestMessage.readExternal(RequestMessage.java:388) [teiid-client-8.3.0.Final.jar:8.3.0.Final]

                at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [rt.jar:1.6.0_27]

                at org.teiid.core.util.ExternalizeUtil.readArray(ExternalizeUtil.java:117) [teiid-common-core-8.3.0.Final.jar:8.3.0.Final]

                at org.teiid.net.socket.ServiceInvocationStruct.readExternal(ServiceInvocationStruct.java:60) [teiid-client-8.3.0.Final.jar:8.3.0.Final]

                at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [rt.jar:1.6.0_27]

                at org.teiid.net.socket.Message.readExternal(Message.java:51) [teiid-client-8.3.0.Final.jar:8.3.0.Final]

                at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [rt.jar:1.6.0_27]

                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [rt.jar:1.6.0_27]

                at org.teiid.transport.ObjectDecoder.decode(ObjectDecoder.java:128) [teiid-runtime-8.3.0.Final.jar:8.3.0.Final]

                at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:282) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:214) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282) [netty-3.2.6.Final.jar:]

                at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202) [netty-3.2.6.Final.jar:]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_27]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_27]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_27]

       

       

      Regards,

      Bobby