ProxyAsyncScriptableFactory 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. | Community
Skip to main content
gayatrik8153299
Level 2
Jul 29, 2020 10:52 AM UTC
Solved

ProxyAsyncScriptableFactory 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.

Hi,

We are getting some warning messages in logs.

 

28.07.2020 01:15:11.225 *WARN* [10.43.32.87 [1595898911218] GET /content/diagnostics/be/en/products/product-category/clinical-chemistry-and-immunochemistry.html HTTP/1.1] org.apache.sling.scripting.sightly.js.impl.jsapi.ProxyAsyncScriptableFactory Script /libs/wcm/foundation/components/page/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.

 

Could you please let us know how to resolve this.

we have been upgraded from aem 6.2 to 6.4

is this upgrade issue or we need to update head.js file or any API.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
user05162Accepted solution
Employee
Jul 29, 2020 3:23 PM UTC

This is expected and by default, there is a logger to exclude these kind of warnings from error.log. See below:

 

If similar logger does not exist under /system/console/slinglog. Go ahead and create one and make sure the log level is set to ERROR so that these warnings are not shown in error.log

 

6 replies

user05162Accepted solution
Employee
Jul 29, 2020 3:23 PM UTC

This is expected and by default, there is a logger to exclude these kind of warnings from error.log. See below:

 

If similar logger does not exist under /system/console/slinglog. Go ahead and create one and make sure the log level is set to ERROR so that these warnings are not shown in error.log

 

Translate
ChitraMadan
New Participant
Jul 29, 2020 11:24 AM UTC
gayatrik8153299
Level 2
Jul 29, 2020 11:41 AM UTC
Yes i could see..can i know is the issue resolved?
Translate