Fehler beim Löschen des Mitgliedes
Verfasst: Dienstag 20. September 2011, 12:03
Hallo,
bei mir ist beim Versuch, ein Mitglied zu löschen, folgender Fehler aufgetreten (das Mitglied wurde nicht gelöscht):
Fehler beim Löschen des Mitgliedes
java.rmi.RemoteException: delete failed, rollback successful; nested exception is:
org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"
Referential integrity constraint violation: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"; SQL statement:
delete from MITGLIED where ID = 9 [23003-145]
at de.willuhn.datasource.db.AbstractDBObject.delete(AbstractDBObject.java:381)
at de.jost_net.JVerein.gui.action.MitgliedDeleteAction.handleAction(MitgliedDeleteAction.java:70)
at de.willuhn.jameica.gui.parts.Button$1$1.run(Button.java:152)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at de.willuhn.jameica.gui.GUI$5.run(GUI.java:764)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
at de.willuhn.jameica.gui.GUI.startSync(GUI.java:760)
at de.willuhn.jameica.gui.parts.Button$1.widgetSelected(Button.java:146)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at de.willuhn.jameica.gui.GUI.loop(GUI.java:781)
at de.willuhn.jameica.gui.GUI.init(GUI.java:290)
at de.willuhn.jameica.system.Application.init(Application.java:143)
at de.willuhn.jameica.system.Application.newInstance(Application.java:85)
at de.willuhn.jameica.Main.main(Main.java:78)
Caused by: org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"
Referential integrity constraint violation: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"; SQL statement:
delete from MITGLIED where ID = 9 [23003-145]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:382)
at org.h2.constraint.ConstraintReferential.checkRowRefTable(ConstraintReferential.java:399)
at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:275)
at org.h2.table.Table.fireConstraints(Table.java:803)
at org.h2.table.Table.fireAfterRow(Table.java:820)
at org.h2.command.dml.Delete.update(Delete.java:80)
at org.h2.command.CommandContainer.update(CommandContainer.java:69)
at org.h2.command.Command.executeUpdate(Command.java:201)
at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:126)
at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:111)
at de.willuhn.datasource.db.AbstractDBObject.delete(AbstractDBObject.java:363)
... 18 more
Grüße, Peter
bei mir ist beim Versuch, ein Mitglied zu löschen, folgender Fehler aufgetreten (das Mitglied wurde nicht gelöscht):
Fehler beim Löschen des Mitgliedes
java.rmi.RemoteException: delete failed, rollback successful; nested exception is:
org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"
Referential integrity constraint violation: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"; SQL statement:
delete from MITGLIED where ID = 9 [23003-145]
at de.willuhn.datasource.db.AbstractDBObject.delete(AbstractDBObject.java:381)
at de.jost_net.JVerein.gui.action.MitgliedDeleteAction.handleAction(MitgliedDeleteAction.java:70)
at de.willuhn.jameica.gui.parts.Button$1$1.run(Button.java:152)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at de.willuhn.jameica.gui.GUI$5.run(GUI.java:764)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
at de.willuhn.jameica.gui.GUI.startSync(GUI.java:760)
at de.willuhn.jameica.gui.parts.Button$1.widgetSelected(Button.java:146)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at de.willuhn.jameica.gui.GUI.loop(GUI.java:781)
at de.willuhn.jameica.gui.GUI.init(GUI.java:290)
at de.willuhn.jameica.system.Application.init(Application.java:143)
at de.willuhn.jameica.system.Application.newInstance(Application.java:85)
at de.willuhn.jameica.Main.main(Main.java:78)
Caused by: org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"
Referential integrity constraint violation: "FKMAILEMPFAENGER2: PUBLIC.MAILEMPFAENGER FOREIGN KEY(MITGLIED) REFERENCES PUBLIC.MITGLIED(ID)"; SQL statement:
delete from MITGLIED where ID = 9 [23003-145]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:382)
at org.h2.constraint.ConstraintReferential.checkRowRefTable(ConstraintReferential.java:399)
at org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:275)
at org.h2.table.Table.fireConstraints(Table.java:803)
at org.h2.table.Table.fireAfterRow(Table.java:820)
at org.h2.command.dml.Delete.update(Delete.java:80)
at org.h2.command.CommandContainer.update(CommandContainer.java:69)
at org.h2.command.Command.executeUpdate(Command.java:201)
at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:126)
at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:111)
at de.willuhn.datasource.db.AbstractDBObject.delete(AbstractDBObject.java:363)
... 18 more
Grüße, Peter