big loop is not supported now
See original GitHub issueIf eval a expression like list = []; for (int i = 0; i < 521; i++) { list.add(i) }
will cause
Caused by: java.lang.NoSuchMethodException: ASMAccessorImpl_80404262315883800703666.<init>(org.mvel2.compiler.ExecutableStatement)
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getConstructor(Class.java:1825)
at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer._initializeAccessor(ASMAccessorOptimizer.java:768)
at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.compileAccessor(ASMAccessorOptimizer.java:895)
... 20 common frames omitted
2020-05-02 08:41:10 [as-command-execute-daemon] WARN c.t.a.c.command.klass100.MvelCommand -mvel: failed execute express: list = []; for (int i = 0; i < 521; i++) { list.add(i) }
but eval list = []; for (int i = 0; i < 5; i++) { list.add(i) }
will be OK.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
loop is not working · Issue #182 · processing/processing-video
I have a movie and it does not loop. Since the code is compiled without the sources and I have no spare time...
Read more >Loop is not working as expected on the pyspark dataframe
I am trying to create a loop on the list and check if those variables are null or not in the dataframe. Then...
Read more >Updating/Rebuilding - LoopDocs - GitHub Pages
No big deal...use the Updating Steps to check that your new computer has the required compatible versions and then build your app.
Read more >Youtube Video Loop Not Working
Youtube Video Loop Not Working. We are going to be using the Divi theme to create some great effects in this series of...
Read more >Why Loop Components Have Some Compliance Problems
Using Loop components in Teams chats and OWA seems like a great idea ... The content search preview does not support files containing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thank you, jugg is deprecated, and arthas-mvel is using official mvel now.
Glad to hear it. OptimizerFactory.setDefaultOptimizer(“reflective”) is a workaround and may have performance drawbacks since it prevents MVEL from switching over to compiled mode when an expression is evaluated repeatedly. Depending on your needs this might be acceptable. Your code base uses a 13 months old copy of mvel (https://github.com/XhinLiang/jugg/commits/master/src/main/java/org/mvel2) so you’re missing fixes like #219 which might be relevant in this case. I suggest closing this issue since it has no actionable item in the main code base.