From 55973e15954867edacb17f78dfb88bff820e786d Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Tue, 10 Mar 2015 12:24:30 -0400 Subject: [PATCH] hibernate-osgi test debugging README --- hibernate-osgi/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hibernate-osgi/README.md diff --git a/hibernate-osgi/README.md b/hibernate-osgi/README.md new file mode 100644 index 0000000000..5bc6751896 --- /dev/null +++ b/hibernate-osgi/README.md @@ -0,0 +1,17 @@ +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. \ No newline at end of file