Skip to content

RuleEngineImpl getInjector returns null #5221

@bad-otter9

Description

@bad-otter9

Expected Behavior

RuleEngineImpl should invoke triggered rules without causing null exceptions.

Current Behavior

After invoking a scheduled rule or a trigger rule, the below error is logged.
The scheduled rule sets an audio device to mute in the evening.
The triggered rule reacts to a start day from the astron:sun:local add-on.

Error logged:
Time 07:26:54.551 Timestamp Dec 23, 2025, 7:26:54 AM Level ERROR Logger Class org.openhab.core.automation.internal.RuleEngineImpl Message Failed to execute rule '3fd3b6bbe5': Failed to execute action: 3(Cannot invoke "com.google.inject.Injector.getInstance(java.lang.Class)" because the return value of "org.openhab.core.model.script.ScriptStandaloneSetup.getInjector()" is null)

Possible Solution

Steps to Reproduce (for Bugs)

Context

Concerned that this may be caused by an improper upgrade.

Your Environment

openHAB 5.1.0
Release Build
Main UI Commit 69bf7f37

Operating system
Linux/6.12.57+deb13-amd64 (amd64)
Java Runtime
Eclipse Adoptium
21.0.9 (Temurin-21.0.9+10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of the Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions