sqllite配置启动报错,麻烦给看一下@jfinal
sqllite 数据源配置:
C3p0Plugin c3p0Plugin = new C3p0Plugin("jdbc:sqlite:"+dbPath+File.separator+"core.db","",""); c3p0Plugin.setDriverClass("org.sqlite.JDBC"); me.add(c3p0Plugin); ActiveRecordPlugin arp = new ActiveRecordPlugin(c3p0Plugin); arp.setDialect(new Sqlite3Dialect()); arp.setShowSql(true); me.add(arp);
报错信息:
[DEBUG]-[Thread: com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2]-[com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run()]: An exception occurred while acquiring a poolable resource. Will retry. java.sql.SQLException: NYI at org.sqlite.Conn.getTransactionIsolation(Conn.java:77) at com.mchange.v2.c3p0.impl.NewPooledConnection.<init>(NewPooledConnection.java:107)
这个问题很难?
<spanstyle="font-family:Arial,'LiberationSans','DejaVuSans',sans-serif;font-size:14px;line-height:18px;background-color:#FFFFFF;">NYI的意思是"notyetimplemented."
<spanstyle="font-family:Arial,'LiberationSans','DejaVuSans',sans-serif;font-size:14px;line-height:18px;background-color:#FFFFFF;">
<spanstyle="font-family:Arial,'LiberationSans','DejaVuSans',sans-serif;font-size:14px;line-height:18px;background-color:#FFFFFF;">看来代码里面调用了sqlite驱动未实现的东西
将DataSource传给ActiveRecordPlugin试试,不要使用C3p0Plugin,可能是sqlite不支持回复<aclass='referer'target='_blank'>@mrguo:通过JDBCAPI创建的,google一下jdbc建立连接的代码嗯谢谢波波怎么创建DataSource版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。