Piston throwing Java exception when setting LED strip level


#1

I have two Aeon labs LED strips. I have created a piston which sets the colors and levels and color change speed of these strips. It was working fine for last so many years. Couple of days ago, I just logged into webCore (after many months) to create a new piston (unrelated to the lights). As I was reviewing existing pistons, I noticed that the piston which changes the colors of LED had Java exceptions when trying to set the level of the LEDs.

Because of this error, the level cannot be changed and it stays at whatever level was set by the ST app. I do not know when exactly this started to happen.

The error does not happen on every execution. After I copied the error log, it somehow disappeared. But I see the Java exception every 2-3 days. I have searched this forum and found several similar issues, but no concrete resolution.

7/28/2020, 8:46:10 PM +183ms
+0ms	╔Received event [My Hub].time = 1595983571545 with a delay of -1362ms
+121ms	║RunTime Analysis CS > 18ms > PS > 53ms > PE > 50ms > CE
+124ms	║Runtime (40783 bytes) successfully initialized in 53ms (v0.3.110.20191009) (123ms)
+125ms	║╔Execution stage started
+162ms	║║Error while executing physical command LED Strip Bottom.setLevel([2]): java.lang.reflect.UndeclaredThrowableException
+164ms	║║Executed [LED Strip Bottom].setLevel (18ms)
+176ms	║║Error while executing physical command LED Strip Top.setLevel([2]): java.lang.reflect.UndeclaredThrowableException
+178ms	║║Executed [LED Strip Top].setLevel (12ms)
+184ms	║║Cancelling statement #4's schedules...
+195ms	║║Error while executing physical command LED Strip Bottom.setColor([[hex:    #FF0000, hue:0, saturation:100, level:50]]): java.lang.reflect.UndeclaredThrowableException
+197ms	║║Executed [LED Strip Bottom].setColor (10ms)
+205ms	║║Error while executing physical command LED Strip Top.setColor([[hex:    #FF0000, hue:0, saturation:100, level:50]]): java.lang.reflect.UndeclaredThrowableException
+207ms	║║Executed [LED Strip Top].setColor (9ms)
+218ms	║║Error while executing physical command LED Strip Bottom.setLevel([20]): java.lang.reflect.UndeclaredThrowableException
+220ms	║║Executed [LED Strip Bottom].setLevel (10ms)
+227ms	║║Error while executing physical command LED Strip Top.setLevel([20]): java.lang.reflect.UndeclaredThrowableException
+229ms	║║Executed [LED Strip Top].setLevel (8ms)
+233ms	║║Executed virtual command [LED Strip Bottom, LED Strip Top].wait (1ms)
+234ms	║║Requesting a wake up for Tue, Jul 28 2020 @ 8:51:10 PM EDT (in 300.0s)
+238ms	║╚Execution stage complete. (113ms)
+239ms	║Setting up scheduled job for Tue, Jul 28 2020 @ 8:51:10 PM EDT (in 299.996s)
+246ms	╚Event processed successfully (246ms)
7/25/2020, 10:44:13 PM +867ms
+139ms	║Error while executing physical command LED Strip Bottom.setLevel([2]): org.springframework.dao.InvalidDataAccessResourceUsageException: could not load an entity: [physicalgraph.device.DeviceTypeHandler    #e1820ff8-070c-4784-852f-fca521195621]; SQL [select devicetype0_.id as id116_0_, devicetype0_.version as version116_0_, devicetype0_.checksum as checksum116_0_, devicetype0_.code as code116_0_, devicetype0_.date_created as date5_116_0_, devicetype0_.device_type_id as device6_116_0_, devicetype0_.handler_version as handler7_116_0_, devicetype0_.last_updated as last8_116_0_, devicetype0_.state as state116_0_ from device_type_handler devicetype0_ where devicetype0_.id=?]; nested exception is org.hibernate.exception.SQLGrammarException: could not load an entity: [physicalgraph.device.DeviceTypeHandler    #e1820ff8-070c-4784-852f-fca521195621]
+152ms	║Error while executing physical command LED Strip Top.setLevel([2]): java.lang.reflect.UndeclaredThrowableException
+164ms	║Error while executing physical command LED Strip Bottom.setColor([[hex:    #FFD700, hue:14, saturation:100, level:50]]): java.lang.reflect.UndeclaredThrowableException