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

Samebug tips

  1. ,
    Expert tip

    Try downgrading PostgresSQL server to 9.5 or update your PostgresSQL driver to 9.4-1211 with the following command: <postgresql.version>9.4.1211</postgresql.version>

  2. ,
    via stackoverflow.com by Unknown author

    Upgrade the database driver to the latest and check.

    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>9.3-1101-jdbc41</version>
    </dependency>
    

    Replace version with the latest driver version.

Solutions on the web

via Hibernate JIRA by Miro Bezjak, 1 year ago
org.hibernate.exception.ConstraintViolationException: could not insert: [test.User]
via Hibernate JIRA by Miro Bezjak, 2 years ago
org.hibernate.exception.ConstraintViolationException: could not insert: [test.User]
via hivmr.com by Unknown author, 1 year ago
org.hibernate.exception.DataException: could not insert: [net.mpsolution.model.Usuario]
via https://bugzilla.redhat.com/bugzilla/ by Rajan Timaniya, 1 year ago
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.rhq.core.domain.content.RepoContentSource#RepoContentSourcePK: repo=[Repo: id=[101], name=[JBoss Patches]]; contentSource=[ContentSource: id=[101], name=[JBoss CSP Patch Feed]]]
via hibernate.org by Unknown author, 1 year ago
org.hibernate.exception.SQLGrammarException: could not get next sequence value
via hibernate.org by Unknown author, 2 years ago
org.hibernate.exception.SQLGrammarException: could not get next sequence value
org.postgresql.util.PSQLException: ERROR: syntax error at or near "call"	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1608)	at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)	at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:98)	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)	at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:119)	at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)	at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:226)	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)	at java.lang.Thread.run(Unknown Source)