com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`confluence`.<result 2 when explaining filename '#sql-c6e3_183421'>, CONSTRAINT `fk_user_dir_id` FOREIGN KEY (`directory_id`) REFERENCES `cwd_directory` (`id`))

Atlassian JIRA | Eric Hamilton | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    cant delete town

    GitHub | 2 years ago | dezil
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cann n`, CONSTRAINT `SelectedTown_ibfk_2` FOREIGN KEY (`townName`) REFERENCES `Towns`
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    JTrac / Discussion / Help:Importa BD HSQLDB to MYSQL

    sourceforge.net | 2 years ago
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Dupl icate entry 'admin' for key 2
  4. 0

    Hibernate [ AbstractCollectionPersister:- Deleting collection ] in OnetoMany relationship

    Stack Overflow | 2 years ago
    com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'loan_id' cannot be 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. com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException

      Cannot add or update a child row: a foreign key constraint fails (`confluence`.<result 2 when explaining filename '#sql-c6e3_183421'>, CONSTRAINT `fk_user_dir_id` FOREIGN KEY (`directory_id`) REFERENCES `cwd_directory` (`id`))

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      NativeConstructorAccessorImpl.newInstance0
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      1 frame