java.sql.SQLIntegrityConstraintViolationException: Column 'BAR_ID' cannot accept a NULL value. Error Code: -1 Call: INSERT INTO C_A(foo_ID, C_ID) VALUES (?, ?) bind => [7, 4] Query: DataModifyQuery()

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by dannycron, 1 year ago
Column 'BAR_ID' cannot accept a NULL value. Error Code: -1 Call: INSERT INTO C_A(foo_ID, C_ID) VALUES (?, ?) bind => [7, 4] Query: DataModifyQuery()
via manning.com by Unknown author, 1 year ago
INSERT on table 'USERS' caused a violation of foreign key constraint 'FK _USERS_USER_ID' for key (idiot2). The statement has been rolled back. Error Code: -1
via com.br by Unknown author, 1 year ago
A instrução foi interrompida, porque iria gerar um valor duplicado da chave em uma restrição de chave primária ou de unicidade identificada por 'SQL080319081538370' definida em 'BANCOS'. Error Code: -1 Call: INSERT INTO BANCOS (CODBANCO, NOMEBANCO, ABRBANCO) VALUES (?, ?, ?) bind => [1, , ] Query: InsertObjectQuery(lib.db.Bancos[codbanco=1])
via Coderanch by nav katoch, 11 months ago
INSERT on table 'USERS' caused a violation of foreign key constraint 'FK _USERS_USER_ID' for key (idiot2). The statement has been rolled back. Error Code: -1
via Oracle Community by IPapas, 1 year ago
ORA-00001: unique constraint (VC.SYS_C005984) violated Error Code: 1 Call: INSERT INTO actor (actor_name) VALUES (?) bind => [Presley] Query: InsertObjectQuery(vc.domain.Actor@1164721)
via oracle.com by Unknown author, 1 year ago
Column 'PARENTCONTEXTNAME' cannot accept a NULL value. Error Code: -1 Call: INSERT INTO CardContext_TABLE (NAME, LOCKED, MAXCREDITSPERUSER, parentContextName, DTYPE) VALUES (?, ?, ?, ?, ?) bind => [sdfsdf, false, 0, null, CreditAccount] Query: InsertObjectQuery(snailcard.entities.service.CreditAccount[advertiserName=sdfsdf])
java.sql.SQLIntegrityConstraintViolationException: Column 'BAR_ID' cannot accept a NULL value. Error Code: -1 Call: INSERT INTO C_A(foo_ID, C_ID) VALUES (?, ?) bind => [7, 4] Query: DataModifyQuery()
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:311)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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