Presumably problem with *.item File

Hello there,

I need some Help finding an error in one of my Item files. I think

This is the situation:
I recently changed a lot of Items in a *.Item File. Now every time i save the *.Items file the following error apears in the log:

2022-11-16 08:33:44.937 [ERROR] [ore.common.registry.AbstractRegistry] - Cannot inform the listener "org.openhab.core.thing.internal.ChannelLinkNotifier@284269" about the "UPDATED" event: null
java.lang.NullPointerException: null
	at java.util.Objects.requireNonNull( ~[?:?]
	at org.openhab.binding.knx.internal.handler.DeviceThingHandler.getChannelTypeUID( ~[?:?]
	at org.openhab.binding.knx.internal.handler.DeviceThingHandler.isControl( ~[?:?]
	at org.openhab.binding.knx.internal.handler.DeviceThingHandler.channelLinked( ~[?:?]
	at org.openhab.core.thing.internal.ChannelLinkNotifier.lambda$3( ~[?:?]
	at ~[?:?]
	at org.openhab.core.thing.internal.ChannelLinkNotifier.added( ~[?:?]
	at org.openhab.core.thing.internal.ChannelLinkNotifier.updated( ~[?:?]
	at org.openhab.core.thing.internal.ChannelLinkNotifier.updated( ~[?:?]
	at org.openhab.core.common.registry.AbstractRegistry.notifyListeners( ~[?:?]
	at org.openhab.core.common.registry.AbstractRegistry.notifyListenersAboutUpdatedElement( ~[?:?]
	at ~[?:?]
	at ~[?:?]
	at org.openhab.core.common.registry.AbstractRegistry.updated( ~[?:?]
	at org.openhab.core.common.registry.AbstractRegistry.updated( ~[?:?]
	at org.openhab.core.common.registry.AbstractProvider.notifyListeners( ~[?:?]
	at org.openhab.core.common.registry.AbstractProvider.notifyListenersAboutUpdatedElement( ~[?:?]
	at org.openhab.core.model.thing.internal.GenericItemChannelLinkProvider.createItemChannelLink( ~[?:?]
	at org.openhab.core.model.thing.internal.GenericItemChannelLinkProvider.processBindingConfiguration( ~[?:?]
	at org.openhab.core.model.item.internal.GenericItemProvider.internalDispatchBindings( ~[?:?]
	at org.openhab.core.model.item.internal.GenericItemProvider.internalDispatchBindings( ~[?:?]
	at org.openhab.core.model.item.internal.GenericItemProvider.processBindingConfigsFromModel( ~[?:?]
	at org.openhab.core.model.item.internal.GenericItemProvider.modelChanged( ~[?:?]
	at org.openhab.core.model.core.internal.ModelRepositoryImpl.notifyListeners( ~[?:?]
	at org.openhab.core.model.core.internal.ModelRepositoryImpl.addOrRefreshModel( ~[?:?]
	at org.openhab.core.model.core.internal.folder.FolderObserver.checkFile( ~[?:?]
	at org.openhab.core.model.core.internal.folder.FolderObserver.processWatchEvent( ~[?:?]
	at org.openhab.core.service.WatchQueueReader.lambda$3( ~[?:?]
	at java.util.concurrent.Executors$ [?:?]
	at [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]
	at java.util.concurrent.ThreadPoolExecutor$ [?:?]
	at [?:?]

The Items in the file seem to work fine as far as i can tell.
I i dont want to post the whole Item File it is quite long and honestly i dont want to expose it to the internet…

Can anyone help me what i can look for or help me understand what this error means?

Roughly I would say there is some issue with the channel link the item is linked to, but my first guess would be to restart openHAB :slight_smile:
I had some issues from time to time after larger changes (though the issues showed different from what you have) and I was always able to resolve by restarting opnHAB (given that the thing and item definitions itself are correct)…


1 Like

If you use Visual Studio Code and openHAB plugin it will check for syntax errors

1 Like

Thanks for your suggestions @martiniman and @rfuh

I did a restart, but nothing changed except the first line the number after the @ is now 18e5065

2022-11-16 11:57:51.016 [ERROR] [ore.common.registry.AbstractRegistry] - Cannot inform the listener "org.openhab.core.thing.internal.ChannelLinkNotifier@18e5065" about the "UPDATED" event: null

I use Visual Studio Code, yet i can not see anything wrong. also all my items seem to work. (but i could have missed one…)

Found it.

It was a typo in a ‚ÄúChannel Link‚ÄĚ to a channel of a thing in the knx binding that did not exist‚Ķ

Thanks for your help!