Item model not loading correctly on RaspberryPi #517
Comments
From kai.openhab on November 15, 2013 15:03:27 I assume this is a startlevel problem. I have just committed a fix to start the itemtype factory earlier than the rest: b8d5feb Please test it with tomorrows build and let me know if it solves the problem! Status: Fixed |
From yannick....@gmail.com on November 16, 2013 01:40:46 Thx for the quick reaction Kai, but that's still open. There are less errors now because I reduced the model to just one item. I used #527 from today. "GenericItemProvider" is still loading after the model (although reading of the model now appears twice): 09:29:28.618 INFO o.q.impl.StdSchedulerFactory[:1328] - Quartz scheduler version: 2.1.7 |
From kai.openhab on November 16, 2013 02:20:17 Hm, pity that it didn't solve it. :-( Status: Accepted |
From kai.openhab on November 16, 2013 02:20:29 Owner: kai.openhab |
From teichsta on November 17, 2013 10:43:00 Labels: To-Github |
I just had the same issues with a similar setup. Once I deleted my .persist files I could start up openhab successfully. The windows and raspi startup-logs above seem to differ at that point as well, look for "Loading model 'rrd4j.persist'". HTH |
Unfortunately, I was lucky. (Even) without the *.persist files openhab seems to be non-deterministic about the start-up order... |
Same here. my temp workaround is to do a touch of all the files in the item directory after OH has fully started. Seems that triggers re-loading of all the items. |
Hi anyone knows why this is closed now. AFAIK there was no code change to fix this? |
A friend of mine pointed out that this problem only occurs in debug mode. Disable debug mode, and the behaviour is different. |
I am the friend mentioned by DocZoid. I could reproduce his problem with my configuration by running in debug mode. |
Just wanted to let you know, that the problem seems to be gone for me, after I switched to snapshot build #566 |
I'm using a snapshot build from yesterday, and I'm not sure if it's the same problem but I've had a startup issue today which required me to touch some of my item files to get the loaded. Otherwise they were ignored on startup. I was not using debug mode. |
I think this was solved with 1.4 - if anybody still sees it, please provide logs and reopen this issue! |
I think I'll have to reopen it. I'll reopen next time when it occurs. |
Apologies for my multiple posts, I'm not used with github issue tracker. |
mark servlet registration to be done immediately
From yannick....@gmail.com on November 15, 2013 23:31:30
What steps will reproduce the problem? 1. Configured item model in Windows, works fine
2. copied whole OpenHAB runtime folder to RaspberryPi, started in debug mode, creates error "Couldn't find ItemFactory for item '{}' of type '{}'" for all items. What is the expected output? What do you see instead? - What version of the product are you using? On what operating system? - tried 2013-05-25-wheezy-raspbian with java 8 and 2013-09-25-wheezy-raspbian with java 7 and 8, OH1.3.1 Please provide any additional information below. - most interesting log entry is the difference in the logging between windows and raspi startup:
First the windows start:
23:11:40.743 INFO o.o.c.internal.CoreActivator[:92] - openHAB runtime has been started (v1.3.1).
23:11:40.760 DEBUG o.o.c.a.i.AutoUpdateActivator[:51] - AutoUpdate binding has been started.
23:11:41.231 DEBUG o.o.m.p.i.PersistenceModelActivator[:43] - Registered 'persistence' configuration parser
23:11:41.242 DEBUG o.o.c.t.i.TransformationActivator[:58] - Transformation Service has been started.
23:11:41.369 DEBUG o.o.i.g.internal.GCalActivator[:54] - Google Calendar IO has been started.
23:11:41.386 DEBUG o.o.i.m.i.MultimediaActivator[:54] - Multimedia I/O bundle has been started.
23:11:41.401 DEBUG o.o.i.s.i.DiscoveryServiceActivator[:47] - Discovery service has been started.
23:11:41.412 DEBUG o.o.i.t.mqtt.MqttService[:138] - Starting MQTT Service...
23:11:41.484 DEBUG o.o.m.i.i.ItemModelActivator[:44] - Registered 'item' configuration parser
23:11:41.549 DEBUG o.o.c.i.items.ItemRegistryImpl[:157] - Item provider 'GenericItemProvider' has been added.
23:11:41.962 DEBUG o.o.m.s.i.SitemapModelActivator[:43] - Registered 'sitemap' configuration parser
23:11:42.052 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'homematic.items'
23:11:42.102 DEBUG o.o.m.i.i.GenericItemProvider[:154] - Read items from model 'homematic.items'
23:11:42.110 DEBUG o.o.i.r.internal.RESTActivator[:53] - REST API has been started.
23:11:42.192 INFO o.o.i.s.i.DiscoveryServiceImpl[:92] - mDNS service has been started
And here the Raspi start:
22:15:54.734 INFO o.o.c.internal.CoreActivator[:92] - openHAB runtime has been started (v1.3.1).
22:15:57.474 DEBUG o.o.c.a.i.AutoUpdateActivator[:51] - AutoUpdate binding has been started.
22:16:43.068 DEBUG o.o.m.p.i.PersistenceModelActivator[:43] - Registered 'persistence' configuration parser
22:16:43.668 DEBUG o.o.c.t.i.TransformationActivator[:58] - Transformation Service has been started.
22:16:46.389 DEBUG o.o.i.g.internal.GCalActivator[:54] - Google Calendar IO has been started.
22:16:47.960 DEBUG o.o.i.m.i.MultimediaActivator[:54] - Multimedia I/O bundle has been started.
22:16:51.405 DEBUG o.o.i.s.i.DiscoveryServiceActivator[:47] - Discovery service has been started.
22:16:53.491 DEBUG o.o.i.t.mqtt.MqttService[:138] - Starting MQTT Service...
22:17:02.385 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'rrd4j.persist'
22:17:10.237 DEBUG o.o.m.i.i.ItemModelActivator[:44] - Registered 'item' configuration parser
22:17:14.642 INFO o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'homematic.items'
22:17:22.564 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Anwesenheit' of type 'Number'
22:17:22.581 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Wohnmodus' of type 'Number'
22:17:22.601 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Eltern' of type 'Rollershutter'
22:17:22.619 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Bad' of type 'Rollershutter'
22:17:22.636 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Arbeit_Window' of type 'Rollershutter'
22:17:22.652 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Arbeit_Door' of type 'Rollershutter'
22:17:22.670 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Wandtaster_FL_PB4_1' of type 'Switch'
22:17:22.688 DEBUG o.o.m.i.i.GenericItemProvider[:312] - Start processing binding configuration of Item 'null' with 'AutoUpdateGenericBindingProvider' reader.
22:17:25.360 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Anwesenheit' of type 'Number'
22:17:25.377 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Wohnmodus' of type 'Number'
22:17:25.395 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Eltern' of type 'Rollershutter'
22:17:25.415 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Bad' of type 'Rollershutter'
22:17:25.432 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Arbeit_Window' of type 'Rollershutter'
22:17:25.449 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Shutter_OG_Arbeit_Door' of type 'Rollershutter'
22:17:25.466 DEBUG o.o.m.i.i.GenericItemProvider[:382] - Couldn't find ItemFactory for item 'Wandtaster_FL_PB4_1' of type 'Switch'
22:17:26.238 DEBUG o.o.m.i.i.GenericItemProvider[:154] - Read items from model 'homematic.items'
22:18:16.843 DEBUG o.o.m.s.i.SitemapModelActivator[:43] - Registered 'sitemap' configuration parser
22:18:20.938 DEBUG o.o.i.r.internal.RESTActivator[:53] - REST API has been started.
22:18:23.004 INFO o.o.i.s.i.DiscoveryServiceImpl[:92] - mDNS service has been started
The main difference (apart from the ages it take for the Raspi to start) is that the line
22:04:35.185 DEBUG o.o.c.i.items.ItemRegistryImpl[:157] - Item provider 'GenericItemProvider' has been added.
is coming before loading of the model in windows and it is missing (once it cames after loading the model) on the Raspi. That doesn't seem to make sense. I took a glance in the code but didn'd dig deep enough.
Original issue: http://code.google.com/p/openhab/issues/detail?id=517
The text was updated successfully, but these errors were encountered: