Unsubscribing from events throws ObjectDeletedException

Since the ST infrastructure upgrade on Oct 28th, my smart app started throwing an exception when executing the following code:

if (devices.contact) unsubscribe(devices.contact)

From the logs:

9:16:45 PM PDT: error org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [physicalgraph.app.EventSubscription#16c8b7d8-65f2-4f3a-b431-c43201736fab] @ line 722

There were no code changes in the smart app for the past couple of weeks.


@Tyler, @ben, do you guys have any suggestions how to resolve this? Lots of folks are having problem with Smart Alarm not disarming because of this bug. Thanks.

I sent it to our developers. I’ll follow up when I have some information.

Thanks for the report.

This should be fixed. Thanks again for letting us know.