org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.lang.NullPointerException: tuples must be non-null

GitHub | MagIO2 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 667#254796491

    GitHub | 7 months ago | MagIO2
    org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.lang.NullPointerException: tuples must be non-null
  2. 0

    GitHub comment 667#254824811

    GitHub | 7 months ago | MagIO2
    org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.lang.NullPointerException: tuples must be non-null

    Root Cause Analysis

    1. java.lang.NullPointerException

      tuples must be non-null

      at org.postgresql.jdbc.PgResultSet.<init>()
    2. org.postgresql.jdbc
      PgStatement$StatementResultHandler.handleResultRows
      1. org.postgresql.jdbc.PgResultSet.<init>(PgResultSet.java:147)
      2. org.postgresql.jdbc.PgStatement.createResultSet(PgStatement.java:163)
      3. org.postgresql.jdbc.PgStatement$StatementResultHandler.handleResultRows(PgStatement.java:213)
      3 frames
    3. PostgreSQL JDBC Driver
      QueryExecutorImpl.execute
      1. org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2032)
      2. org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:286)
      2 frames
    4. org.postgresql.jdbc
      PgConnection.getTransactionIsolation
      1. org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:432)
      2. org.postgresql.jdbc.PgStatement.execute(PgStatement.java:358)
      3. org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:305)
      4. org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:291)
      5. org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:269)
      6. org.postgresql.jdbc.PgConnection.execSQLUpdate(PgConnection.java:480)
      7. org.postgresql.jdbc.PgConnection.getTransactionIsolation(PgConnection.java:850)
      7 frames
    5. Commons DBCP
      PoolingDataSource$PoolGuardConnectionWrapper.getTransactionIsolation
      1. org.apache.commons.dbcp.DelegatingConnection.getTransactionIsolation(DelegatingConnection.java:353)
      2. org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.getTransactionIsolation(PoolingDataSource.java:250)
      2 frames
    6. Spring Framework
      DataSourceTransactionManager.doBegin
      1. org.springframework.jdbc.datasource.DataSourceUtils.prepareConnectionForTransaction(DataSourceUtils.java:190)
      2. org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:213)
      2 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:372)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:417)
      3. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:255)
      4. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      4 frames
    8. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633)
      2 frames
    9. de.reproducer.webgui
      IpConfigMaintenance.main
      1. de.reproducer.webgui.clear.ipconfig.IpConfigMaintenanceDAO$$EnhancerBySpringCGLIB$$3192e4c4.importDataToDB(<generated>)
      2. de.reproducer.webgui.clear.ipconfig.IpConfigMaintenance.execute(IpConfigMaintenance.java:36)
      3. de.reproducer.webgui.clear.ipconfig.IpConfigMaintenance.main(IpConfigMaintenance.java:26)
      3 frames