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

[BUG] sql exception on ho startup #2089

Closed
Spyluke opened this issue Jun 23, 2024 · 5 comments
Closed

[BUG] sql exception on ho startup #2089

Spyluke opened this issue Jun 23, 2024 · 5 comments

Comments

@Spyluke
Copy link

Spyluke commented Jun 23, 2024

Describe the bug
A clear and concise description of what the bug is.
HO 8.0 start niet meer op Will not start
use windows 10
use java 8

this is the call
java.sql.SQLException: IO error: RowInputBinary 4050469
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.JDBCPreparedStatement.executeQuery(Unknown Source)
at core.db.ConnectionManager.executePreparedQuery(ConnectionManager.kt:73)
at core.db.ConnectionManager.executePreparedQuery(ConnectionManager.kt:63)
at core.db.AbstractTable.executePreparedSelect(AbstractTable.java:452)
at core.db.AbstractTable.load(AbstractTable.java:189)
at core.db.MatchLineupPlayerTable.getMatchLineupPlayers(MatchLineupPlayerTable.java:167)
at core.db.DBManager.getMatchLineupPlayers(DBManager.java:674)
at core.model.match.MatchLineupTeam.loadLineup(MatchLineupTeam.java:778)
at core.db.DBManager.loadMatchLineupTeam(DBManager.java:2294)
at core.db.DBManager.loadLineup(DBManager.java:2311)
at core.db.DBManager.loadNextMatchLineup(DBManager.java:2306)
at core.model.HOModel.(HOModel.java:121)
at core.model.HOVerwaltung.loadModel(HOVerwaltung.java:193)
at core.model.HOVerwaltung.loadLatestHoModel(HOVerwaltung.java:117)
at core.HO.main(HO.java:197)
at core.HOLauncher.main(HOLauncher.java:81)
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 com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25)
Caused by: org.hsqldb.HsqlException: IO error: RowInputBinary 4050469
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.rowio.RowInputBinary.readInt(Unknown Source)
at org.hsqldb.index.NodeAVLDisk.(Unknown Source)
at org.hsqldb.RowAVLDisk.(Unknown Source)
at org.hsqldb.persist.RowStoreAVLDisk.get(Unknown Source)
at org.hsqldb.persist.DataFileCache.getFromFile(Unknown Source)
at org.hsqldb.persist.DataFileCache.get(Unknown Source)
at org.hsqldb.persist.RowStoreAVLDisk.get(Unknown Source)
at org.hsqldb.index.NodeAVLDisk.findNode(Unknown Source)
at org.hsqldb.index.NodeAVLDisk.getRight(Unknown Source)
at org.hsqldb.index.IndexAVL.findNode(Unknown Source)
at org.hsqldb.index.IndexAVL.findFirstRow(Unknown Source)
at org.hsqldb.RangeVariable$RangeIteratorMain.getFirstRow(Unknown Source)
at org.hsqldb.RangeVariable$RangeIteratorMain.initialiseIterator(Unknown Source)
at org.hsqldb.RangeVariable$RangeIteratorMain.next(Unknown Source)
at org.hsqldb.QuerySpecification.buildResult(Unknown Source)
at org.hsqldb.QuerySpecification.getResult(Unknown Source)
at org.hsqldb.StatementQuery.getResult(Unknown Source)
at org.hsqldb.StatementDMQL.execute(Unknown Source)
at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
... 24 more
Caused by: java.io.EOFException
at org.hsqldb.lib.HsqlByteArrayInputStream.readInt(Unknown Source)
... 44 more

How to solve the problem ?????

Copy link

Hey, thanks for opening your first issue! 🙂
Be sure to check out the wiki and the HT forum for support.

@wsbrenk
Copy link
Collaborator

wsbrenk commented Jun 24, 2024

java 8 is not a good idea, i think. Please try again with java 17. the easiest way would be using the installer including the correct java version: HOSetup-8.0.631.2-DEV-JRE.exe

@wsbrenk wsbrenk changed the title [BUG] [BUG] sql exception on ho startup Jun 24, 2024
@Spyluke
Copy link
Author

Spyluke commented Jun 24, 2024 via email

@wsbrenk
Copy link
Collaborator

wsbrenk commented Jun 29, 2024

have you tried to restore the database to the state before the first update (backup should be available in %APPDATA%/HO/db zip files).
For me it looks like a corrupted database file (maybe caused by your first update with an wrong java version or other reasons i. e. killing the update process!?)

@Spyluke
Copy link
Author

Spyluke commented Jun 29, 2024 via email

@wsbrenk wsbrenk closed this as completed Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants