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

Coderanch | Mary Cole | 6 years 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

    Error in executing Spring Query (Spring forum at Coderanch)

    coderanch.com | 1 year 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