Hi all, I have an issue with Lucee if the cfml fil...
# cfml-general
a
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
Have you tried the fix suggested in the error message?
a
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
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
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
Refactoring your code, Lucee tries to workaround these limitations but doesn't always succeed
a
All right, Thank you @zackster for your valuable input.