Failed notifying listener 'org.openhab.core.persistence.internal.PersistenceManagerImpl@xxxxx' about state update of item xxxx: null

I’m see the following error almost every 5 minutes in the openhab.log:

`failed notifying listener ‘org.openhab.core.persistence.internal.PersistenceManagerImpl@58f4d441’ about state update of item HmIPSRD00275BExxxxxx_RssiDevice: null

java.lang.IndexOutOfBoundsException: null
at java.nio.Buffer.checkIndex(Buffer.java:687) ~[?:?]
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:169) ~[?:?]
at org.mapdb.DataInput2.readUnsignedByte(DataInput2.java:74) ~[?:?]
at org.mapdb.DataInput2.unpackInt(DataInput2.java:184) ~[?:?]
at org.mapdb.SerializerBase.deserializeString(SerializerBase.java:858) ~[?:?]
at org.mapdb.SerializerBase.deserialize(SerializerBase.java:1094) ~[?:?]
at org.mapdb.SerializerBase.deserialize(SerializerBase.java:867) ~[?:?]
at org.mapdb.SerializerPojo.deserialize(SerializerPojo.java:705) ~[?:?]
at org.mapdb.BTreeMap$NodeSerializer.deserialize(BTreeMap.java:449) ~[?:?]
at org.mapdb.BTreeMap$NodeSerializer.deserialize(BTreeMap.java:288) ~[?:?]
at org.mapdb.Store.deserialize(Store.java:297) ~[?:?]
at org.mapdb.StoreDirect.get2(StoreDirect.java:486) ~[?:?]
at org.mapdb.StoreWAL.get2(StoreWAL.java:336) ~[?:?]
at org.mapdb.StoreWAL.get(StoreWAL.java:320) ~[?:?]
at org.mapdb.Caches$HashTable.get(Caches.java:246) ~[?:?]
at org.mapdb.EngineWrapper.get(EngineWrapper.java:58) ~[?:?]
at org.mapdb.BTreeMap.put2(BTreeMap.java:677) ~[?:?]
at org.mapdb.BTreeMap.put(BTreeMap.java:643) ~[?:?]
at org.openhab.persistence.mapdb.internal.MapDbPersistenceService.store(MapDbPersistenceService.java:186) ~[?:?]
at org.openhab.core.persistence.internal.PersistenceManagerImpl.handleStateEvent(PersistenceManagerImpl.java:152) ~[?:?]
at org.openhab.core.persistence.internal.PersistenceManagerImpl.stateChanged(PersistenceManagerImpl.java:473) ~[?:?]
at org.openhab.core.items.GenericItem.lambda$1(GenericItem.java:259) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
`

HmIPSRD00275BExxxxxx_RssiDevice is defined as number and it will receive negative values (for example: -81). I have no idea why this happens and how to get rid of the error. Anyone saw this before?

I get the same failure message for one of my items. I have openHAB 4.2.2 installed and the item gets persisted by influxdb. Actually the persisting works as expected.

The exact failure message is as follows:

failed notifying listener 'org.openhab.core.persistence.internal.PersistenceManagerImpl@ac11b30' about state update of item E3_SD6_Leistung: null

java.lang.ArithmeticException: null

I have configured my persistence by a textual file. It is the only item creating this problem, but it is also the only by which I have applied filters. When removing the filters, the warnings disappear. However, when applying the filters, it also works without warning for about 2 days. Only after a certain period the “null” warnings start to appear. When I re-save the persistence configuration file, the warnings immediately disappear.

The “notTheseStates” I already added in order to try to surpress the issue. But it doesn´t make any difference. I could also remove it again.

Strategies {
    default = everyChange
    ...
}

Filters {
  tenPercent : > % 10
  twentyPercent : > % 20
  thirtySeconds : T 30 s
  notTheseStates : ! "null", "NULL"
}

Items {
  E3_SD6_Leistung : filter = twentyPercent, thirtySeconds, notTheseStates
  ...
}