diff --git a/src/main/java/org/openhab/automation/jrule/internal/handler/JRuleHandler.java b/src/main/java/org/openhab/automation/jrule/internal/handler/JRuleHandler.java index e3b58ef8..c86a7540 100644 --- a/src/main/java/org/openhab/automation/jrule/internal/handler/JRuleHandler.java +++ b/src/main/java/org/openhab/automation/jrule/internal/handler/JRuleHandler.java @@ -210,12 +210,12 @@ private void createRuleInstances() { JRuleItemRegistry.clear(); // Reload Items class - this will also instantiate all items and load them to the registry try { - Class cls = Class.forName(config.getGeneratedItemPackage() + ".Items", true, loader); + Class cls = Class.forName(config.getGeneratedItemPackage() + ".JRuleItems", true, loader); cls.getDeclaredConstructor().newInstance(); - logger.info("Instantiated Items class"); + logger.info("Instantiated JRuleItems class"); } catch (ClassNotFoundException | IllegalAccessException | NoSuchMethodException | InstantiationException | InvocationTargetException e) { - logger.error("Could not instantiate Items file {}", e.toString()); + logger.error("Could not instantiate JRuleItems file {}", e.toString()); } // Load rules that refer to the items