Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 25
Level 3
deana66659071
Level 3

Likes

10 likes

Total Posts

99 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
deana66659071
Level 3

Likes

10 likes

Total Posts

99 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
deana66659071
Level 3

17-02-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

17-02-2017

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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 25
Level 3
deana66659071
Level 3

Likes

10 likes

Total Posts

99 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
deana66659071
Level 3

Likes

10 likes

Total Posts

99 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
deana66659071
Level 3

20-02-2017

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

Thanks,

-Dean