question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

big loop is not supported now

See original GitHub issue

If 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
XhinLiangcommented, May 3, 2020

thank you, jugg is deprecated, and arthas-mvel is using official mvel now.

0reactions
MalcolmOddcommented, May 3, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found