execute mid server script include from scoped application

kjmauriello
Mega Expert

I am trying to execute a MID server script include from a scoped application.

When I use var jp = new JavascriptProbe(this.midServer); I get ReferenceError: "JavascriptProbe" is not defined

When I use var jp = new global.JavascriptProbe(this.midServer);  I get this error: Exception: JavaException: java.lang.SecurityException: Illegal access to private script include JavascriptProbe in scope rhino.global being called from scope.x_............

I've tried with the MID server in global scope and in the application scope.

Any assistance would be greatly appreciated

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

This is because the script include JavascriptProbe must be accessible only from global scope; check that. you can make this and change accessible from all scope

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

The MID Server script include is in global when I called global.JavascriptProbe

Hi,

I am referring to the script Include JavascriptProbe and not mid server script include.

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

avid
Kilo Expert

Hi. Did you manage to sort it out?