Issue
"Illegal access to constructor com.snc.on_call_rotation.on-call rotation()" error while accessing On-Call functionalities.
Release
All releases
Cause
Script Include OnCallRotation has been customized.
Resolution
Line no 9 of the Script field uses the fully qualified package path for the OnCallRotation java class:
this.onCallRota = new Packages.com.snc.on_call_rotation.OnCallRotation();
Instead of this, use the recommended GlideScriptable class "SncOnCallRotation" in its place and that should take care of the issue. So the previously mentioned line of code now becomes:
this.onCallRota = new SncOnCallRotation();