Closed kaikreuzer closed 9 years ago
I can't reproduce this NPE. In the code default values have to be set after resolving all module types.
It happens every time when executing the launch config "org.eclipse.smarthome.automation.module.script.test", right after adding the rule. How does your log look like at that place?
I don't "Added rule 'javascript.rule1" in my console output
12:21:57.063 [Automation Provider Processing Queue] DEBUG o.e.s.a.core.internal.RuleEngine - Added rule 'javascript.rule1' 12:21:57.069 [Automation Provider Processing Queue] DEBUG o.e.s.c.c.r.AbstractManagedProvider - Added new element javascript.rule1 to ManagedRuleProvider. 12:21:57.088 [Automation Provider Processing Queue] DEBUG o.e.s.a.i.c.p.RuleResourceBundleImporter - Not importing rule 'javascript.rule1' since a rule with this id already exists 12:21:57.140 [ESH-safeCall-5] INFO smarthome.event.ItemStateEvent - MyTrigger updated to ON 12:21:57.148 [ESH-safeCall-5] INFO smarthome.event.RuleStatusInfoEvent - javascript.rule1 updated: NOT_INITIALIZED (CONFIGURATION_ERROR) 12:21:57.460 [ESH-safeCall-5] INFO smarthome.event.RuleAddedEvent - Rule 'javascript.rule1' has been added. 12:21:57.468 [ESH-safeCall-5] INFO smarthome.event.RuleStatusInfoEvent - javascript.rule1 updated: NOT_INITIALIZED (CONFIGURATION_ERROR) 12:21:57.488 [ESH-safeCall-5] INFO smarthome.event.RuleStatusInfoEvent - javascript.rule1 updated: NOT_INITIALIZED (CONFIGURATION_ERROR) 12:21:57.488 [ESH-safeCall-5] INFO smarthome.event.RuleStatusInfoEvent - javascript.rule1 updated: NOT_INITIALIZED (CONFIGURATION_ERROR) 12:21:57.490 [ESH-safeCall-5] INFO smarthome.event.RuleStatusInfoEvent - javascript.rule1 updated: IDLE
thanks, this seems to be solved
I have a rule that gets imported through the bundle importer. This seems to happen before the according module types are loaded and I get: