org.springframework.jdbc.IncorrectResultSetColumnCountException: Incorrect column count: expected 1, actual 8

Coderanch | Mary Cole | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error in executing Spring Query (Spring forum at Coderanch)

    coderanch.com | 11 months ago
    org.springframework.jdbc.IncorrectResultSetColumnCountException: Incorrect column count: expected 1, actual 8
  2. 0

    Error in executing Spring Query

    Coderanch | 6 years ago | Mary Cole
    org.springframework.jdbc.IncorrectResultSetColumnCountException: Incorrect column count: expected 1, actual 8

    Root Cause Analysis

    1. org.springframework.jdbc.IncorrectResultSetColumnCountException

      Incorrect column count: expected 1, actual 8

      at org.springframework.jdbc.core.SingleColumnRowMapper.mapRow()
    2. Spring Framework
      NamedParameterJdbcTemplate.queryForObject
      1. org.springframework.jdbc.core.SingleColumnRowMapper.mapRow(SingleColumnRowMapper.java:87)
      2. org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:92)
      3. org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:1)
      4. org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:648)
      5. org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:586)
      6. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:636)
      7. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:661)
      8. org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:701)
      9. org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:177)
      9 frames