duckdb / duckdb-java

DuckDB JDBC Driver
https://duckdb.org/docs/api/java.html
MIT License
43 stars 23 forks source link

Attemped it dereference unique_ptr that is null #78

Open Stongtong opened 2 months ago

Stongtong commented 2 months ago

hi guys: I meet this problem in my practice and confused a little, I use java call it ( java version is jdk 11 and duck db version is 1.0.0), the detail log is below:

Caused by: java.sql.SQLException: FATAL Error: Failed: database has been invalidated because of a previous fatal error. the database must be restarted prior to being used again. Original error: "Failed: database has been invalidated because of a previous fatal error. the database must be restarted prior to being used again. Original error: "Failed: database has been invalidated because of a previous fatal error. the database must be restarted prior to being used again. Original error: "Failed: database has been invalidated because of a previous fatal error. the database must be restarted prior to being used again. Original error: "Attemped it dereference unique_ptr that is NULL!"""" at org.duckdb.DuckDBNative.duckdb_jdbc_execute(Native Method) at org.duckdb.DuckDBPrepareStatement.execute(DuckDBPrepareStatement.java:143) at org.duckdb.DuckDBPrepareStatement.execute(DuckDBPrepareStatement.java:197)