ibatis报错 Unable to translate SQLException with Error code '1048'

reg_User 2015-08-19 09:46:19
09:46:00,448 DEBUG SqlSessionUtils:43 - Creating a new SqlSession
09:46:00,448 DEBUG SqlSessionUtils:43 - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@223d2e6c] was not registered for synchronization because synchronization is not active
09:46:00,448 DEBUG DataSourceUtils:110 - Fetching JDBC Connection from DataSource
09:46:00,480 DEBUG SpringManagedTransaction:43 - JDBC Connection [jdbc:mysql://mysql.quanyi.cn:3306/quanyi, UserName=quanyiSQL2015@183.195.157.114, MySQL-AB JDBC Driver] will not be managed by Spring
09:46:00,480 DEBUG Connection:43 - ooo Connection Opened
09:46:00,480 DEBUG PreparedStatement:43 - ==> Executing: insert into customer (customer_Id, customer_Group_Id, use_Id, nickname, state, attention_Date, remark, country_Id, province_Id, city_Id, user_Avatar) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
09:46:00,480 DEBUG PreparedStatement:43 - ==> Parameters: 3ae527d4bf5f48d0b04ac49dd6028a99(String), null, null, null, 0(String), 2015-08-19 09:46:00.448(Timestamp), null, null, null, null, null
09:46:00,511 DEBUG SQLErrorCodeSQLExceptionTranslator:283 - Unable to translate SQLException with Error code '1048', will now try the fallback translator
09:46:00,511 DEBUG SqlSessionUtils:43 - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@223d2e6c]
09:46:00,511 DEBUG DataSourceUtils:332 - Returning JDBC Connection to DataSource
...全文
3501 2 点赞 打赏 收藏 举报
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
JackBurd 2017-08-22
很有可能是插入主键为空,因为我用两个字段共同做主键,形如 CONSTRAINT C PRIMARY KEY(A,B),并不会显式报错。
  • 打赏
  • 举报
回复
reg_User 2015-08-19
实在看不出来是什么错误,大虾们看看
  • 打赏
  • 举报
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-08-19 09:46
社区公告
暂无公告