Homematic can't init all things

Hi, since one week i get following Error Message:

01:15:00.097 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate command 'OFF' for item 'Steckdose_Garten_Terrasse' to handler for channel 'homematic:HM-LC-Sw2PBU-FM:ccu:NEQ1660XXX:2#STATE', because no handler is assigned. Maybe the binding is not installed or not propertly initialized.
01:15:00.097 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update 'OFF' for item 'Steckdose_Garten_Terrasse' to handler for channel 'homematic:HM-LC-Sw2PBU-FM:ccu:NEQ1660XXX:2#STATE', because no handler is assigned. Maybe the binding is not installed or not propertly initialized.

And in PaperUI near all my Homematik-Things have the Status UNINITIALIZED.
Sometime the bridge is UNINITIALIZED sometime it is ONLINE

This is the Startlog of the Homematik Binding (Mode TRACED).
The “BundleContext is no longer valid” error is diplayed multiple times in the log:

01:11:46.055 [DEBUG] [org.openhab.binding.homematic       ] - BundleEvent STARTING - org.openhab.binding.homematic
01:11:46.059 [DEBUG] [org.openhab.binding.homematic       ] - BundleEvent STARTED - org.openhab.binding.homematic
01:11:46.099 [ERROR] [org.openhab.binding.homematic       ] - [org.eclipse.smarthome.binding.homematic.discovery.bridge] Cannot register Component
java.lang.IllegalStateException: BundleContext is no longer valid
        at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.getBundle(BundleContextImpl.java:129)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.apache.felix.scr.impl.ComponentRegistry.checkComponentName(ComponentRegistry.java:209)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:448)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:315)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:268)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:401)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:278)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)[31:org.apache.felix.scr:2.0.6]
        at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)[31:org.apache.felix.scr:2.0.6]
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)[org.osgi.core-6.0.0.jar:]
        at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)[org.osgi.core-6.0.0.jar:]
        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.publishEvent(Module.java:466)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.container.Module.start(Module.java:457)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
        at org.apache.karaf.bundle.command.Start.executeOnBundle(Start.java:38)[37:org.apache.karaf.bundle.core:4.0.8]
        at org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:64)[37:org.apache.karaf.bundle.core:4.0.8]
        at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:54)[37:org.apache.karaf.bundle.core:4.0.8]
        at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[54:org.apache.karaf.shell.core:4.0.8]
        at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:274)[54:org.apache.karaf.shell.core:4.0.8]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]

Here the thing config:

Bridge homematic:bridge:ccu [ gatewayAddress="192.168.1.130" ]
{
	Thing	HM-RCV-50			        BidCoS-RF	"HM-RCV-50 BidCoS-RF"
	Thing	GATEWAY-EXTRAS-CCU	GWE00000000 "GATEWAY-EXTRAS-CCU"
	Thing	HM-PB-4Dis-WM-2		        NEQ0396XXX	"Display Diele" @ "Diele"
	Thing	HM-PB-2-WM55		        NAA0003XXX	"Schalter Bad OG Rolladen" @ "Bad OG"
	Thing	HM-RC-2-PBU-FM		        NEQ1318XXX	"Schalter Treppe Licht" @ "Treppe"
	Thing	HM-LC-Sw1-FM		        NEQ1504XXX	"Nachtlicht Treppe" @ "Treppe"
	Thing	HM-LC-Sw2-FM		        NEQ1222XXX	"Seitenlicht Treppe" @ "Treppe"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Anbau" @ "Anbau"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Arbeitszimmer" @ "Arbeitszimmer"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Bad EG" @ "Bad EG"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Esszimmer" @ "Esszimmer"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Küche" @ "Küche"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Fenster Wohnzimmer EG" @ "Wohnzimmer EG"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Terrasse Wohnzimmer EG" @ "Wohnzimmer EG"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Schlafzimmer EG" @ "Schlafzimmer EG"
	Thing	HM-LC-Bl1-FM		        NEQ1557XXX	"Rolladen Bad OG" @ "Bad OG"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Vorne Kinderzimmer 1" @ "Kinderzimmer 1"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Seite Kinderzimmer 1" @ "Kinderzimmer 1"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Kinderzimmer 2" @ "Kinderzimmer 2"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Rolladen Schlafzimmer OG" @ "Schlafzimmer OG"
	Thing	HM-LC-Bl1PBU-FM 	        NEQ1793XXX	"Rolladen Fenster Wohnzimmer OG" @ "Wohnzimmer OG"
	Thing	HM-LC-Bl1PBU-FM		NEQ1793XXX	"Makiese Terrasse" @ "Garten"
	Thing	HM-LC-Sw1-DR		        NEQ0369XXX	"Schalter aussen Garage" @ "Garten"
	Thing	HM-LC-Sw2PBU-FM		NEQ1661XXX	"Schalter aussen Anbau" @ "Garten"
	Thing	HM-LC-Sw2PBU-FM		NEQ1660XXX	"Schalter aussen Diele" @ "Garten"
	Thing	HM-LC-Sw2PBU-FM		NEQ1660XXX	"Schalter aussen Wohnzimmer EG Licht" @ "Garten"
	Thing	HM-LC-Sw2PBU-FM		NEQ1660XXX	"Schalter aussen Wohnzimmer EG Steckdose" @ "Garten"
}

Neven seen this message before. Can you give us some more information about your openHAB installation? Which openHAB version is it and where it is running?

Are there any other error message on the log file?

Openhab Hardware/Software:

  • RaspberryPi 3
  • Linux pihab 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
  • Openhab 2.1.0-1
  • Java™ SE Runtime Environment (build 1.8.0_121-b13)
    Java HotSpot™ Client VM (build 25.121-b13, mixed mode)
    Homematic Hardware/Software:
  • CCU2
  • 2.29.18

no other logfile errors

But today after 2 restarts, all intems are initialized and online.
i doesn’t change the configuration.
The error exist since near two weeks, no config changes before.
on wednesday, i reinstalled openhab, but the error comes back again.
today its worked.

I have a similar configuration (with a slightly older kernel) and never had problems like this. Maybe its a problem of the SD card.