OpenHab Cloud Binding Crashes on Startup

Tags: #<Tag:0x00007f745477aea0> #<Tag:0x00007f745477add8>

I have attempted a upgrade to OpenHab 2.5, every other binding works fine but OpenHab Cloud will not start. Events log give me this error ever time. Have done a cache clear already.

2019-08-20 22:50:29.693 [ERROR] [org.apache.felix.scr                ] - bundle org.apache.felix.scr:2.1.16 (43)Error while loading components of bundle org.openhab.io.openhabcloud:2.5.0.201908182303 (327)

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.<init>(ConfigurationImpl.java:194) ~[?:?]

	at org.apache.felix.cm.impl.ConfigurationManager.listConfigurations(ConfigurationManager.java:547) ~[?:?]

	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) ~[?:?]

	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) ~[?:?]

	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[?:?]

	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[?:?]

	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[?:?]

	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[?:?]

	at org.apache.felix.scr.impl.helper.ConfigAdminTracker.<init>(ConfigAdminTracker.java:86) ~[?:?]

	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(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) ~[?:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) ~[?:?]

	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?]

	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) ~[?:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) ~[?:?]

	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) ~[?:?]

	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) ~[?:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) ~[?:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) ~[?:?]

	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) ~[?:?]

	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) ~[?:?]

	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) ~[?:?]

	at org.eclipse.osgi.container.Module.start(Module.java:467) ~[?:?]

	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]

	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402) ~[?:?]

	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) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

Have you tried uninstalling and reinstalling the binding? The error hints at maybe a config being incorrect or something else weird like that.

I get that error when I tried reinstalling the binding. That is how I was able to find the error in the log.

No one else with this problem?

Same problem here since I installed 2.5M3
The cloud config is also missing from the paper ui
error: 2019-09-19 21:08:58.410 [ERROR] [org.apache.felix.scr ] - bundle org.apache.felix.scr:2.1.16 (43)Error while loading components of bundle org.openhab.io.openhabcloud:2.5.0.M3 (269) 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.<init>(ConfigurationImpl.java:194) ~[?:?] at org.apache.felix.cm.impl.ConfigurationManager.listConfigurations(ConfigurationManager.java:547) ~[?:?] 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) ~[?:?] at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870) ~[?:?] at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[?:?] at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[?:?] at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[?:?] at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[?:?] at org.apache.felix.scr.impl.helper.ConfigAdminTracker.<init>(ConfigAdminTracker.java:86) ~[?:?] at org.apache.felix.scr.impl.BundleComponentActivator.<init>(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) ~[?:?] at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) ~[?:?] at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) ~[?:?] at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) ~[?:?] at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) ~[?:?] at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) ~[?:?] at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) ~[?:?] at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) ~[?:?] at org.eclipse.osgi.container.Module.start(Module.java:467) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402) ~[?:?] 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) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?]

1 Like

Hi guys,

looks like a general problem with other bindings, too. At least hueemulation bundle has the same issue now (Error while loading components of bundle org.openhab.io.hueemulation)

Best regards