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. ,

    Check whether privilege has the "not null" restriction. If so it always has to have a value and can never be null.

    A different reason could be a wrong implementation of a foreign key. Check whether you always correctly insert/update in both tables.

  2. ,

    Nothing is wrong with the database. When it gives you those errors, it's telling you that you are trying to input "nothing" (null) into a column that doesn't allow it. Fix it by removing the not null constraint or by passing a value to that field.

Solutions on the web

via Atlassian JIRA by Cezary Zawadka, 1 year ago
Error talking to database: Problem with constraints script /opt/webservers/fecru-2.6.0_initial/sql/MYSQL/schema/constraints_73.sql
via atlassian.com by Unknown author, 2 years ago
Error talking to database: Problem with constraints script /opt/webservers/fecru-2.6.0_initial/sql/MYSQL/schema/constraints_73.sql
via Atlassian JIRA by Cezary Zawadka, 1 year ago
Error talking to database: Problem with constraints script /opt/webservers/fecru-2.6.0_initial/sql/MYSQL/schema/constraints_73.sql
via atlassian.com by Unknown author, 1 year ago
Error talking to database: Problem with constraints script /opt/fisheye_home/sql/POSTGRESQL/schema/constraints_76.sql
via Atlassian JIRA by Dylan Hansen [Atlassian], 1 year ago
Error talking to database: Problem opening create tables script
via Atlassian JIRA by Dylan Hansen [Atlassian], 2 years ago
Error talking to database: Problem opening create tables script
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`sources_RC1`.`#sql-1b16_1142`, CONSTRAINT `FKE2F52A1434AAD25A` FOREIGN KEY (`cru_path`) REFERENCES `cru_stored_path` (`cru_path_id`))	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)	at com.mysql.jdbc.Util.getInstance(Util.java:381)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1038)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3563)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3495)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2687)	at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1647)	at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1566)	at com.cenqua.crucible.hibernate.DefaultDBControl.executeScript(DefaultDBControl.java:456)	at com.cenqua.crucible.hibernate.DefaultDBControl.executeScript(DefaultDBControl.java:415)	at com.cenqua.crucible.hibernate.DefaultDBControl.addConstraints(DefaultDBControl.java:312)	at com.atlassian.crucible.migration.item.DBImporter.importData(DBImporter.java:159)	at com.atlassian.crucible.migration.item.SQLBackup.restore(SQLBackup.java:192)	at com.atlassian.crucible.migration.item.SQLBackup$1.restore(SQLBackup.java:173)	at com.cenqua.fisheye.ctl.Restore.run(Restore.java:166)	at com.cenqua.fisheye.ctl.Restore.main(Restore.java:235)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:114)	at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:42)