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
...全文
4732 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
JackBurd 2017-08-22
  • 打赏
  • 举报
回复
很有可能是插入主键为空,因为我用两个字段共同做主键,形如 CONSTRAINT C PRIMARY KEY(A,B),并不会显式报错。
reg_User 2015-08-19
  • 打赏
  • 举报
回复
实在看不出来是什么错误,大虾们看看

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧