在maven中构建传递,但在声纳下失败

时间:2014-08-25 09:26:00

标签: hibernate junit jenkins sonarqube jacoco

我正在使用sonarqube版本:4.3 我的java插件版本:2.3 jacoco版本:0.7.1

有一些测试通过maven正常构建但在声纳,jacoco下失败。

例如:

 Error Message

 No row with the given identifier exists:[com.project.hibernate.entity.DummyProperty#30]
 Stacktrace

 org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.project.hibernate.entity.DummyProperty#30]

我该如何解决这个问题? jacoco有可能出现hibernate问题吗?

1 个答案:

答案 0 :(得分:0)

错误消息显示您正在尝试通过它的ID检索不存在的实体。 检查您的环境和测试代码;该实体应该如何可用?看来你有时候会有这个实体,有时也不会。

相关问题