ClassNotFoundException when running ESH tests [message #1718113] |
Sat, 19 December 2015 17:40  |
Eclipse User |
|
|
|
When I run the launch file in various test packages, I get ClassNotFoundExceptions.
the binding.hue.test, config.core.test or the core.thing.test package, I get the following exception:
core.thing.test package:
!ENTRY org.eclipse.osgi 4 0 2015-12-19 22:25:34.544
!MESSAGE Could not find bundle: org.eclipse.equinox.console
!STACK 0
org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
at org.eclipse.core.runtime.internal.adaptor.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:58)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:333)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
follwed by a ClassNotFoundException like this for every test in the package:
Class not found org.eclipse.smarthome.core.thing.events.ThingEventFactoryTest
java.lang.ClassNotFoundException: org.eclipse.smarthome.core.thing.events.ThingEventFactoryTest cannot be found by org.eclipse.smarthome.core.thing_0.8.0.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:423)
See here for the complete log.
config.core.test package:
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.smarthome.test [101]
Unresolved requirement: Import-Package: org.eclipse.smarthome.core.autoupdate
at org.eclipse.osgi.container.Module.start(Module.java:434)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.osgi 4 0 2015-12-20 00:29:59.627
!MESSAGE Bundle initial@reference:file:../../../../../git/smarthome/bundles/test/org.eclipse.smarthome.test/ was not resolved.
Class not found org.eclipse.smarthome.config.core.test.ConfigurationTest
java.lang.ClassNotFoundException: org.eclipse.smarthome.config.core.test.ConfigurationTest cannot be found by org.eclipse.smarthome.config.core_0.8.0.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:423)
hue.test package:
!ENTRY org.eclipse.equinox.ds 1 0 2015-12-20 00:22:01.487
!MESSAGE Could not bind a reference of component ConfigStatusService. The reference is: Reference[name = ConfigStatusProvider, interface = org.eclipse.smarthome.config.core.status.ConfigStatusProvider, policy = dynamic, cardinality = 0..n, target = null, bind = addConfigStatusProvider, unbind = removeConfigStatusProvider]
Class not found org.eclipse.smarthome.binding.hue.test.HueBridgeHandlerOSGiTest
java.lang.ClassNotFoundException: org.eclipse.smarthome.binding.hue.test.HueBridgeHandlerOSGiTest cannot be found by org.eclipse.smarthome.binding.hue_0.8.0.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:423)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
I even created a clean installation with the Eclipse Installer but the error remains the same.
I know that I had used the hue.test launch file just some days ago, so I have no clue why it isn't working anymore.
Also, when I run mvn clean install, the build fails each time at a different component... I don't know if this is related with the first issue though,..
First run:
[INFO] Eclipse SmartHome Model Sitemap .................... FAILURE [ 37.555 s]
Second run:
[INFO] Eclipse SmartHome Model Persistence ................ FAILURE [ 19.259 s]
Third run:
[INFO] Eclipse SmartHome Model Rules Runtime .............. FAILURE [ 0.859 s]
I am really confused. How can it be that the same command fails each time at a different location?
Any ideas or suggestion how I could solve or debug these issues?
[Updated on: Sat, 19 December 2015 18:33] by Moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.31564 seconds