NTP Binding Problem in my OH2.2

Hi,

I have updated to OH2.2 a few weeks ago and noticed now that my NTP Binding doesn’t work anymore.
I got the following message in the logs.

2017-12-12 20:51:59.169 [ERROR] [ore.common.registry.AbstractRegistry] - Could not inform the listener 'org.eclipse.smarthome.core.thing.link.ThingLinkManager$2@1c2f1af' about the 'ADDED' event: org.eclipse.smarthome.core.library.types.DateTimeType.<init>(Ljava/time/ZonedDateTime;)V
java.lang.NoSuchMethodError: org.eclipse.smarthome.core.library.types.DateTimeType.<init>(Ljava/time/ZonedDateTime;)V
        at org.eclipse.smarthome.binding.ntp.handler.NtpHandler.refreshTimeDate(NtpHandler.java:210) ~[?:?]
        at org.eclipse.smarthome.binding.ntp.handler.NtpHandler.channelLinked(NtpHandler.java:256) ~[?:?]
        at org.eclipse.smarthome.core.thing.link.ThingLinkManager.informHandlerAboutLinkedChannel(ThingLinkManager.java:281) ~[?:?]
        at org.eclipse.smarthome.core.thing.link.ThingLinkManager.access$3(ThingLinkManager.java:272) ~[?:?]
        at org.eclipse.smarthome.core.thing.link.ThingLinkManager$2.added(ThingLinkManager.java:185) ~[?:?]
        at org.eclipse.smarthome.core.thing.link.ThingLinkManager$2.added(ThingLinkManager.java:1) ~[?:?]
        at org.eclipse.smarthome.core.common.registry.AbstractRegistry.notifyListeners(AbstractRegistry.java:235) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.common.registry.AbstractRegistry.notifyListeners(AbstractRegistry.java:254) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.common.registry.AbstractRegistry.notifyListenersAboutAddedElement(AbstractRegistry.java:258) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.thing.link.ItemChannelLinkRegistry.notifyListenersAboutAddedElement(ItemChannelLinkRegistry.java:158) [116:org.eclipse.smarthome.core.thing:0.9.0.201711202142]
        at org.eclipse.smarthome.core.thing.link.ItemChannelLinkRegistry.notifyListenersAboutAddedElement(ItemChannelLinkRegistry.java:1) [116:org.eclipse.smarthome.core.thing:0.9.0.201711202142]
        at org.eclipse.smarthome.core.common.registry.AbstractRegistry.added(AbstractRegistry.java:131) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.common.registry.AbstractRegistry.added(AbstractRegistry.java:1) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:51) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:69) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.common.registry.AbstractProvider.notifyListenersAboutAddedElement(AbstractProvider.java:73) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider.createItemChannelLink(GenericItemChannelLinkProvider.java:98) [151:org.eclipse.smarthome.model.thing:0.9.0.201711202142]
        at org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider.processBindingConfiguration(GenericItemChannelLinkProvider.java:68) [151:org.eclipse.smarthome.model.thing:0.9.0.201711202142]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:336) [135:org.eclipse.smarthome.model.item:0.9.0.201711202142]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:305) [135:org.eclipse.smarthome.model.item:0.9.0.201711202142]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:190) [135:org.eclipse.smarthome.model.item:0.9.0.201711202142]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:372) [135:org.eclipse.smarthome.model.item:0.9.0.201711202142]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:309) [134:org.eclipse.smarthome.model.core:0.9.0.201711202142]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:138) [134:org.eclipse.smarthome.model.core:0.9.0.201711202142]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:242) [134:org.eclipse.smarthome.model.core:0.9.0.201711202142]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processWatchEvent(FolderObserver.java:306) [134:org.eclipse.smarthome.model.core:0.9.0.201711202142]
        at org.eclipse.smarthome.core.service.WatchQueueReader.run(WatchQueueReader.java:204) [109:org.eclipse.smarthome.core:0.9.0.201711202142]
        at java.lang.Thread.run(Thread.java:748) [?:?]
2017-12-12 20:51:59.232 [.ItemChannelLinkAddedEvent] - Link 'Date-ntp:ntp:local:dateTime' has been added.

What I have tried:

  • Uninstalled NTP Binding via PaperUI
  • Stopped OH2
  • Deleted all files in /cache/ and /tmp/
  • Started OH2
  • Installed NTP Binding “binding-network - 2.2.0.SNAPSHOT”
  • OH2 found new thing “date” and I have added it via PaperUI

But I still get the same error message.

This is my configuration:

  • openHAB 2.2.0 Build #1094

  • java -version
    openjdk version "1.8.0_152"
    OpenJDK Runtime Environment (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 1.8.0_152-b76)
    OpenJDK Client VM (Zulu Embedded 8.25.0.76-linux-aarch32hf) (build 25.152-b76, mixed mode, Evaluation)

  • ntp.items

DateTime Date  "Date [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"  { channel="ntp:ntp:local:dateTime" }
  • ntp.things (I used before)
ntp:ntp:local  [ hostname="0.pool.ntp.org", refreshInterval=120, refreshNtp=60 ]

When starting OH2 I get this information regarding TimeZone and Locale:

2017-12-12 20:25:21.849 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to de_DE, Location set to xx.xx3728,xx.xx6681, Time zone set to Europe/Brussels

Didn’t have any problems with my NTP config in OH1.8 and OH2.1.
I have switched to OH2.2 because of problems with AstroBinding on OH2.1 which stopped working after 7 days again and again.
Do I need to update my Java Version?

Thanks in advance
Robert

Updated to Build#1133 and everything worked again.
Had the same problem with Astro Binding which is also solved now.