Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by sureshg
, 1 year ago
SQL [insert into secrets (name, createdat, updatedat, description, createdby, updatedby, type, options) values (?, cast(? as timestamp), cast(? as timestamp), ?, ?, ?, ?, ?) returning secrets.id]; duplicate key value violates unique constraint "secrets_pkey"
org.jooq.exception.DataAccessException: SQL [insert into secrets (name, createdat, updatedat, description, createdby, updatedby, type, options) values (?, cast(? as timestamp), cast(? as timestamp), ?, ?, ?, ?, ?) returning secrets.id]; duplicate key value violates unique constraint "secrets_pkey" at com.impossibl.postgres.jdbc.ErrorUtils.makeSQLException(ErrorUtils.java:154) at com.impossibl.postgres.jdbc.ErrorUtils.makeSQLException(ErrorUtils.java:136) at com.impossibl.postgres.jdbc.PGConnectionImpl.execute(PGConnectionImpl.java:438) at com.impossibl.postgres.jdbc.PGStatement.executeStatement(PGStatement.java:375) at com.impossibl.postgres.jdbc.PGPreparedStatement.execute(PGPreparedStatement.java:261) at com.impossibl.postgres.jdbc.PGPreparedStatement.executeQuery(PGPreparedStatement.java:277) at com.impossibl.postgres.jdbc.PGPreparedStatement.executeQuery(PGPreparedStatement.java:92)