[SOLVED] WARNING - latest SNAPSHOT 1276

I am getting these WARNINGs after updating to the latest snapshot 1276

These are all related to rules using the Member of trigger

2018-05-15 07:56:19.892 [WARN ] [pse.smarthome.core.items.GenericItem] - failed notifying listener 'org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl@51c2828' about state update of item EntryDoors: null

java.lang.NullPointerException: null

	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.internalGetChangeRules(RuleTriggerManager.java:336) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]

	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.internalGetRules(RuleTriggerManager.java:427) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]

	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.getRules(RuleTriggerManager.java:198) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]

	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl.stateChanged(RuleEngineImpl.java:202) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]

	at org.eclipse.smarthome.core.items.GenericItem$1.run(GenericItem.java:251) [101:org.eclipse.smarthome.core:0.10.0.201805141751]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

Could you please enter an issue at https://github.com/eclipse/smarthome/issues? Thanks!

Done - Issue #5578

1 Like

I get the same bug with S1276 and I don’t use Member of in my rules.

2018-05-15 13:02:48.716 [WARN ] [pse.smarthome.core.items.GenericItem] - failed notifying listener 'org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl@7328ff43' about state update of item FibBut01_Scene: null
java.lang.NullPointerException: null
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.internalGetChangeRules(RuleTriggerManager.java:336) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.internalGetRules(RuleTriggerManager.java:427) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleTriggerManager.getRules(RuleTriggerManager.java:198) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl.stateChanged(RuleEngineImpl.java:202) [136:org.eclipse.smarthome.model.rule.runtime:0.10.0.201805141751]
	at org.eclipse.smarthome.core.items.GenericItem$1.run(GenericItem.java:251) [101:org.eclipse.smarthome.core:0.10.0.201805141751]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]

rule:

rule    "Fibaro Button 01 Pushing"
when
        Item FibBut01_Scene changed
then
        var     Number dimValue = 0
        switch (FibBut01_Scene.state) {
                case 1.0: {
                        logInfo("FB01", "FB01 1x pushed, set Lights at 0%")
                        dimValue = 0
                }
                case 1.1: {
                        logInfo("FB01", "FB01 1x let go, set Lights at 10%")
                        dimValue = 10
                }
                case 1.2:       {
                        logInfo("FB01", "FB01 1x kept in, set Lights at 50%")
                        dimValue = 50
                }
                case 1.3:       {
                        logInfo("FB01", "FB01 2x pushed, set Lights at 100%")
                        dimValue = 100
                }
                case 1.4:       {
                        logInfo("FB01", "FB01 3x pushed, set Lights at 3%")
                        dimValue = 3
                }
                case 1.5:       {
                        logInfo("FB01", "FB01 4x pushed, set Lights at 2%")
                        dimValue = 2
                }
                case 1.6:       {
                        logInfo("FB01", "FB01 5x pushed, set Lights at 1%")
                        dimValue = 1
                }
                default:        {
                        logInfo("FB01", "FB01 State is: " + FibBut01_Scene.state)
                }
        }
        WDim01_Dim.sendCommand(dimValue)
end

I will monitor the issue @ github and wait for a new snapshot :slight_smile:

falling back (downgrading S1276) to S1275 for now :slight_smile:

apt-get update
apt-get install openhab2=2.3.0~20180514152051-1

I can confirm, it is not only for “member of” rules - I already have a fix and am just about to also write some test cases to avoid such regressions in future! We will have a new distro by tonight.

1 Like

no worries. We like Snapshot testing :slight_smile:

No problems, this is what snapshots are for…
Thanks

Could you try distro #1277 and check whether your problems are solved? To me it looks good so far.

confirmed

bada bing, bada boom… logs are sparky clean again with S1277 :+1: