[RELEASE] Hub Information Driver

I'm getting this in the logs (C-5 Hub) with the latest version (security on): [Interestingly - no issues on the C-7 Hub]...

dev:13942022-09-18 07:16:04.547 pm warngroovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

The current character read is '<' with an int value of 60
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0

^

dev:13942022-09-18 07:06:03.795 pm warngroovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

The current character read is '<' with an int value of 60
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0

^

dev:13942022-09-18 06:56:03.170 pm warngroovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

The current character read is '<' with an int value of 60
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0

^

dev:13942022-09-18 06:46:02.413 pm warngroovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

The current character read is '<' with an int value of 60
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0

^

Also seeing this on a C7

Yes. Same error here, every five minutes:

[dev:99](https://hubitat.local/logs?device=99#pastdev99)2022-09-18 21:40:27.920 [warn] groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

The current character read is '<' with an int value of 60
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0

Hubitat C-7 / 2.3.2.141
Hub Info Version 2.7.2

That one is due to a timing issue (driver making a call before the hub is ready). v2.7.4 (out now) should eliminate that error message.

Will it eventually show the Z-Wave radio firmware version as well?

It does now for the C7, not available for models prior.

My apologies for asking a duplicate question, before I had scrolled back and read more thoroughly. Thanks!
Beautiful work as always!!

No worries, I had to stop and think about it too.

1 Like

Here's the latest from 2.7.4 on a C7 w/2.3.3.117 (beta) Thanks again for your work on this and your many other contributions to the Hubitat community.

dev:20982022-09-19 05:42:14.147 amerrorgroovy.lang.MissingMethodException: No signature of method: java.lang.NullPointerException.indexOf() is applicable for argument types: (java.lang.String) values: [Unable to determine the current character,] Possible solutions: inject(groovy.lang.Closure), findIndexOf(groovy.lang.Closure) on line 931 (method getHub2)

More readable?

Same here on all my hubs.

New errors with 2.7.4:

[dev:99] 2022-09-19 06:42:40.575 [error] groovy.lang.MissingMethodException: No signature of method: groovy.json.JsonException.indexOf() is applicable for argument types: (java.lang.String) values: [Unable to determine the current character,]

I definitely shouldn't try to put in a small patch while half asleep, missed that big time... Sorry about that, v2.7.5 now out

4 Likes

Hi @thebearmay,
I'm on latest version but still getting the same message (C7 -> 2.3.2.141; securityInUse : false):

dev:14732022-09-19 14:29:11.901 warnjava.lang.NullPointerException: Cannot get property 'baseModel' on null object

dev:14732022-09-19 14:29:11.808 traceHub Information Driver 2.7.5 initialized

dev:14732022-09-19 14:28:56.623 warnjava.lang.NullPointerException: Cannot get property 'baseModel' on null object

Frustrating as I can't duplicate... back to poking and guessing...

Edit: v.2.7.6 should squash this once and for all...

4 Likes

Still the same:

dev:14732022-09-19 17:35:10.792 warnjava.lang.NullPointerException: Cannot get property 'baseModel' on null object

dev:14732022-09-19 17:35:10.689 traceHub Information Driver 2.7.6 initialized

dev:14732022-09-19 17:35:08.884 warnjava.lang.NullPointerException: Cannot get property 'baseModel' on null object

Argh.... That feeling when you smash a bug only to find out that you exposed one that has been setting dormant. Let's try this again v2.7.7

9 Likes

Hey @thebearmay thanks for your persistence in chasing this down and particularly for your responsiveness and immediate fixes!

4 Likes

Error message is gone after the 2.7.7. update.
Thank you very much.

4 Likes

Agreed. Hub Information v2.7.7 is a winner. No errors now. Thanks!

5 Likes

I updated my HE to 2.3.3.121, then to 2.3.3.122, and somewhere along the way my HID preferences got reset to defaults and the default hubInfoTemplate.res file content got replaced with a single word null (which made my html output also null). My custom .res file was still there and still correct, so I re-entered my own file name as well as my other preferences and now things are back to normal. I didn't expect that an HE update would reset HID.

1 Like