Re: Buchungsübernahme klappt nicht
Verfasst: Dienstag 15. Januar 2013, 20:50
Hallo Micha,
es ist echt zum Haareraufen.
Daran liegt es auch nicht. Es ging weder in einer älteren Version, noch in der akutellen 2.4.0. Der Link ist auch richtig.
Ich wollte jetzt nochmal das Konto in JVerein löschen und neu anlegen, aber das geht auch nicht. Es kommt folgende Fehlermeldung:
ehler beim Löschen des Kontos.
java.rmi.RemoteException: delete failed, rollback successful; nested exception is:
org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"
Referential integrity constraint violation: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"; SQL statement:
delete from KONTO where ID = 1 [23003-145]
at de.willuhn.datasource.db.AbstractDBObject.delete(AbstractDBObject.java:384)
at de.jost_net.JVerein.server.KontoImpl.delete(KontoImpl.java:202)
at de.jost_net.JVerein.gui.action.KontoDeleteAction.handleAction(KontoDeleteAction.java:71)
at de.willuhn.jameica.gui.parts.ContextMenu$1.handleEvent(ContextMenu.java:200)
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:803)
at de.willuhn.jameica.gui.GUI.init(GUI.java:294)
at de.willuhn.jameica.system.Application.init(Application.java:144)
at de.willuhn.jameica.system.Application.newInstance(Application.java:86)
at de.willuhn.jameica.Main.main(Main.java:78)
Caused by: org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"
Referential integrity constraint violation: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"; SQL statement:
delete from KONTO where ID = 1 [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:366)
... 12 more
es ist echt zum Haareraufen.

Daran liegt es auch nicht. Es ging weder in einer älteren Version, noch in der akutellen 2.4.0. Der Link ist auch richtig.
Ich wollte jetzt nochmal das Konto in JVerein löschen und neu anlegen, aber das geht auch nicht. Es kommt folgende Fehlermeldung:
ehler beim Löschen des Kontos.
java.rmi.RemoteException: delete failed, rollback successful; nested exception is:
org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"
Referential integrity constraint violation: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"; SQL statement:
delete from KONTO where ID = 1 [23003-145]
at de.willuhn.datasource.db.AbstractDBObject.delete(AbstractDBObject.java:384)
at de.jost_net.JVerein.server.KontoImpl.delete(KontoImpl.java:202)
at de.jost_net.JVerein.gui.action.KontoDeleteAction.handleAction(KontoDeleteAction.java:71)
at de.willuhn.jameica.gui.parts.ContextMenu$1.handleEvent(ContextMenu.java:200)
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:803)
at de.willuhn.jameica.gui.GUI.init(GUI.java:294)
at de.willuhn.jameica.system.Application.init(Application.java:144)
at de.willuhn.jameica.system.Application.newInstance(Application.java:86)
at de.willuhn.jameica.Main.main(Main.java:78)
Caused by: org.h2.jdbc.JdbcSQLException: Referentielle Integrität verletzt: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"
Referential integrity constraint violation: "FKBUCHUNG2: PUBLIC.BUCHUNG FOREIGN KEY(KONTO) REFERENCES PUBLIC.KONTO(ID)"; SQL statement:
delete from KONTO where ID = 1 [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:366)
... 12 more