Skip to content

Commit cf11d3c

Browse files
committed
hibernate-osgi test debugging README
1 parent 94ad371 commit cf11d3c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

hibernate-osgi/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
hibernate-osgi Test Debugging
2+
=============================
3+
4+
Here's a quick tip for debugging hibernate-osgi test failures. Sometimes, a dependency or code change will result
5+
in an error that looks like the following:
6+
7+
Caused by: java.lang.ClassNotFoundException: *** Class 'org.hibernate.osgi.test.OsgiTestCase' was not found, but
8+
this is likely normal since package 'org.hibernate.osgi.test' is dynamically imported by bundle
9+
arquillian-osgi-bundle [5]. However, bundle hibernate-osgi-test [20] does export this package with attributes that
10+
do not match. ***
11+
12+
That error is extremely misleading and is not the actual problem. To get to the root issue, open this file:
13+
14+
hibernate-osgi/target/test-results/TEST-org.hibernate.osgi.test.OsgiTestCase.xml
15+
16+
The root issue will usually be embedded half-way through. More often than not, searching for
17+
*org.osgi.framework.BundleException* will find it.

0 commit comments

Comments
 (0)