I upgraded the openhab to 2.5.0 stable release this morning. Most things seem to be working okay but my habpanel is not loading. I just get a 404 not Found error. I also tried ‘Uninstalling’ and reinstalling the habpanel addon through PaperUI, but it didn’t help. Restarting openhab2 service thereafter also didn’t help.
I also tried to stop and start the bundle via Karaf, but I get the following error:
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [osgi.core-6.0.0.jar:?]
I also noticed I have two following libraries in there. Could that cause a problem? No other libraries seem to be duplicated.
21 │ Active │ 80 │ 18.0.0 │ Guava: Google Core Libraries for Java
22 │ Active │ 80 │ 27.1.0.jre │ Guava: Google Core Libraries for Java
Habpanel is the last bundle in the list, if it matters…
I decided to downgrade and that has fixed the problem. I will try the upgrade in a few days again and if it fails again, then follow clearing the cache!
I’m having the same issue: Installation of HABPanel does not work. I did clear the cache and even restarted OH twice but no success. HABPanel does not appear as UI on the start screen although PaperUI says it’s installed. In the console, I see that the bundle is active:
The log shows the following error message when installing HABPanel although in the end it says “Extension ‘ui-habpanel’ has been installed”
2019-12-17 22:44:20.777 [ERROR] [org.apache.felix.scr ] - bundle org.apache.felix.scr:2.1.16 (43)Error while loading components of bundle org.openhab.ui.reactor.bundles:2.5.0 (299)
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
at org.apache.felix.cm.impl.ConfigurationImpl.configure(ConfigurationImpl.java:659) ~[?:?]
at org.apache.felix.cm.impl.ConfigurationImpl.configureFromPersistence(ConfigurationImpl.java:619) ~[?:?]
at org.apache.felix.cm.impl.ConfigurationImpl.(ConfigurationImpl.java:194) ~[?:?]
at org.apache.felix.cm.impl.ConfigurationManager.listConfigurations(ConfigurationManager.java:552) ~[?:?]
at org.apache.felix.cm.impl.ConfigurationAdminImpl.listConfigurations(ConfigurationAdminImpl.java:190) ~[?:?]
at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.findConfigurations(RegionConfigurationSupport.java:655) ~[?:?]
at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.findSingletonConfiguration(RegionConfigurationSupport.java:554) ~[?:?]
at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configureComponentHolder(RegionConfigurationSupport.java:199) ~[?:?]
at org.apache.felix.scr.impl.BundleComponentActivator.setRegionConfigurationSupport(BundleComponentActivator.java:763) ~[?:?]
at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.addingService(ConfigAdminTracker.java:69) ~[?:?]
at org.apache.felix.scr.impl.helper.ConfigAdminTracker$1.addingService(ConfigAdminTracker.java:41) ~[?:?]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[osgi.core-6.0.0.jar:?]
at org.apache.felix.scr.impl.helper.ConfigAdminTracker.(ConfigAdminTracker.java:86) ~[?:?]
at org.apache.felix.scr.impl.BundleComponentActivator.(BundleComponentActivator.java:275) ~[?:?]
at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:380) ~[?:?]
at org.apache.felix.scr.impl.Activator.access$200(Activator.java:49) ~[?:?]
at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:264) ~[?:?]
at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) ~[?:?]
at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) ~[?:?]
at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) ~[?:?]
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[osgi.core-6.0.0.jar:?]
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) ~[osgi.core-6.0.0.jar:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.container.Module.start(Module.java:467) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402) ~[org.eclipse.osgi-3.12.100.jar:?]
at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1036) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
==> /var/log/openhab2/events.log <==
2019-12-17 22:44:20.826 [thome.event.ExtensionEvent] - Extension ‘ui-habpanel’ has been installed.
You have to check EVERY first line in ALL .config files in ( /userdata/config/ and subfolders), if there are any of these entries:
.
especially: …/org/openhab/habpanel.config
.
This was very useful and solved my problem (that HABPanel did not start). @Celaeno1: Just to learn how to proceed with such problems: how did you find out, and is this a data migration bug? If yes, has it been corrected?
Before upgrading to 2.5 Stable I backed up my userdata and conf folders.
Putting the habpanel.config back didn’t work for me.
My backed up file did not have a line with “:org.apache.felix.configadmin.revision”
I deleted the config file and created a new configuration in HABPanel which creates a new config file (starting with the revision entry).
Then I copied the content from my backup to the new config file replacing the existing lines starting with “panelsRegistry”.
I’m really sorry, I think I didn’t read it completely… ok I didn’t read it at all…
I have a completely other problem.
My Habpanel is not refreshing.
I can turn the light ON in HABpanel, it’s then displayed as ON, I can turn it OFF, it sends OFF, but in HABPanel it stays on and on repeated clicks it sends always OFF.
Edit:
Sorry again, It’s just with groups and this one helped: