Error related to Json Storage

I was wondering if anyone has run into this, after updating to (openHAB 2.5.0 Build #1568), I noticed the following errors? And all of a sudden my rules stopped working? Control works, but automation doesn’t?

I’m running RasPi

2019-04-14 06:57:04.576 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@1b92255'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.589 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@1c1ac7c'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.597 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@62ab67'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.603 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@9bb288'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.608 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@1fe4d4f'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.613 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@e787d3'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.618 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@1019b0d'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.628 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@e88669'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.633 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@a1c498'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.639 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@7fc3d3'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.644 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@145ad36'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.681 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@9e762'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.689 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@14296dd'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.695 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@12c37f1'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.segments

2019-04-14 06:57:04.701 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@394438'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.717 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@fd44d8'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.726 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@a0ff13'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.

2019-04-14 06:57:04.730 [ERROR] [me.storage.json.internal.JsonStorage] - Couldn't deserialize value 'org.eclipse.smarthome.storage.json.internal.StorageEntry@1305219'. Root cause is: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at path $.channels.


Thanks for the quick reply, so the quick fix is to rollback to 1562?

Yes, there is a bug in the current version, so until that is fixed it won’t work.

2 Likes

I have the same problem and rolled back to 2.5.0~S1566-1.
Everything is working, but all my Z-Wave devices show “UNINITIALIZED-BRIDGE UNINITIALIZED”.
I already replaced the things db with a backup, but the error persists.
Any ideas?

My guess is that the backups are all corrupted as the json database was writing corrupted data. I think others have had to reinitialise their things unfortunately.

I had an older, working backup, but seem to have the same problem as porthos

[INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM0'
[WARN ] [erial.internal.SerialPortManagerImpl] - No SerialPortProvider found for: /dev/ttyACM0

Restarting the Z-Wave binding via

ssh openhab@localhost -p8101 'bundle:restart org.openhab.binding.zwave'

as described in the other thread helps -zwave is running correctly after that.
But this is no permanent solution as it has to be done after every openhab restart.
Is this problem solved?

Yes - I believe it was fixed -:

Maybe I was not clear, I was referring to the

error that is forcing me to manually restart the zwave binding.
Is this solved, too?