NutzCN Logo
问答 Nutzdao与druid报错
发布于 521天前 作者 binfoo 469 次浏览 复制 上一个帖子 下一个帖子
标签:
  1. 本机正常,mysql数据库使用mariadb驱动
  2. 放在ubuntu服务器上报错
数据库url参数:{    type:"org.nutz.dao.impl.SimpleDataSource",    url:"jdbc:mysql://172.255.1.112:3306/cloud",    UserName:"root",    Password:"aA123456",    PoolInitialSize:1,    PoolMinIdle:10,    PoolMaxActive:40,    maxWait:60000}
Exception in thread "main" java.lang.AbstractMethodError: org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.checkDataSource(Ljava/sql/Connection;)V
	at org.nutz.dao.impl.DaoSupport$1.invoke(DaoSupport.java:213)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:159)
	at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithoutTransaction(NutDaoRunner.java:126)
	at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:93)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:82)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:193)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:178)
	at org.nutz.dao.impl.NutDao.<init>(NutDao.java:105)
	at com.hg.db.mariadb.DBUtils.getDAO(DBUtils.java:67)
	at com.hg.db.mariadb.DBUtils.getDAO(DBUtils.java:91)
	at com.main.StartLocalRocketMQConsumer.startPushSubscrible(StartLocalRocketMQConsumer.java:89)
	at com.main.StartLocalRocketMQConsumer.main(StartLocalRocketMQConsumer.java:65)

2 回复

应该是有两个版本的nutz jar

你说的对,一个是nutz-1.b.45-jdk6.jar ,一个是1.66,我删掉就好了
本机应该是我指定了1.66,才会正常

添加回复
请先登陆
回到顶部