偶用nutz创建表, 报如下错,
DataSource 可以正常获得
但是创建表这一步有点问题, 过不去
貌似是因为驱动没有实现 savepoint(), 就是存储事务点,
如何解决呢,
org.nutz.dao.DaoException: com.mysql.jdbc.NotImplemented: Feature not implemented
详细错误
2012-06-16 12:39:01 DEBUG [main] Get 'comboPooledDataSource'<class com.mchange.v2.c3p0.ComboPooledDataSource>
2012-06-16 12:39:01 DEBUG [main] >> Load definition
2012-06-16 12:39:01 DEBUG [main] >> Make...'comboPooledDataSource'<class com.mchange.v2.c3p0.ComboPooledDataSource>
2012-06-16 12:39:01 DEBUG [main] class com.mchange.v2.c3p0.ComboPooledDataSource , no config to enable AOP.
2012-06-16 12:39:01 DEBUG [main] Save object 'comboPooledDataSource' to [app]
2012-6-16 12:39:01 com.mchange.v2.log.MLog <clinit>
信息: MLog clients using java 1.4+ standard logging.
2012-6-16 12:39:01 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.2-pre2 [built 18-May-2012 10:14:10 -0400; debug? true; trace: 10]
2012-06-16 12:39:01 INFO [main] Init file-pool by: ~/.nutz/tmp/dao/ [2000]
2012-06-16 12:39:01 DEBUG [main] file-pool.home: 'C:\Documents and Settings\sanshizi\.nutz\tmp\dao'
2012-06-16 12:39:01 INFO [main] file-pool.cursor: 0
2012-06-16 12:39:01 DEBUG [main] Jdbcs init complete
2012-6-16 12:39:01 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgekn88n1vl4fm01rr4e7u|2a5330, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> org.gjt.mm.mysql.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgekn88n1vl4fm01rr4e7u|2a5330, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/woele, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
2012-06-16 12:39:02 DEBUG [main] Database info --> MYSQL:[MySQL - 5.1.28-rc-community]
2012-06-16 12:39:02 DEBUG [main] Table 't_customer' doesn't exist!
2012-06-16 12:39:02 DEBUG [main] Table 't_customer' doesn't exist!
Exception in thread "main" org.nutz.dao.DaoException: com.mysql.jdbc.NotImplemented: Feature not implemented
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:49)
at org.nutz.dao.impl.DaoSupport$DaoExec.run(DaoSupport.java:211)
at org.nutz.trans.Trans.exec(Trans.java:123)
at org.nutz.trans.Trans.exec(Trans.java:81)
at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:184)
at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:175)
at org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert.createEntity(MysqlJdbcExpert.java:144)
at org.nutz.dao.impl.NutDao.create(NutDao.java:654)
at com.woele.bo.Bo.createTable(Bo.java:23)
at com.woele.bo.Bo.main(Bo.java:30)
Caused by: com.mysql.jdbc.NotImplemented: Feature not implemented
at com.mysql.jdbc.Connection.setSavepoint(Connection.java:843)
at com.mchange.v2.c3p0.impl.NewProxyConnection.setSavepoint(NewProxyConnection.java:1252)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:29)
... 9 more
Java Result: 1
成功生成(总时间:2 秒)
我的配置
<ioc xsi:noNamespaceSchemaLocation="nutz-ioc-0.1.xsd">
<obj name="comboPooledDataSource" type="com.mchange.v2.c3p0.ComboPooledDataSource">
<events>
<depose>close</depose>
</events>
<field name="driverClass">
<str>org.gjt.mm.mysql.Driver</str>
</field>
<field name="jdbcUrl">
<str>jdbc:mysql://localhost:3306/www</str>
</field>
<field name="user">
<str>root</str>
</field>
<field name="password">
<str>123456</str>
</field>
</obj>
</ioc>
<!--
org.gjt.mm.mysql.Driver
com.mysql.jdbc.Driver
?useUnicode=true&characterEncoding=
-->
----------------------------------------------------------------------------
问题解决了: 原来是jdbc驱动太老了, 下载了一个5.0的, 搞定
- 大小: 7.8 KB
分享到:
相关推荐
nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册 nutz 使用手册
nutz需要的jar包
可连接多种数据库根据表直接生成nutz所需的bean
NULL 博文链接:https://gevin.iteye.com/blog/1147922
用于nutz邮箱验证jar包
nutz生成javabean工具.zip
对于 Java 程序员来说,除 SSH 之外,可能还有另外一个选择: Nutz 当然,它是开源的,并且是完全免费的。 同传统的 SSH 相比,它具备如下特点: 轻 -- 当前最新版,整个 jar 文件共 820k 薄 -- 针对 JDBC 的薄封装...
Nutz, 它是一组轻便小型的框架的集合。 -------------Nutz 可以做什么? Dao -- 针对 JDBC 的薄封装,事务模板,无缓存 Ioc -- JSON 风格的配置文件,声明时切片支持 Mvc -- 注解风格的配置,内置多文件上传功能 ...
nutz框架使用手册,从零到有深入学习nutz平台开发
nutz框架jar包
可以快速定位路径 页面 本jar包是nutz实用插件 希望大家多多下载
Spring 里采用 Nutz.Dao ,又比如在 Nutz.Ioc 里使用 Hibernate 等整 -- 它所有功能均不依赖第三方 jar 文件。这就意味着:如果一个 Web 应用,你在 WEB-INF/lib 下只 需要放置一个 nutz.jar 就够了当然你要使用其它...
nutz-1.r.60.jar
在做nutz redis集成的实时,由于依赖包的问题被坑了一把,为了后人不要走同样的路,把所有依赖包放在上面了。
nutz框架开发手册,框架很方便使用的,和大家分享
让nutz支持freemarker。 具体使用和在struts2中使用是一样的
用开源框架nutz搭建的MVC框架,适合小型系统的开发,快捷方便!
Nutz 的原则性目标 为最大限度的提高 Web 程序员的生产力,Nutz 必须具备如下特性: 提供 SSH 大部分功能 数据库访问层 -- Nutz.Dao 反转注入支持 -- Nutz.Ioc Mvc 框架 -- Nutz.Mvc Json 解析器 -- Nutz.Json 更多...
nutz-1.r.61-发布包