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.

Mvel not working with Java 10 (11)

See original GitHub issue

Mvel is throwing exceptions with Java 10

java.lang.VerifyError: (class: ASMAccessorImpl_12980986021528934154020, method: setValue signature: (Ljava/lang/Object;Ljava/lang/Object;Lorg/mvel2/integration/VariableResolverFactory;Ljava/lang/Object;)Ljava/lang/Object;) Illegal type in constant pool
    at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3090)
    at java.base/java.lang.Class.getConstructor0(Class.java:3295)
    at java.base/java.lang.Class.newInstance(Class.java:532)
    at org.mvel//org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer._initializeAccessor(ASMAccessorOptimizer.java:757)
    at org.mvel//org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.optimizeSetAccessor(ASMAccessorOptimizer.java:663)
    at org.mvel//org.mvel2.optimizers.dynamic.DynamicSetAccessor.optimize(DynamicSetAccessor.java:83)
    at org.mvel//org.mvel2.optimizers.dynamic.DynamicSetAccessor.setValue(DynamicSetAccessor.java:60)
    at org.mvel//org.mvel2.compiler.CompiledAccExpression.setValue(CompiledAccExpression.java:59)
    at org.mvel//org.mvel2.ast.DeepAssignmentNode.getReducedValueAccelerated(DeepAssignmentNode.java:90)
    at org.mvel//org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:42)
    at org.mvel//org.mvel2.MVEL.executeExpression(MVEL.java:968)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
zregvartcommented, Jul 13, 2018

I’ve managed to get MVEL working on Java 10 by using a dependency from jitpack.io.

This is what needs to be added to your Maven POM.

I would appreciate an official release published to Maven Central.

0reactions
Maia-Everettcommented, Jun 1, 2020

Is this fixed in 2.4.8? Using the jitpack snapshot for now but looking for the possibility of upgrading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MVEL not working as desired for empty comparison
All three are related to MVEL issues. For the Q1 and Q2 ,. For empty operator, MVEL has a class BlankLiteral , and...
Read more >
MVEL (mvel 2.0 API) - javadoc.io
IOException - Exception thrown if there is an IO problem accessing the file. evalFile. public static java.lang.Object evalFile(java.io.File file, java.lang.
Read more >
Chapter 23. MVEL Red Hat Fuse 7.6
MVEL is a Java-based dynamic language that is similar to OGNL, but is reported to be much faster. The MVEL support is in...
Read more >
MVEL
MVEL is an expression language based on Java-syntax, with some marked differences ... New lines are not substitutes for the use of the...
Read more >
Implement your own Rule-Engine (Java8 + SpringBoot + MVEL)
DSL or Domain Specific Language means, It's not a part of MVEL. ... Also, here input and output keywords represent the two java...
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