I’m getting some strange error message in astrobinding on OH2 my guess is that I’m doing some stupoid misstake as usually when things won’t work. Hope anyone has som input for me.
2017-05-04 07:49:03.052 [ERROR] [org.quartz.core.JobRunShell ] - Job astro:sun:local.job-daily-startup-sun threw an unhandled Exception:
java.lang.NullPointerException
at org.eclipse.smarthome.binding.astro.internal.util.DateTimeUtils.applyConfig(DateTimeUtils.java:180)[218:org.eclipse.smarthome.binding.astro:0.9.0.201704261358]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:71)[218:org.eclipse.smarthome.binding.astro:0.9.0.201704261358]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[218:org.eclipse.smarthome.binding.astro:0.9.0.201704261358]
at org.eclipse.smarthome.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:35)[218:org.eclipse.smarthome.binding.astro:0.9.0.201704261358]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[218:org.eclipse.smarthome.binding.astro:0.9.0.201704261358]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[218:org.eclipse.smarthome.binding.astro:0.9.0.201704261358]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201704261358]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201704261358]
It seems like it collects the right position about where I am since I got sinrise times and so on but somethings seems to be missing. My problem occurs all the time when I start OH.
Obviously same problem here. But I found out that using my latitude (53.141020) while changing longitude from 7.6 to 7.5 (and all other values below) causes the error. Error occurs just after saving my things file.
7.6 is ok, 7.5 fails
From what I could understand there’s no reason to beleive that I would need to recreate my things since this is my first install off Astrobinding anda I’m on 2.1 snapshot and installed binding from paper UI. Also my longitude is high above 7 I’ve no idea really wath’s cuasding this but I’m alwasy interested in having a system running without errors.
Have same issue. Seem creating a identical astro entry with a new name doesn’t have the issue. I’m suspecting something cached from a previous version of openhab.
Same for me. Receiving this error since two days. Maybe it is related to this PR #2208. The binding has moved to ESH repo.
2017-05-11 00:00:00.135 [ERROR] [org.quartz.core.JobRunShell ] - Job astro:sun:local.job-daily-sun threw an unhandled Exception:
java.lang.NullPointerException
at org.openhab.binding.astro.internal.util.DateTimeUtils.applyConfig(DateTimeUtils.java:180)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:71)[276:org.openhab.binding.astro:2.1.0.2017042
51938]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[276:org.openhab.binding.astro:2.1.0.2017042
51938]
at org.openhab.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:43)[276:org.openhab.binding.astro:2.1.0.2017042519
38]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[276:org.openhab.binding.astro:2.1.0.2017042519
38]
at org.openhab.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[105:org.eclipse.smarthome.core.scheduler:0.9.0.b4]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[105:org.eclipse.smarthome.core.scheduler:0.9.0.b4]
2017-05-11 00:00:00.139 [ERROR] [org.quartz.core.ErrorLogger ] - Job (astro:sun:local.job-daily-sun threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)[105:org.eclipse.smarthome.core.scheduler:0.9.0.b4]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[105:org.eclipse.smarthome.core.scheduler:0.9.0.b4]
Caused by: java.lang.NullPointerException
at org.openhab.binding.astro.internal.util.DateTimeUtils.applyConfig(DateTimeUtils.java:180)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:71)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.openhab.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:43)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.openhab.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[276:org.openhab.binding.astro:2.1.0.201704251938]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[105:org.eclipse.smarthome.core.scheduler:0.9.0.b4]
... 1 more
Same here since a couple of days even after updating to the latest snapshot from yesterday, time for opening an issue?
2017-05-16 00:00:00.209 [ERROR] [org.quartz.core.JobRunShell ] - Job astro:sun:shutterkitchen.job-daily-sun threw an unhandled Exception:
java.lang.NullPointerException
at org.eclipse.smarthome.binding.astro.internal.util.DateTimeUtils.applyConfig(DateTimeUtils.java:180)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:71)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:35)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201705120951]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201705120951]
2017-05-16 00:00:00.218 [ERROR] [org.quartz.core.ErrorLogger ] - Job (astro:sun:shutterkitchen.job-daily-sun threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201705120951]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201705120951]
Caused by: java.lang.NullPointerException
at org.eclipse.smarthome.binding.astro.internal.util.DateTimeUtils.applyConfig(DateTimeUtils.java:180)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:71)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:35)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.eclipse.smarthome.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[187:org.eclipse.smarthome.binding.astro:0.9.0.201705120951]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201705120951]
... 1 more
2017-05-16 00:00:00.219 [ERROR] [org.quartz.core.JobRunShell ] - Job astro:sun:5d939aab.job-daily-sun threw an unhandled Exception:
java.lang.NullPointerException
at org.openhab.binding.astro.internal.util.DateTimeUtils.applyConfig(DateTimeUtils.java:180)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:71)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:43)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201704011656]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201704011656]
2017-05-16 00:00:00.224 [ERROR] [org.quartz.core.ErrorLogger ] - Job (astro:sun:5d939aab.job-daily-sun threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201704011656]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201704011656]
Caused by: java.lang.NullPointerException
at org.openhab.binding.astro.internal.util.DateTimeUtils.applyConfig(DateTimeUtils.java:180)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:71)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:43)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.openhab.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[201:org.openhab.binding.astro:2.1.0.201704170008]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[105:org.eclipse.smarthome.core.scheduler:0.9.0.201704011656]
… 1 more
I am still running a version of the binding from before the move to the eclipse smarthome repository. The error seems to have been there all the time already.
Further to this, I also notice some of the channel triggers are missing. I only noticed the Nullpointer Exception when investigated one of my rules where the 'astro:sun:5d939aab:daylight#event' was not triggered while the 'astro:sun:5d939aab:rise#event' was.
Further analysis of the event logs shows the following over a 24h period with one defined sun thing:
The problem is, that the astro-binding has moved to the esh-repo and it look like that the binding is is not rebuilded with the the last snapshots. It is still on version 201700512.
The real problem is that in lower latitudes it is not possible to calculate dark-night and astro-dusk. A workaround is to lower the latitude to values lower then 50 … I set my latitude in the Monent to 45 and than all values can be calculated and the NPE has gone. That is only a workaround since the fix is moved to the snapshot.
Moving my house from the northern part of Germany to the northern part of Italy did the trick
So let’s wait for the fix make it into the binding …
What I don’t understand though: @FrankR and @GallaS are reporting having the latest snapshot (20170520), why did the fix not make it into that version?