java.sql.SQLException: Try to insert null into a non-nullable column in statement [INSERT INTO CONTRACT (ID, NAME, TYPE, CLIENT, STATUS, type) VALUES (10, NULL, 0, 0, 0, NULL)]

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 Oracle Community by 843830, 1 year ago
Try to insert null into a non-nullable column in statement [INSERT INTO CONTRACT (ID, NAME, TYPE, CLIENT, STATUS, type) VALUES (10, NULL, 0, 0, 0, NULL)]
via hsqldb by wiggly
, 1 year ago
The database is shutdown in statement \[INSERT INTO session ( id, user\_id, machine\_id, start, charge, reward ) VALUES ( 4231, 1661, 1189, '20041227164527', 0, 0 )\]
via hsqldb by nobody
, 1 year ago
File input/output error: saveSorted java.lang.ClassCastException: java.lang.Float in statement \[ALTER TABLE \_DSMS\_2ENCOURS DROP COLUMN ColumnName ;\]
via hsqldb by kobudo10
, 1 year ago
Wrong data type: String index out of range: 10 in statement \[Insert into FortisTable values (2003,1,3903-06-25,3903-06-25,'+600','EUR','Contrepartie OPeration','detaildetaildetail','000-0000000-00','')\]
via hsqldb by johansend
, 1 year ago
Column not found: P\_NAME in statement \[see above\]
via hsqldb by jeffcampbell
, 1 year ago
This function is not supported: org.hsqldb.Library.identity: java.lang.reflect.InvocationTargetException in statement \[CALL IDENTITY()\]
java.sql.SQLException: Try to insert null into a non-nullable column in statement [INSERT INTO CONTRACT (ID, NAME, TYPE, CLIENT, STATUS, type) VALUES (10, NULL, 0, 0, 0, NULL)]
at org.hsqldb.Trace.getError(Unknown Source)
at org.hsqldb.jdbcResultSet.(Unknown Source)
at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
at org.hsqldb.jdbcConnection.execute(Unknown Source)
at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbcStatement.executeUpdate(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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