org.h2.jdbc.JdbcSQLException: IO Exception: "java.io.FileNotFoundException: /var/lib/test.sql (Permission denied)"; SQL statement: SCRIPT TO '/var/lib/test.sql' [90028-188]

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

,

try new webdriver if you have this error with firefox while uploading files

Solutions on the web

via Stack Overflow by Siva
, 1 year ago
IO Exception: "java.io.FileNotFoundException: /var/lib/test.sql (Permission denied)"; SQL statement: SCRIPT TO '/var/lib/test.sql' [90028-188]
via zeroturnaround.com by Unknown author, 2 years ago
IO Exception: “java.io.IOException: Stream Closed”; “/opt/jrebel/license-server/data/db/db.h2.db”; SQL statement: ROLLBACK [90031-176]
via zeroturnaround.com by Unknown author, 1 year ago
IO Exception: “java.io.IOException: Stream Closed”; “/opt/jrebel/license-server/data/db/db.h2.db”; SQL statement: ROLLBACK [90031-176]
via Google Groups by Joonas Pulakka, 1 year ago
IO Exception: "java.io.IOException: Block not found in id [1, -13, 2, 44] [1.4.187/50]"; "lob: null table: -3 id: 188" [90031-187]
via GitHub by ashro7
, 2 years ago
IO Exception: "java.io.IOException: Block not found in id [1, -89, 11, 2] [1.4.188/50]"; "lob: null table: -3 id: 8" [90031-188]
via Stack Overflow by user955732
, 2 years ago
IO Exception: "java.io.IOException: The handle is invalid"; "C:/Users/myhome/mydb.h2.db"; SQL statement: select * from MESSAGES [90031-187]
java.io.FileNotFoundException: /var/lib/test.sql (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:101)
at org.h2.store.fs.FilePathDisk.newOutputStream(FilePathDisk.java:290)
at org.h2.store.fs.FileUtils.newOutputStream(FileUtils.java:233)
at org.h2.command.dml.ScriptBase.openOutput(ScriptBase.java:144)
at org.h2.command.dml.ScriptCommand.query(ScriptCommand.java:159)
at org.h2.command.CommandContainer.query(CommandContainer.java:90)
at org.h2.command.Command.executeQuery(Command.java:197)
at org.h2.server.TcpServerThread.process(TcpServerThread.java:320)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:159)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 1 day ago
3 times, 4 days ago
Once, 1 week ago
2 times, 3 weeks ago
5 times, 1 month ago

Write tip

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