org.springframework.dao.TransientDataAccessResourceException

PreparedStatementCallback; SQL [SELECT * FROM USER WHERE EMAIL = ?]; Conversion not supported for type xxx.enums.Gender; nested exception is java.sql.SQLException: Conversion not supported for type xxx.enums.Gender

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web16

  • via Unknown by cemo koc,
  • via Unknown by cemo koc,
  • Stack trace

    • org.springframework.dao.TransientDataAccessResourceException: PreparedStatementCallback; SQL [SELECT * FROM USER WHERE EMAIL = ?]; Conversion not supported for type xxx.enums.Gender; nested exception is java.sql.SQLException: Conversion not supported for type xxx.enums.Gender at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:108)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:657)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:692)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:719)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:769)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE] at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:211)[spring-jdbc-4.1.0.RELEASE.jar:4.1.0.RELEASE]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    1 more bugmates