Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL: Migration sollbuchungposition JVerein-DB-Update: 457 #654

Closed
dippeal opened this issue Feb 10, 2025 · 1 comment
Closed

MySQL: Migration sollbuchungposition JVerein-DB-Update: 457 #654

dippeal opened this issue Feb 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@dippeal
Copy link
Member

dippeal commented Feb 10, 2025

Beim Test mit der Echtdaten MySQL DB kommt folgender Fehler beim Update von OJV 2.8.23 zu 3.0.0. Steht in Verbindung mit #547. Beim zweiten Start läuft das DB Update mit 458 weiter. Die sollbuchungposition Tabelle ist leer.

[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.sql.ScriptExecutor.execute] commit transaction
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.jameica.gui.SplashScreen$3.run] JVerein-DB-Update: 457 ...
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate.setNewVersion] JVerein-DB-Update: 457
[Mon Feb 10 11:37:45 CET 2025][DEBUG][main][de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate.execute] INSERT INTO sollbuchungposition (sollbuchung, betrag, steuersatz, buchungsart, buchungsklasse, datum, zweck) SELECT id,betrag,steuersatz,buchungsart,buchungsklasse,datum,zweck1 FROM mitgliedskonto;
[Mon Feb 10 11:37:45 CET 2025][DEBUG][main][de.willuhn.sql.ScriptExecutor.execute] reading sql script
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.sql.ScriptExecutor.execute] starting transaction
[Mon Feb 10 11:37:45 CET 2025][DEBUG][main][de.willuhn.sql.ScriptExecutor.execute] executing: INSERT INTO sollbuchungposition (sollbuchung, betrag, steuersatz, buchungsart, buchungsklasse, datum, zweck) SELECT id,betrag,steuersatz,buchungsart,buchungsklasse,datum,zweck1 FROM mitgliedskonto
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.sql.ScriptExecutor.execute] rollback transaction
[Mon Feb 10 11:37:45 CET 2025][ERROR][main][de.willuhn.sql.ScriptExecutor.execute] error while executing sql script. Current statement: INSERT INTO sollbuchungposition (sollbuchung, betrag, steuersatz, buchungsart, buchungsklasse, datum, zweck) SELECT id,betrag,steuersatz,buchungsart,buchungsklasse,datum,zweck1 FROM mitgliedskonto
java.sql.SQLException: Data truncated for column 'zweck' at row 473
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2524)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2675)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
at com.mysql.jdbc.StatementImpl.executeUpdateInternal(StatementImpl.java:1536)
at com.mysql.jdbc.StatementImpl.executeLargeUpdate(StatementImpl.java:2585)
at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1464)
at de.willuhn.sql.ScriptExecutor.execute(ScriptExecutor.java:166)
at de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate.execute(AbstractDDLUpdate.java:89)
at de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate.execute(AbstractDDLUpdate.java:76)
at de.jost_net.JVerein.server.DDLTool.Updates.Update0457.run(Update0457.java:98)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at de.jost_net.JVerein.server.JVereinUpdateProvider.callMethod2(JVereinUpdateProvider.java:266)
at de.jost_net.JVerein.server.JVereinUpdateProvider.(JVereinUpdateProvider.java:93)
at de.jost_net.JVerein.server.DBSupportMySqlImpl.checkConsistency(DBSupportMySqlImpl.java:89)
at de.jost_net.JVerein.server.JVereinDBServiceImpl.checkConsistency(JVereinDBServiceImpl.java:114)
at de.jost_net.JVerein.JVereinPlugin$1.call(JVereinPlugin.java:114)
at de.jost_net.JVerein.JVereinPlugin.call(JVereinPlugin.java:219)
at de.jost_net.JVerein.JVereinPlugin.init(JVereinPlugin.java:107)
at de.willuhn.jameica.plugin.PluginLoader.initPlugin(PluginLoader.java:394)
at de.willuhn.jameica.plugin.PluginLoader.init(PluginLoader.java:239)
at de.willuhn.jameica.services.PluginService.init(PluginService.java:39)
at de.willuhn.boot.BootLoader.resolve(BootLoader.java:139)
at de.willuhn.boot.BootLoader.resolve(BootLoader.java:119)
at de.willuhn.boot.BootLoader.getBootable(BootLoader.java:70)
at de.willuhn.jameica.system.Application.init(Application.java:103)
at de.willuhn.jameica.system.Application.newInstance(Application.java:87)
at de.willuhn.jameica.Main.main(Main.java:78)

[Mon Feb 10 11:37:45 CET 2025][ERROR][main][de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate.execute] unable to execute update
java.sql.SQLException: exception while executing sql script: Data truncated for column 'zweck' at row 473. Current statement: INSERT INTO sollbuchungposition (sollbuchung, betrag, steuersatz, buchungsart, buchungsklasse, datum, zweck) SELECT id,betrag,steuersatz,buchungsart,buchungsklasse,datum,zweck1 FROM mitgliedskonto
at de.willuhn.sql.ScriptExecutor.execute(ScriptExecutor.java:195)
at de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate.execute(AbstractDDLUpdate.java:89)
at de.jost_net.JVerein.server.DDLTool.AbstractDDLUpdate.execute(AbstractDDLUpdate.java:76)
at de.jost_net.JVerein.server.DDLTool.Updates.Update0457.run(Update0457.java:98)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at de.jost_net.JVerein.server.JVereinUpdateProvider.callMethod2(JVereinUpdateProvider.java:266)
at de.jost_net.JVerein.server.JVereinUpdateProvider.(JVereinUpdateProvider.java:93)
at de.jost_net.JVerein.server.DBSupportMySqlImpl.checkConsistency(DBSupportMySqlImpl.java:89)
at de.jost_net.JVerein.server.JVereinDBServiceImpl.checkConsistency(JVereinDBServiceImpl.java:114)
at de.jost_net.JVerein.JVereinPlugin$1.call(JVereinPlugin.java:114)
at de.jost_net.JVerein.JVereinPlugin.call(JVereinPlugin.java:219)
at de.jost_net.JVerein.JVereinPlugin.init(JVereinPlugin.java:107)
at de.willuhn.jameica.plugin.PluginLoader.initPlugin(PluginLoader.java:394)
at de.willuhn.jameica.plugin.PluginLoader.init(PluginLoader.java:239)
at de.willuhn.jameica.services.PluginService.init(PluginService.java:39)
at de.willuhn.boot.BootLoader.resolve(BootLoader.java:139)
at de.willuhn.boot.BootLoader.resolve(BootLoader.java:119)
at de.willuhn.boot.BootLoader.getBootable(BootLoader.java:70)
at de.willuhn.jameica.system.Application.init(Application.java:103)
at de.willuhn.jameica.system.Application.newInstance(Application.java:87)
at de.willuhn.jameica.Main.main(Main.java:78)
Caused by: java.sql.SQLException: Data truncated for column 'zweck' at row 473
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2524)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2675)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
at com.mysql.jdbc.StatementImpl.executeUpdateInternal(StatementImpl.java:1536)
at com.mysql.jdbc.StatementImpl.executeLargeUpdate(StatementImpl.java:2585)
at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1464)
at de.willuhn.sql.ScriptExecutor.execute(ScriptExecutor.java:166)
... 23 more

[Mon Feb 10 11:37:45 CET 2025][ERROR][main][de.jost_net.JVerein.server.DBSupportMySqlImpl.checkConsistency] Datenbankupdate kann nicht ausgeführt werden.
de.willuhn.util.ApplicationException
at de.jost_net.JVerein.server.JVereinUpdateProvider.(JVereinUpdateProvider.java:100)
at de.jost_net.JVerein.server.DBSupportMySqlImpl.checkConsistency(DBSupportMySqlImpl.java:89)
at de.jost_net.JVerein.server.JVereinDBServiceImpl.checkConsistency(JVereinDBServiceImpl.java:114)
at de.jost_net.JVerein.JVereinPlugin$1.call(JVereinPlugin.java:114)
at de.jost_net.JVerein.JVereinPlugin.call(JVereinPlugin.java:219)
at de.jost_net.JVerein.JVereinPlugin.init(JVereinPlugin.java:107)
at de.willuhn.jameica.plugin.PluginLoader.initPlugin(PluginLoader.java:394)
at de.willuhn.jameica.plugin.PluginLoader.init(PluginLoader.java:239)
at de.willuhn.jameica.services.PluginService.init(PluginService.java:39)
at de.willuhn.boot.BootLoader.resolve(BootLoader.java:139)
at de.willuhn.boot.BootLoader.resolve(BootLoader.java:119)
at de.willuhn.boot.BootLoader.getBootable(BootLoader.java:70)
at de.willuhn.jameica.system.Application.init(Application.java:103)
at de.willuhn.jameica.system.Application.newInstance(Application.java:87)
at de.willuhn.jameica.Main.main(Main.java:78)

[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.datasource.db.DBServiceImpl.stop] stopping db service
[Mon Feb 10 11:37:45 CET 2025][DEBUG][main][de.willuhn.datasource.db.DBServiceImpl.stop] db service: object cache matches: 50 %
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.datasource.db.DBServiceImpl.closeConnection] commit connection
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.datasource.db.DBServiceImpl.closeConnection] closing connection
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.datasource.db.DBServiceImpl.closeConnection] connection closed
[Mon Feb 10 11:37:45 CET 2025][INFO][main][de.willuhn.datasource.db.DBServiceImpl.stop] db service stopped [1 connection(s) closed]
[Mon Feb 10 11:37:45 CET 2025][ERROR][main][de.willuhn.jameica.plugin.PluginLoader.init] unable to init plugin jverein: de.willuhn.util.ApplicationException

@dippeal dippeal added the bug Something isn't working label Feb 10, 2025
@lenilsas
Copy link

habe ich in #655 behoben

@dippeal dippeal closed this as completed Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants