org.h2.jdbc.JdbcSQLException: General error: "java.lang.IllegalStateException: Reading from cache:nio:/home/ubuntu/csdata/data.mv.db failed; file length -1 read length 512 at 13514067138 [1.4.192/1]"; SQL statement: select x2.x3, x2.x4, x2.x5, x2.x6, x2.x7, x2.x8, x2.x9, x2.x10 from (select x11.x12 as x9, x11.x13 as x6, x11.x14 as x5, x11.x15 as x4, x11.x16 as x8, x11.x17 as x10, x11.x18 as x3, x11.x19 as x7 from (select x20."ACTIVITY_DATE" as x12, x20."ACTIVITY_TYPE" as x13, x20."ACTIVITY_USER_NAME" as x14, x20."REPOSITORY_NAME" as x15, x20."ADDITIONAL_INFO" as x16, x20."ACTIVITY_ID" as x17, x20."USER_NAME" as x18, x20."MESSAGE" as x19 from "ACTIVITY" x20) x11 inner join (select x21."UPDATED_DATE" as x22, x21."ALLOW_WIKI_EDITING" as x23, x21."EXTERNAL_ISSUES_URL" as x24, x21."PARENT_REPOSITORY_NAME" as x25, x21."EXTERNAL_WIKI_URL" as x26, x21."DEFAULT_BRANCH" as x27, x21."DESCRIPTION" as x28, x21."ORIGIN_REPOSITORY_NAME" as x29, x21."ORIGIN_USER_NAME" as x30, x21."PARENT_USER_NAME" as x31, x21."PRIVATE" as x32, x21."REPOSITORY_NAME" as x33, x21."USER_NAME" as x34, x21."ENABLE_WIKI" as x35, x21."ENABLE_ISSUES" as x36, x21."REGISTERED_DATE" as x37, x21."LAST_ACTIVITY_DATE" as x38 from "REPOSITORY" x21) x39 on (x11.x18 = x39.x34) and (x11.x15 = x39.x33) where (x39.x32 = ?) or (x39.x34 in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) order by x11.x17 desc limit 30) x2 [50000-192]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you're not creating unused SQL entities, as it might cause this exception.

Solutions on the web

via GitHub by devagorilla
, 10 months ago
General error: "java.lang.IllegalStateException: Reading from cache:nio:/home/ubuntu/csdata/data.mv.db failed; file length -1 read length 512 at 13514067138 [1.4.192/1]"; SQL statement: select x2.x3, x2.x4, x2.x5, x2.x6, x2.x7, x2.x8, x2.x9, x2.x10
via Stack Overflow by user1274500
, 2 years ago
General error: "java.lang.RuntimeException: Unexpected code path"; SQL statement: SELECT * FROM Flights A INNER JOIN (SELECT AircraftId, MIN(DepartureDate) AS DepDate FROM Flights GROUP BY AircraftId) B ON A.AircraftId = B.AircraftId AND A.DepartureDate = B.DepDate ORDER BY A.AircraftId ASC [50000-173]
via bukkit.org by Unknown author, 2 years ago
General error: "java.lang.ArrayIndexOutOfBoundsException: 0"; SQL statement: SELECT bbdata.id, date, player, action, x, y, z, type, data, rbacked, bbworlds.name AS `world` FROM bbdata AS bbdata , bbworlds AS bbworlds , bbusers AS usr WHERE
via Google Groups by Kivi Shapiro, 5 months ago
General error: "java.lang.ArrayIndexOutOfBoundsException: -1"; SQL statement: SELECT MAX(ID) FROM INFORMATION_SCHEMA.LOBS [50000-169]
via GitHub by mpoindexter
, 2 years ago
General error: "java.lang.NullPointerException"; SQL statement: SELECT * FROM test WHERE entity_id = ? FOR UPDATE [50000-189]
via GitHub by ravitez
, 2 years ago
General error: "java.lang.IllegalStateException: Position 0 [1.4.177/6]"; SQL statement: select cast( log as char) log from datachangelog [50000-177]
org.h2.jdbc.JdbcSQLException: General error: "java.lang.IllegalStateException: Reading from cache:nio:/home/ubuntu/csdata/data.mv.db failed; file length -1 read length 512 at 13514067138 [1.4.192/1]"; SQL statement: select x2.x3, x2.x4, x2.x5, x2.x6, x2.x7, x2.x8, x2.x9, x2.x10 from (select x11.x12 as x9, x11.x13 as x6, x11.x14 as x5, x11.x15 as x4, x11.x16 as x8, x11.x17 as x10, x11.x18 as x3, x11.x19 as x7 from (select x20."ACTIVITY_DATE" as x12, x20."ACTIVITY_TYPE" as x13, x20."ACTIVITY_USER_NAME" as x14, x20."REPOSITORY_NAME" as x15, x20."ADDITIONAL_INFO" as x16, x20."ACTIVITY_ID" as x17, x20."USER_NAME" as x18, x20."MESSAGE" as x19 from "ACTIVITY" x20) x11 inner join (select x21."UPDATED_DATE" as x22, x21."ALLOW_WIKI_EDITING" as x23, x21."EXTERNAL_ISSUES_URL" as x24, x21."PARENT_REPOSITORY_NAME" as x25, x21."EXTERNAL_WIKI_URL" as x26, x21."DEFAULT_BRANCH" as x27, x21."DESCRIPTION" as x28, x21."ORIGIN_REPOSITORY_NAME" as x29, x21."ORIGIN_USER_NAME" as x30, x21."PARENT_USER_NAME" as x31, x21."PRIVATE" as x32, x21."REPOSITORY_NAME" as x33, x21."USER_NAME" as x34, x21."ENABLE_WIKI" as x35, x21."ENABLE_ISSUES" as x36, x21."REGISTERED_DATE" as x37, x21."LAST_ACTIVITY_DATE" as x38 from "REPOSITORY" x21) x39 on (x11.x18 = x39.x34) and (x11.x15 = x39.x33) where (x39.x32 = ?) or (x39.x34 in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) order by x11.x17 desc limit 30) x2 [50000-192]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:168)
at org.h2.message.DbException.convert(DbException.java:295)
at org.h2.command.Command.executeQuery(Command.java:213)
at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:195)

Users with the same issue

22 times, 1 day ago
2 times, 1 week ago
Once, 1 month ago
Once, 1 month ago
4 times, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.