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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
Adobe Summit 2023 | Complete list of AEM Sessions & Labs
SOLVED

Sling Error on Page Exceeding Bytes Limit

Avatar

Level 1

The code of method render(PrintWriter, Bindings, Bindings, RenderContext) is exceeding the 65535 bytes limit

I'm just extending the functionality of an existing component and I am now receiving this error. If I remove a certain amount of the code (Any code) The component functions properly again.

Does anyone have any solutions to this?

Version: 6.4.6.0

1 Accepted Solution

Avatar

Correct answer by
Level 3

I believe if the code exceeding the specific limit in given file you will see this exception. You need to have the logic split in 2 different file.

I followed the same approach and it worked.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

I believe if the code exceeding the specific limit in given file you will see this exception. You need to have the logic split in 2 different file.

I followed the same approach and it worked.