Null Pointer Exceptions this morning


#1

Is there a system outage or is it just me? Most of my pistons failed to execute this morning… I’m seeing in the logs a Null Pointer Excpetion: Nothing had changed on my end. I noticed in one of my pistons, I’m getting it when doing a time() call. Here are some of my logs:

12/2/2018, 10:00:00 PM +424ms
+1ms	╔Received event [MyHome].routineExecuted = e22ad098-782a-4abf-abd0-63cbe2466fd6 with a delay of 107ms
+236ms	║Runtime (38588 bytes) successfully initialized in 140ms (v0.3.108.20180906) (234ms)
+238ms	║╔Execution stage started
+255ms	║║Executed virtual command wait (1ms)
**+257ms	║║An error occurred while executing the event: java.lang.NullPointerException**
+259ms	║╚Execution stage complete. (22ms)
+261ms	╚Event processed successfully (261ms)
12/2/2018, 9:08:47 PM +438ms
+1ms	╔Received event [MyHome].routineExecuted = e22ad098-782a-4abf-abd0-63cbe2466fd6 with a delay of 79ms
+166ms	║Runtime (38586 bytes) successfully initialized in 93ms (v0.3.108.20180906) (164ms)
+167ms	║╔Execution stage started
+185ms	║║Executed virtual command wait (1ms)
+187ms	║║An error occurred while executing the event: java.lang.NullPointerException
+190ms	║╚Execution stage complete. (22ms)
+191ms	╚Event processed successfully (191ms)
12/2/2018, 4:57:13 AM +120ms
+1ms	╔Received event [MyHome].time = 1543744634450 with a delay of -1330ms
+200ms	║Runtime (38555 bytes) successfully initialized in 124ms (v0.3.108.20180906) (199ms)
+202ms	║╔Execution stage started
+223ms	║║Executed [Front Door Lights].off (4ms)
+1976ms	║║Executed [Stairs Light].off (1751ms)
+2067ms	║║Executed virtual command setLocationMode (85ms)
+2070ms	║╚Execution stage complete. (1869ms)
+2072ms	╚Event processed successfully (2072ms)

#2

I also see this log message in one of my pistons:
|12/3/2018, 1:39:59 AM +89ms|
|+206ms|║Actual sunrise and sunset times are unavailable; please reset the location for your hub|
|12/2/2018, 4:58:59 PM +152ms|
|+259ms|║Actual sunrise and sunset times are unavailable; please reset the location for your hub|


#3

Also seeing the variable $nextScheduledTime = Invalid Date. And all of my pistons say “Next Scheduled: Never”


#4

Did something get updated in your account? Maybe verify your timezone in the ST app (classic)


#5

Where do I do that? I don’t see any option to set a time zone


#6

Move your current location to something else (far far away), then move it back to the correct setting.


#7

Ok. I just checked the IDE, I have two hubs. One correctly shows America/New York… This hub, however, is blank…

Just tried your suggestion and it seems to have corrected the issue. Both hubs now show America/New York. The scheduled pistons now show a next execution time.

One question, however, I still see the variable $nextScheduledTime = Invalid Date. Is that a problem?


#8

Not sure about that… open the piston and see if it updates.


#9

Well… It doesn’t seem to be updating, but it doesn’t seem to be affecting anything either. So I don’t know. I also notice that the $device and $devices variables are also grayed out and say “Location”, which looks similar to the $nextScheduledTime variable, is that normal?


#10

Post a pic of where you’re seeing this… Monday morning, my brain functions are limited.


#11


#12

Mine shows the same thing, I’m guessing it’s normal