ProxyAsyncScriptableFactory uses the deprecated asynchronous API provided by the 'granite' namespace | Community
Skip to main content
Level 4
February 17, 2017
Solved

ProxyAsyncScriptableFactory uses the deprecated asynchronous API provided by the 'granite' namespace

  • February 17, 2017
  • 2 replies
  • 3762 views

I'm seeing these errors all over my log files and would like to clean them up.

~~15.02.2017 12:57:57.609 *WARN* [10.1.51.108 [1487188677505] GET /content/home/help/products/prism-tv/parental-controls/locking-channels-using-prism-parental-controls.html HTTP/1.1] org.apache.sling.scripting.sightly.js.impl.jsapi.ProxyAsyncScriptableFactory Script /apps/ewcm/components/global/scripts/head.js uses the deprecated asynchronous API provided by the 'granite' namespace. Please refactor the script to use the synchronous API provided by the org.apache.sling.scripting.javascript bundle.

I've attached the head.js file here as well.

Do I need to rewrite this javascript?

Thank you in advance.

-Dean

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Is this in response to a custom component that you programmed? If yes - are you using a deprecated API?

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
February 17, 2017

Is this in response to a custom component that you programmed? If yes - are you using a deprecated API?

Level 4
February 20, 2017

Changed the references in the USE-API .... no longer use ResourceUtils .... updated file is attached.

Thanks,

-Dean

gayatrik8153299
Level 2
July 29, 2020
should we update ootb head.js file?