当前位置:首页 / 临时文件夹 / hibernate-release-5.5.3.Final / project / hibernate-osgi /
文件名 | 修改时间 | 大小 | 操作 | |||
---|---|---|---|---|---|---|
.. | - | - | ||||
src | src | 2021-06-22 15:37 | - | |||
README.md | README.md | 2021-06-22 15:37 | 919 B | |||
hibernate-osgi.gradle | hibernate-osgi.gradle | 2021-06-22 15:37 | 9.78 KB |
README.md
hibernate-osgi Test Debugging
Here's a quick tip for debugging hibernate-osgi test failures. Sometimes, a dependency or code change will result in an error that looks like the following:
Caused by: java.lang.ClassNotFoundException: *** Class 'org.hibernate.osgi.test.OsgiTestCase' was not found, but
this is likely normal since package 'org.hibernate.osgi.test' is dynamically imported by bundle
arquillian-osgi-bundle [5]. However, bundle hibernate-osgi-test [20] does export this package with attributes that
do not match. ***
That error is extremely misleading and is not the actual problem. To get to the root issue, open this file:
hibernate-osgi/target/test-results/TEST-org.hibernate.osgi.test.OsgiTestCase.xml
The root issue will usually be embedded half-way through. More often than not, searching for org.osgi.framework.BundleException will find it.