ArrayIndexOutOfBounds during writing of big object in GSS enabled connection
search cancel

ArrayIndexOutOfBounds during writing of big object in GSS enabled connection

book

Article ID: 387206

calendar_today

Updated On:

Products

VMware Tanzu Data Suite

Issue/Introduction

User is calling JDBC batch update using stored proc which has insert operation: Insert operation with high data set is throwing the following stacktrace

 

2025-01-14 18:56:29.395 GMT+08:00 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] ERROR m.e.s.c.QuoteConsumerServiceImpl - Error while processing Quote: 
java.lang.ArrayIndexOutOfBoundsException: null
  at msjava.kerberos.jgss.impl.MSGSSContextSpi.wrap0(Native Method)
  at msjava.kerberos.jgss.impl.MSGSSContextSpi.wrap(MSGSSContextSpi.java:539)
  at sun.security.jgss.GSSContextImpl.wrap(GSSContextImpl.java:385)
  at org.postgresql.gss.GSSOutputStream.writeWrapped(GSSOutputStream.java:52)
  at org.postgresql.gss.GSSOutputStream.write(GSSOutputStream.java:76)
  at java.io.FilterOutputStream.write(FilterOutputStream.java:97)
  at org.postgresql.core.PGStream.send(PGStream.java:398)
  at org.postgresql.core.v3.SimpleParameterList.writeV3Value(SimpleParameterList.java:551)
  at org.postgresql.core.v3.QueryExecutorImpl.sendBind(QueryExecutorImpl.java:1774)
  at org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.java:2022)
  at org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.java:1535)
  at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:364)
  at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:517)
  at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:434)
  at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:194)
  at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:155)
  at msjava.dbpool.connectionwrapper.internal.proxy.DBPoolPreparedStatementProxy.executeUpdate(DBPoolPreparedStatementProxy.java:205)
  at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:882)
  at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:875)
  at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:638)
  at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:875)
  at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:936)
  at ms.espt.storage.service.DataPersistenceService.writeQuote(DataPersistenceService.java:117)

Cause

This is caused by Postgres JDBC defect. 

 

 

Resolution

Postgres JDBC problem fix is tracked under: https://github.com/pgjdbc/pgjdbc/pull/3492