Hi all,
I have an issue with Lucee if the cfml file is larger than 64KB. This shows a "Method code too large" error. Is there any solution to that kind of error?
I have attached the screenshot below.
m
Myka Forrest
02/21/2022, 10:10 PM
Have you tried the fix suggested in the error message?
a
Aasif
02/21/2022, 10:14 PM
Hi Myka,
I appreciate your quick response. I tried to break the code into several pieces and it worked very well. But that's not possible for me because I need to convert a whole website/project from CF to Lucee and I have many similar files.
z
zackster
02/21/2022, 10:26 PM
Lucee does try to split them underneath, but it fails sometimes. It won't be necessarily addressed for a while, but if you email me an example at zac@lucee.org we can use it to repo and address
a
Aasif
02/22/2022, 8:38 AM
Hi Zackster,
Thank you for your response.
If I'm not wrong this issue is because of JVM code length constraints, How can we fix this issue?
z
zackster
02/22/2022, 9:08 PM
Refactoring your code, Lucee tries to workaround these limitations but doesn't always succeed
a
Aasif
02/23/2022, 1:55 PM
All right, Thank you @zackster for your valuable input.