2020-03-13 13:54:01.919 [ERROR] [b.core.service.AbstractActiveService] - Error while executing background thread Google Calendar Event Downloader
java.lang.NullPointerException: null
at org.openhab.io.gcal.internal.GCalEventDownloader.processEntries(GCalEventDownloader.java:280) ~[?:?]
at org.openhab.io.gcal.internal.GCalEventDownloader.execute(GCalEventDownloader.java:144) ~[?:?]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:169) [bundleFile:?]
Do someone has a clue what is happening here and how I can solve it?
@dimes To clean the cache use this at command line:
sudo systemctl stop openhab2
sudo openhab-cli clean cache
sudo systemctl start openhab2 or sudo reboot
BTW, that’s an old version of Gcal have you tried a newer version or checked to see that legacy bindings in enabled in PaperUI (not sure if OH is fresh install or upgrade)?
Also, if cleaning cache does not work set the log level to DEBUG or TRACE via the console for Gcal to see if you get any other info that may help.
I cleaned the cache… without success…
I set the log level to trace:
2020-03-13 20:45:39.159 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - Got calendar primary CalendarID: xxx.xxx@gmail.com
2020-03-13 20:45:39.162 [DEBUG] [io.gcal.internal.GCalEventDownloader] - Downloading calendar feed for time interval: 2020-03-13T20:45:39.161+01:00 to 2020-03-13T20:47:39.161+01:00
2020-03-13 20:45:39.172 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - Loaded credential
2020-03-13 20:45:39.174 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - device access token: xxx
2020-03-13 20:45:39.177 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - device refresh_token: xxx
2020-03-13 20:45:39.180 [DEBUG] [openhab.io.gcal.auth.GCalGoogleOAuth] - device expires_in: xxx
2020-03-13 20:45:39.457 [DEBUG] [io.gcal.internal.GCalEventDownloader] - found 3 calendar events to process
2020-03-13 20:45:39.460 [DEBUG] [io.gcal.internal.GCalEventDownloader] - found event 'Taufe' with no content, add this event to the excluded TimeRangesCalendar - this event could be referenced by the modifiedBy clause
2020-03-13 20:45:39.462 [ERROR] [b.core.service.AbstractActiveService] - Error while executing background thread Google Calendar Event Downloader
java.lang.NullPointerException: null
at org.openhab.io.gcal.internal.GCalEventDownloader.processEntries(GCalEventDownloader.java:280) ~[?:?]
at org.openhab.io.gcal.internal.GCalEventDownloader.execute(GCalEventDownloader.java:144) ~[?:?]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:169) [bundleFile:?]
In the OH configuration the Legacy 1.x Bindings are active… In the Add-ons I only see in MISC the version “misc-gcal1 - 1.14.0”. How can I get the latest version?
Hi, with your version and the additional debugging I found two errors in two events which I corrected and now it seems that everything is working again… So, no binding problem! Thank you for your support!!!
If you could describe the errors you found and how you corrected them, it would be helpful when I submit the binding code fix. (I forgot this code library is dead and no fixes will be implemented)