ERROR: Main method error - Index 0 out of bounds for length 0

erguy 6 hours ago

Has anyone seen the below error? I thought it may have been windows updates at the time since it stopped at a certain time and point. I removed the updates around then but still have the issue. Thanks for the help!

2026-01-14 09:55:08  INFO: HikariPool-1 - Starting...
2026-01-14 09:55:28  INFO: HikariPool-1 - Start completed.
2026-01-14 09:55:29  INFO: Clearing database change log checksums
2026-01-14 09:55:29 ERROR: Main method error - Index 0 out of bounds for length 0 - ArrayIndexOutOfBoundsException (...)
2026-01-14 09:55:29  WARN: JNA: Callback org.traccar.WindowsService$ServiceMain@19b843ba threw the following exception - Index 0 out of bounds for length 0 - ArrayIndexOutOfBoundsException (...)
Anton Tananaev 6 hours ago

Enable full stack traces to get full error.

erguy 5 hours ago

thanks, I enabled that and got the full error message.

2026-01-14 11:04:40 WARN: JNA: Callback org.traccar.WindowsService$ServiceMain@19b843ba threw the following exception -
java.lang.RuntimeException: liquibase.exception.LockException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLNonTransientException: General error: "General error: ""java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0"" [50000-200]"; SQL statement:
ROLLBACK [50000-200]
at org.traccar.Main.run(Main.java:147)
at org.traccar.Main$1.run(Main.java:90)
at org.traccar.WindowsService$ServiceMain.callback(WindowsService.java:184)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:579)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:610)
Caused by: liquibase.exception.LockException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLNonTransientException: General error: "General error: ""java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0"" [50000-200]"; SQL statement:
ROLLBACK [50000-200]
at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:294)
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:212)
at liquibase.Liquibase$20.run(Liquibase.java:2127)
at liquibase.Scope.lambda$child$0(Scope.java:160)
at liquibase.Scope.child(Scope.java:169)
at liquibase.Scope.child(Scope.java:159)
at liquibase.Scope.child(Scope.java:138)
at liquibase.Liquibase.runInScope(Liquibase.java:2369)
at liquibase.Liquibase.clearCheckSums(Liquibase.java:2122)
at org.traccar.database.DataManager.initDatabaseSchema(DataManager.java:291)
at org.traccar.database.DataManager.<init>(DataManager.java:86)
at org.traccar.Context.init(Context.java:290)
at org.traccar.Main.run(Main.java:120)
... 8 more
Caused by: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLNonTransientException: General error: "General error: ""java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0"" [50000-200]"; SQL statement:
ROLLBACK [50000-200]
at liquibase.database.AbstractJdbcDatabase.rollback(AbstractJdbcDatabase.java:1165)
at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:250)
... 20 more
Caused by: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLNonTransientException: General error: "General error: ""java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0"" [50000-200]"; SQL statement:
ROLLBACK [50000-200]
at liquibase.database.jvm.JdbcConnection.rollback(JdbcConnection.java:379)
at liquibase.database.AbstractJdbcDatabase.rollback(AbstractJdbcDatabase.java:1163)
... 21 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "General error: ""java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0"" [50000-200]"; SQL statement:
ROLLBACK [50000-200]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
at org.h2.message.DbException.get(DbException.java:194)
at org.h2.engine.Database.throwLastBackgroundException(Database.java:2221)
at org.h2.engine.Database.commit(Database.java:2202)
at org.h2.engine.Session.rollback(Session.java:846)
at org.h2.command.dml.TransactionCommand.update(TransactionCommand.java:49)
at org.h2.command.CommandContainer.update(CommandContainer.java:198)
at org.h2.command.Command.executeUpdate(Command.java:251)
at org.h2.jdbc.JdbcConnection.rollbackInternal(JdbcConnection.java:1530)
at org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:561)
at liquibase.database.jvm.JdbcConnection.rollback(JdbcConnection.java:376)
... 22 more
Caused by: org.h2.message.DbException: General error: "java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0" [50000-200]
at org.h2.message.DbException.get(DbException.java:194)
at org.h2.message.DbException.convert(DbException.java:347)
at org.h2.mvstore.db.MVTableEngine$1.uncaughtException(MVTableEngine.java:93)
at org.h2.mvstore.MVStore.handleException(MVStore.java:2877)
at org.h2.mvstore.MVStore.writeInBackground(MVStore.java:2813)
at org.h2.mvstore.MVStore$BackgroundWriterThread.run(MVStore.java:3290)
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0" [50000-200]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:505)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
... 6 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at org.h2.mvstore.Page.getKey(Page.java:270)
at org.h2.mvstore.MVMap.rewritePage(MVMap.java:773)
at org.h2.mvstore.MVMap.rewrite(MVMap.java:734)
at org.h2.mvstore.MVMap.rewrite(MVMap.java:710)
at org.h2.mvstore.MVStore.compactRewrite(MVStore.java:2137)
at org.h2.mvstore.MVStore.rewriteChunks(MVStore.java:2026)
at org.h2.mvstore.MVStore.doMaintenance(MVStore.java:2844)
at org.h2.mvstore.MVStore.writeInBackground(MVStore.java:2788)
... 1 more