2011-05-23 107 views
0

也許有人可以幫忙,我該如何解決這個問題? 我使用hibernate,spring和gwt。DataIntegrityViolationException:無法插入

com.google.gwt.user.server.rpc.UnexpectedException: 服務方法的公共抽象無效
com.yeah.client.service.PictureService.saveItem(com.yeah.shared.model.Picture )' 拋出一個意外的異常: org.springframework.dao.DataIntegrityViolationException: 無法插入: [com.yeah.shared.model.Picture]; SQL [insert into YeaH.Picture(albumID, picLocation)values(?,?)]; 約束[null];嵌套的例外是 org.hibernate.exception.ConstraintViolationException: 無法插入:
[com.yeah.shared.model.Picture]

回答

1

似乎要插入其無法驗證約束的對象。 (可能用同一把鑰匙)