sqlite数据库报错:NullPointerException: at (unknown)
我写了一个程序,用于循环200次读取sqlite数据库中数据,循环执行前面150次时,没有报错。当超过150次时,就报错。错误如下:org.ibex.nestedvm.Runtime$FaultException:java.lang.NullPointerException:at (unknown)
at org.sqlite.SQLite._execute(target/build/SQLite.mips)
at org.ibex.nestedvm.Runtime._execute(Runtime.java:506)
at org.ibex.nestedvm.Runtime.call(Runtime.java:678)
at org.ibex.nestedvm.Runtime.call(Runtime.java:647)
at org.sqlite.NestedDB.call(NestedDB.java:568)
at org.sqlite.NestedDB.call(NestedDB.java:554)
at org.sqlite.NestedDB._open(NestedDB.java:73)
at org.sqlite.DB.open(DB.java:86)
at org.sqlite.Conn.open(Conn.java:140)
at org.sqlite.Conn.<init>(Conn.java:57)
at org.sqlite.JDBC.createConnection(JDBC.java:77)
at org.sqlite.JDBC.connect(JDBC.java:64)
at java.sql.DriverManager.getConnection(DriverManager.java:571)
at java.sql.DriverManager.getConnection(DriverManager.java:233)
at DataBase.read(DataBase.java:66)
at DataBase.main(DataBase.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Process exited on signal 11
拜托各位大神抽空看看!感激不尽。