Home » Archived » Eclipse SmartHome » Automation : HANDLER_INITIALIZING_ERROR(Unable to get rules up and running; ModuleHandlerFactory.getHandler() never called)
Automation : HANDLER_INITIALIZING_ERROR [message #1719518] |
Fri, 08 January 2016 15:11 |
Karel Goderis Messages: 198 Registered: March 2014 |
Senior Member |
|
|
I have the following in my logs:
16:03:35.213 DEBUG o.e.s.c.c.r.AbstractManagedProvider[:62] - Added new element 993159AD-7959-4AFA-99B0-16708F46925D_Start_Rule to ManagedRuleProvider.
16:03:35.214 INFO smarthome.event.RuleAddedEvent[:43] - Rule '993159AD-7959-4AFA-99B0-16708F46925D_Start_Rule' has been added.
16:03:35.214 DEBUG o.e.s.a.c.internal.RuleEngine[:263] - Added rule '993159AD-7959-4AFA-99B0-16708F46925D_End_Rule'
16:03:35.215 INFO s.event.RuleStatusInfoEvent[:43] - 993159AD-7959-4AFA-99B0-16708F46925D_End_Rule updated: NOT_INITIALIZED
16:03:35.216 INFO s.event.RuleStatusInfoEvent[:43] - 993159AD-7959-4AFA-99B0-16708F46925D_End_Rule updated: NOT_INITIALIZED (HANDLER_INITIALIZING_ERROR): Missing handler 'TimerTrigger' for module '993159AD-7959-4AFA-99B0-16708F46925D_End_Trigger'
and in the code somewhere:
return new org.eclipse.smarthome.automation.Rule(uid + "_" + prefix + "_Rule", triggers, null, actions, null,
null, Visibility.VISIBLE);
After some digging, it seems that the Handler never got initialised, however, when querying the osgi console, I have :
osgi> b 85
org.eclipse.smarthome.automation.module.timer_0.8.0.qualifier [85]
Id=85, Status=ACTIVE Data Root=/Users/kgoderis/smarthome-master/ws/.metadata/.plugins/org.eclipse.pde.core/SmartHome Runtime/org.eclipse.osgi/85/data
"Registered Services"
{org.eclipse.smarthome.automation.handler.ModuleHandlerFactory}={service.id=112, service.bundleid=85, service.scope=singleton}
No services in use.
and
osgi> b 83
org.eclipse.smarthome.automation.core_0.8.0.qualifier [83]
Id=83, Status=ACTIVE Data Root=/Users/kgoderis/smarthome-master/ws/.metadata/.plugins/org.eclipse.pde.core/SmartHome Runtime/org.eclipse.osgi/83/data
"Registered Services"
{org.osgi.service.cm.ManagedService}={service.pid=smarthome.rule.configuration, service.id=106, service.bundleid=83, service.scope=singleton}
{org.eclipse.smarthome.automation.template.TemplateRegistry}={service.id=107, service.bundleid=83, service.scope=singleton}
{org.eclipse.smarthome.automation.type.ModuleTypeRegistry}={service.id=108, service.bundleid=83, service.scope=singleton}
{org.eclipse.smarthome.core.events.EventFactory}={service.id=109, service.bundleid=83, service.scope=singleton}
{org.eclipse.smarthome.automation.RuleRegistry}={service.id=110, service.bundleid=83, service.scope=singleton}
{org.eclipse.smarthome.automation.RuleProvider}={service.id=174, service.bundleid=83, service.scope=singleton}
Services in use:
{org.osgi.service.event.EventHandler, org.eclipse.smarthome.core.events.EventPublisher}={event.topics=smarthome, component.name=org.eclipse.smarthome.core.internal.events.OSGiEventManager, component.id=55, service.id=129, service.bundleid=92, service.scope=bundle}
{org.eclipse.smarthome.automation.handler.ModuleHandlerFactory}={service.id=112, service.bundleid=85, service.scope=singleton}
{org.eclipse.smarthome.automation.handler.ModuleHandlerFactory}={service.id=111, service.bundleid=84, service.scope=singleton}
which seems to me that the HandlerFactory is in place as it should be, but for some reason the ModuleHandlerFactory.getHandler(), which does the interalCreate(), is never called?
Karel
[Updated on: Fri, 08 January 2016 15:14] Report message to a moderator
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 12:46:04 GMT 2024
Powered by FUDForum. Page generated in 0.03075 seconds
|