eclipse-archived / smarthome

Eclipse SmartHome™ project
https://www.eclipse.org/smarthome/
Eclipse Public License 2.0
862 stars 783 forks source link

Karaf: system:shutdown - Could not find an Event Factory #1339

Open foxytocin opened 8 years ago

foxytocin commented 8 years ago

Hi, shutting down OH2 via Karaf result in some warnings: In my opinion this is because i linked the Items manuell in my default.items file. So that's really no warning at all. Wish to get rid of this "warning-messages" in log file because its irritatingly confusing.

For every single item there is one waring.

- Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.434 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.435 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.436 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.438 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.439 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.440 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.442 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.443 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.444 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.445 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.445 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.447 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.449 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.450 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.451 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.453 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.454 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.455 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.457 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.458 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.459 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.460 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.461 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.462 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.463 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.464 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.
18:20:38.464 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemThingLinkRemovedEvent'.

Andi

RREE commented 7 years ago

I also get several of these entries whenever I restart the openhab2 service:

2017-03-21 23:04:04.160 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.162 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.164 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.165 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.167 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.168 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.169 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.171 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.172 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.174 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.175 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'. 2017-03-21 23:04:04.177 [WARN ] [ore.internal.events.OSGiEventManager] - Could not find an Event Factory for the event type 'ItemChannelLinkRemovedEvent'.

This is after clean install (I'm an absolute openhab beginner, but experienced in Linux)

kaikreuzer commented 7 years ago

These messages can be ignored, they are not harmful. This should be solved once we have a solution for https://github.com/eclipse/smarthome/issues/1896.

htreu commented 6 years ago

@kaikreuzer, since this is not harmful can we close this?

kaikreuzer commented 6 years ago

No, as it is pretty annoying. Happy to close it once its fix is confirmed when #1896 is done!