开发者社区> 问答> 正文

jfinal 加入sqllite如何配置??报错

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)


展开
收起
爱吃鱼的程序员 2020-06-22 17:53:59 1721 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个问题很难?

    <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

    2020-06-22 17:54:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多