File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments