Project

General

Profile

Actions

bug #7349

closed

RegistrationPopupEditor fails saving new References with new Team with 2 new memers

Added by Andreas Kohlbecker almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
New
Category:
cdm-vaadin
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
critical
Found in Version:
Tags:

Description

habe den Eindruck, dass es wieder an dem neuen Team von 2 neuen Autoren liegt.

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'ec10dd7e-1dc1-4ac7-9e0b-a214838f035f' for key 'UK_n0wqwh4csr4mejfjo8k368n6r'
               at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
               at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
               at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
               at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
               at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
               at com.mysql.jdbc.Util.getInstance(Util.java:387)
               at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:932)
               at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3878)
               at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3814)
               at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2478)
               at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2625)
               at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2551)
               at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
               at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
               at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
               at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5094)
               at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994)
               at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:384)
               at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:204)
               ... 118 more

Files

picture810-1.png (70.5 KB) picture810-1.png Andreas Kohlbecker, 04/13/2018 06:25 PM
Actions #1

Updated by Andreas Kohlbecker almost 5 years ago

  • Tags set to phycobank
  • Project changed from PhycoBank to EDIT
  • Category set to cdm-vaadin
  • Status changed from New to In Progress
  • Target version set to Release 5.0
  • Severity set to critical
Actions #2

Updated by Andreas Kohlbecker almost 5 years ago

  • % Done changed from 0 to 100

This was a quite strange bug.

As long as the new person objects where set as value to the lazy select the contact and other fields have been mixed up between the first person crated and of the second one. This was causing both person objects sharing the same contact object.

Actions #3

Updated by Andreas Kohlbecker almost 5 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF