org.hibernate.exception.ConstraintViolationException: could not insert: [introducaohibernate01.Professor]

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

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>

Solutions on the web

via by Unknown author, 1 year ago
via Coderanch by Bharath Gowda, 1 year ago
via by Unknown author, 1 year ago
could not insert: [org.hibernate.model.Student]
via Stack Overflow by bunnyjesse112
, 2 years ago
could not insert: [entity.PurchaseOrder]
via Coderanch by shwetank singh, 1 year ago
via JIRA by Kostas Karkaletsis, 1 year ago
could not insert: [eu.epsos.configmanager.database.model.Property]
org.postgresql.util.PSQLException: ERRO: valor nulo na coluna "nome" viola a restrição não-nula
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(
at org.postgresql.core.v3.QueryExecutorImpl.processResults(
at org.postgresql.core.v3.QueryExecutorImpl.execute(
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(
at org.hibernate.persister.entity.AbstractEntityPersister.insert(
at org.hibernate.action.EntityInsertAction.execute(
at org.hibernate.engine.ActionQueue.execute(
at org.hibernate.engine.ActionQueue.executeActions(
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(
at org.hibernate.impl.SessionImpl.flush(
at introducaohibernate01.ProfessorDAO.salvarProfessor(
at introducaohibernate01.Main.main(

Users with the same issue

37 times, 1 week ago
3 times, 1 month ago
Once, 2 months ago
Once, 2 months ago
32 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.