java.lang.IllegalArgumentException: You are attempting to link to a primary key column in table "Kirja" in a foreign key that is already linked to primary key c olumns in table "Kirjailija".

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 3004, 1 year ago
You are attempting to link to a primary key column in table "Kirja" in a foreign key that is already linked to primary key c olumns in table "Kirjailija".
java.lang.IllegalArgumentException: You are attempting to link to a primary key column in table "Kirja" in a foreign key that is already linked to primary key c olumns in table "Kirjailija".
at com.solarmetric.rd.kodo.impl.jdbc.meta.Mappings.createClassMapping(Mappings.java:160)
at com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:279)
at com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:147)
at com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:158)
at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.getMapping(ImportTool.java:126)
at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.importMappings(ImportTool.java:57)
at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.run(ImportTool.java:408)
at com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.main(ImportTool.java:385)

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.

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