Skip to Content
0
Feb 23 at 12:52 PM

JDBC Error

249 Views

Hi everyone,

We are using JDBC driver (ver. 7.6.11.12.35) to access MaxDB (ver. 7.9.09.10) in our Java application and we are occasionally getting an error with the stack trace given at the end. We are not able to reproduce it in any way. The stack trace comes in different forms but the thing that never changes is "Index 41 out of bounds for length 32". Does anyone have an idea what could cause it?

Thank you in advance.

Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 41 out of bounds for length 32
at com.sap.dbtech.util.StructuredBytes.getInt2(StructuredBytes.java:168)
at com.sap.dbtech.jdbc.packet.ReplyPacket.clearPartCache(ReplyPacket.java:778)
at com.sap.dbtech.jdbc.packet.ReplyPacket.<init>(ReplyPacket.java:52)
at com.sap.dbtech.jdbc.packet.ReplyPacketFactory.getReplyPacket(ReplyPacketFactory.java:28)
at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:640)
at com.sap.dbtech.util.GarbageCan.emptyCan(GarbageCan.java:70)
at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:674)
at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:552)
at com.sap.dbtech.jdbc.FetchInfo.executeFetchCommand(FetchInfo.java:292)
at com.sap.dbtech.jdbc.FetchInfo.executeFetchFirst(FetchInfo.java:253)
at com.sap.dbtech.jdbc.ResultSetSapDB.fetchFirst(ResultSetSapDB.java:2529)
at com.sap.dbtech.jdbc.ResultSetSapDB.next(ResultSetSapDB.java:393)
at com.sap.dbtech.jdbc.trace.ResultSet.next(ResultSet.java:269)