Habpanel not loading after upgrade to 2.5.0 Stable

Tags: #<Tag:0x00007f616dcb3c68>

Dear all,

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:

[ERROR] [org.openhab.ui.reactor.bundles ] - bundle org.openhab.ui.reactor.bundles:2.5.0 (249)[org.openhab.habpanel.rest] : Cannot register component

at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [osgi.core-6.0.0.jar:?]

2019-12-17 09:15:38.546 [ERROR] [org.openhab.ui.reactor.bundles ] - bundle org.openhab.ui.reactor.bundles:2.5.0 (249)[org.openhab.habpanel] : Cannot register component

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…

Any pointers on what I could do?

Thanks a lot in advance!

Shouldn’t be a problem.
Maybe try clearing the cache as explained here, if you haven’t already done so:

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!

Thanks! :slight_smile:

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:

299 │ Active │ 80 │ 2.5.0 │ openHAB UI :: Bundles :: HABPanel UI

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.

Any idea what’s wrong?

I have the same error on with habpanel too.
Changed nothing on the habpanel config, but after upgrading to stable 2.5 I receive this error message.

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
.

WRONG:

:org.apache.felix.configadmin.revision:=“1.0”

or

:org.apache.felix.configadmin.revision:=“2.0”

or

:org.apache.felix.configadmin.revision:=“3.0”

…and so on…

.

CORRECT:

:org.apache.felix.configadmin.revision:=L"1"

or

:org.apache.felix.configadmin.revision:=L"2"

or

:org.apache.felix.configadmin.revision:=L"3"

…and so on…

Please also check: …/org/openhab/ addons.config

5 Likes

I succeeded by deleting habpanel.config. After a restart, HABPanel did load and is working fine again.

Did you lose the panel configuration altogether or how did you preserve/restore it?

When updating your habpanel.config file all works fine without loosing your config. You will need about 1 minute for that, its pretty easy :wink:

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?

That is not a bug. They just changed the numbering in the config files in the meantime.

See also this topic (from post #16 and later), there was the error for the first time and together we found it.

1 Like

Had the same issue here.

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”.

Now I got my HABPanel back!

1 Like

This solution also worked for me. It essentially is indeed the same as changing the numbering as mentioned in the earlier posts!

Thanks mate, that fixed habpanel for me. Changed =“104.0” to =L"104" in habpanel config, rebooted and all good.

I have the same problem since I did the update to 2.5.2-1.
But unfortunately my habpanel.config starts already with

:org.apache.felix.configadmin.revision:=L"3"

IThere are mandy .config files with not such a line. Do i have to add it?

Best regards
Timo

Do you also get this error?

[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

.
Especially this one:

 java.lang.String cannot be cast to java.lang.Long

.

If not, then you probably have a different issue!

Do you get error messages? Could you please post them here?

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: