Skip to content

JdbcOAuth2AuthorizationService in postgresql cannot casting type blob #467

Closed
@phuongdpham

Description

@phuongdpham

Caused by: org.postgresql.util.PSQLException: Cannot cast an instance of [B to type Types.BLOB

When I set datasource to Postgres, then

private OAuth2Authorization findBy(String filter, List<SqlParameterValue> parameters) { PreparedStatementSetter pss = new ArgumentPreparedStatementSetter(parameters.toArray()); List<OAuth2Authorization> result = this.jdbcOperations.query(LOAD_AUTHORIZATION_SQL + filter, pss, this.authorizationRowMapper); return !result.isEmpty() ? result.get(0) : null; }
throw exeption abount casting Types.BLOB to bytea in postgres table oauth2_authorization column access_token_value

Thanks,

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions