java.sql.SQLException

来源:互联网 发布:紫鸟数据魔方可靠吗 编辑:程序博客网 时间:2024/05/18 21:43
2017/7/20 15:41
=============================
java.sql.SQLException: ORA-01400: 无法将 NULL 插入 ("DEV_SPREAD"."BCN_ORDER_SUPPLIER_REL"."ID")
=============================
解决方案:将原来的war包删除重新编译原来的项目
=============================
### Error updating database.  Cause: java.sql.SQLException: ORA-01400: 无法将 NULL 插入 ("DEV_SPREAD"."BCN_ORDER_SUPPLIER_REL"."ID")
### The error may involve com.chinaums.spread.auto.mapper.BcnOrderSupplierRelMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into BCN_ORDER_SUPPLIER_REL(ID,ORDER_ID,PRICE,SUPPLIER_ID,CREATE_TIME) values(?,?,?,?,?)
### Cause: java.sql.SQLException: ORA-01400: 无法将 NULL 插入 ("DEV_SPREAD"."BCN_ORDER_SUPPLIER_REL"."ID")
]
15:38:00.552 INFO  [o-18081"-exec-1] c.c.s.w.c.a.BcnOrderSupplierChargeAjaxController [BcnOrderSupplierChargeAjaxController.java:370] - 新增保存的时候出错:org.springframework.dao.DataIntegrityViolationException:
### Error updating database.  Cause: java.sql.SQLException: ORA-01400: 无法将 NULL 插入 ("DEV_SPREAD"."BCN_ORDER_SUPPLIER_REL"."ID")
### The error may involve com.chinaums.spread.auto.mapper.BcnOrderSupplierRelMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into BCN_ORDER_SUPPLIER_REL(ID,ORDER_ID,PRICE,SUPPLIER_ID,CREATE_TIME) values(?,?,?,?,?)
### Cause: java.sql.SQLException: ORA-01400: 无法将 NULL 插入 ("DEV_SPREAD"."BCN_ORDER_SUPPLIER_REL"."ID")
; SQL []; ORA-01400: 无法将 NULL 插入 ("DEV_SPREAD"."BCN_ORDER_SUPPLIER_REL"."ID")
; nested exception is java.sql.SQLException: ORA-01400: 无法将 NULL 插入 ("DEV_SPREAD"."BCN_ORDER_SUPPLIER_REL"."ID")
原创粉丝点击