Receiving java.sql.SQLException: out of memory

随声附和 提交于 2020-01-05 12:13:54

问题


I got this error message in NetBeans 6.8:

Exception in thread "main" java.sql.SQLException: out of memory
        at org.sqlite.DB.throwex(DB.java:288)
        at org.sqlite.NativeDB._open(Native Method)
        at org.sqlite.DB.open(DB.java:77)
        at org.sqlite.Conn.<init>(Conn.java:88)
        at org.sqlite.JDBC.connect(JDBC.java:64)
        at java.sql.DriverManager.getConnection(DriverManager.java:582)
        at java.sql.DriverManager.getConnection(DriverManager.java:207)

I changed my VM options but am still receiving the error. How can I fix this?


回答1:


Without any code snippet it's hard to give a decent answer. After i googled this exception, it seems that many people faced this problem. Try to remove the drive name (if any) from the JDBC URL this may help.




回答2:


please make sure, you are using correct URL for the database file.



来源:https://stackoverflow.com/questions/2128584/receiving-java-sql-sqlexception-out-of-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!