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()

Oracle Community | dannycron | 9 years ago
  1. 0

    Glassfish creates a table that it cannot use.

    Oracle Community | 9 years ago | dannycron
    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()
  2. 0

    uses a non-entity as target entity in relationship attribute

    Coderanch | 6 years ago | sonia pandit
    java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("XXXX"."CUSTOMER"."PHONES_ID") Error Code: 1400 Call: INSERT INTO CUSTOMER (CUSTOMER_ID, CUSTOMER_NAME, PHONES_ID) VALUES (?, ?, ?) bind => [2, Chrysler, null] Query: InsertObjectQuery(testonetoone.Customer@2c9103)
  3. 0

    strange insert statement during em.merge()

    Oracle Community | 7 years ago | 748631
    java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("MCS"."COMM_ACTIONTYP"."SER") Error Code: 1400 Call: INSERT INTO COMM_ACTIONTYP (SER, DESCRIP) VALUES (?, ?) bind => [null, null] Query: InsertObjectQuery(mwa.mcs.business.entity.CommActiontyp@21d324)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    onetoone mappings in jpa 3.0

    Oracle Community | 6 years ago | veenapandit
    java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("XXXX"."CUSTOMER"."PHONES_ID") Error Code: 1400 Call: INSERT INTO CUSTOMER (CUSTOMER_ID, CUSTOMER_NAME, PHONES_ID) VALUES (?, ?, ?) bind => [2, Chrysler, null] Query: InsertObjectQuery(testonetoone.Customer@2c9103)
  6. 0

    JPA2.0 CascadeType.ALL doesn't cascade persist

    Coderanch | 5 years ago | Jelo Nehuptra
    java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("LHS"."EXAMINEE"."ID_PERSON") Error Code: 1400 Call: INSERT INTO LHS.EXAMINEE (ID_PERSON, CLASSIFICATION, EXAM_DATE, INCOMING, RPM, SATNR, SCAT, SEE_NO, SLU_GIT, SLU_NVIT, SLU_VIT) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) bind => [11 parameters bound] Query: InsertObjectQuery(ph.edu.slu.lhs.sis.entity.Examinee[ idPerson=null ])

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. oracle.toplink.essentials
      DatabaseException.sqlException
      1. oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:311)
      1 frame