Apache Tomee and Apache OpenJPA version collision

来源:互联网 发布:xp添加网络扫描仪 编辑:程序博客网 时间:2024/06/02 07:56

The exception log:

Caused by: <openjpa-2.4.0-nonfinal-1598334-r422266:1599166 fatal user error> org.apache.openjpa.persistence.InvalidStateException: Attempt to set column "Runlog.lastModified" to two different values: (class java.util.Date)"14-8-12 ????3:17", (null)"null" This can occur when you fail to set both sides of a two-sided relation between objects, or when you map different fields to the same column, but you do not keep the values of these fields in synch.

Change Tomee-embeded from 1.7.0 to 1.6.0.2. 问题解决。

总结:有时候,使用开源的组件,跟进太快可能会有些问题。如这里tomee和openjpa的版本冲突问题。

0 0
原创粉丝点击