org.postgresql.util.PSQLException: The column index is out of range: 5, number of columns: 4.

Stack Overflow | mateusz | 4 months ago
  1. 0

    Hibernate, Spring, PostgreSQL - column index is out of range

    Stack Overflow | 4 months ago | mateusz
    org.postgresql.util.PSQLException: The column index is out of range: 5, number of columns: 4.
  2. 0

    Hibernate JPA 2.0, Spring, Postgres - Exception: The column index is out of range

    Stack Overflow | 3 months ago | Gary
    org.postgresql.util.PSQLException: The column index is out of range: 4, number of columns: 3.
  3. 0

    Re: Error while retrieve mappings

    james-server-user | 3 years ago | Eric Charles
    org.apache.openjpa.persistence.PersistenceException: The column index is out of range: 2, number of columns: 1. FailedObject: SELECT rrt FROM JamesRecipientRewrite rrt WHERE (rrt.user LIKE :user OR rrt.user='*') and (rrt.domain like :domain or rrt.domain='*') ORDER BY rrt.domain DESC [java.lang.String]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    how to insert array in table using JDBC insert

    Stack Overflow | 1 year ago | Mary.Hansen
    org.postgresql.util.PSQLException: The column index is out of range: 1, number of columns: 0.
  6. 0

    update query

    Coderanch | 6 years ago | Aditi agarwal
    org.postgresql.util.PSQLException: The column index is out of range: 1, number of columns: 0.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.postgresql.util.PSQLException

      The column index is out of range: 5, number of columns: 4.

      at org.postgresql.core.v3.SimpleParameterList.bind()
    2. PostgreSQL JDBC Driver
      SimpleParameterList.setNull
      1. org.postgresql.core.v3.SimpleParameterList.bind(SimpleParameterList.java:68)[postgresql-9.4.1211.jar:9.4.1211]
      2. org.postgresql.core.v3.SimpleParameterList.setNull(SimpleParameterList.java:157)[postgresql-9.4.1211.jar:9.4.1211]
      2 frames
    3. org.postgresql.jdbc
      PgPreparedStatement.setNull
      1. org.postgresql.jdbc.PgPreparedStatement.setNull(PgPreparedStatement.java:287)[postgresql-9.4.1211.jar:9.4.1211]
      1 frame
    4. Hibernate
      ActionQueue.executeActions
      1. org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:61)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      2. org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:257)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      3. org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:252)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      4. org.hibernate.type.ComponentType.nullSafeSet(ComponentType.java:343)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      5. org.hibernate.persister.entity.AbstractEntityPersister.dehydrateId(AbstractEntityPersister.java:2636)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      6. org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2604)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      7. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2883)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      8. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3386)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      9. org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:89)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      10. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:560)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      11. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:434)[hibernate-core-5.0.9.Final.jar:5.0.9.Final]
      11 frames