-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illegal type in constant pool #27
Comments
I'm experiencing this problem too. |
Any updates on this issue? We are also suffering this issue when upgrading to Java 8. |
Hi Steveluo , |
@toamitmaurya |
I reproduced the same issue with Java8 and investigated little bit here and root cause seems to be here in case javaVersion 1.8, it is using OPCODES_VERSION = Opcodes.V1_2; for now, I went a head and updated locally, for Java version 1.8, using OPCODES_VERSION = Opcodes.V1_7; and it works!! |
@mkornipati : Could you please elaborate what you have done to fix the issue ? I am just confused where to change the String ( OPCODES_VERSION ). |
I met the same problem, and it is blocking me. How to solve this problem without changing JDK? |
Code within org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer should be fixed as shown in below article: Also, this code issue has been fixed in mvel2 2.2.0.Final version. |
Hi, Some one can suggest the any solution for below issue. i have added janino compiler after wrong class format, again i am getting some thing like below |
…el#27 - on unpatched sources it failes with Java8, patched it runs fine.
@mkornipati Hello Mohan - where have you published the alternate mvel-2.1.3-Final-Patch jar? I would like to use it. Please let me know. |
Thanks @dstine. Actually, I could locate the patch and diff. Its here as the top commit on this branch. https://github.com/mkornipati/mvel/tree/2.1.9.Final.Patch However, in order to use it, I need either of:
Both are elusive. When I try to build locally, I get this error: `[INFO] ------------------------------------------------------------------------
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
` Appreciate help on either of the above 2. |
I could do mvn package after downgrading current java to Java 7. Thanks. |
Ah, okay. FWIW, we used JDK 6u33. |
Hello @dstine ! Is this patch purported to fix the drools rules v5.0.1 compilation with Java 8? If that is the goal, it hasn't worked for me. Do you have any pointers for me? |
Environment:
Windows 7, amd64
MVEL: 2.1.7.Final, 2.1.4.Final
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b118)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b60, mixed mode)
**** COMPILER BUG! REPORT THIS IMMEDIATELY AT http://jira.codehaus.org/browse/mvel2
Expression: (name.first in persons)
Exception in thread "main" java.lang.VerifyError: (class: ASMAccessorImpl_4458843621386333353870, method: getKnownEgressType signature: ()Ljava/lang/Class;) Illegal type in constant pool
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2650)
at java.lang.Class.getConstructor0(Class.java:2956)
at java.lang.Class.newInstance(Class.java:403)
at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer._initializeAccessor(ASMAccessorOptimizer.java:725)
at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.compileAccessor(ASMAccessorOptimizer.java:859)
at org.mvel2.optimizers.impl.asm.ASMAccessorOptimizer.optimizeAccessor(ASMAccessorOptimizer.java:243)
at org.mvel2.optimizers.dynamic.DynamicGetAccessor.optimize(DynamicGetAccessor.java:90)
at org.mvel2.optimizers.dynamic.DynamicGetAccessor.getValue(DynamicGetAccessor.java:64)
at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:108)
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:38)
at org.mvel2.ast.Fold.getReducedValue(Fold.java:137)
at org.mvel2.MVELInterpretedRuntime.parseAndExecuteInterpreted(MVELInterpretedRuntime.java:106)
at org.mvel2.MVELInterpretedRuntime.parse(MVELInterpretedRuntime.java:49)
at org.mvel2.MVEL.eval(MVEL.java:165)
at com.pontiki.core.datasource.MVELTestCase.testCase(MVELTestCase.java:23)
at com.pontiki.core.datasource.MVELTestCase.main(MVELTestCase.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
To reproduce the issue use the following test case.
The text was updated successfully, but these errors were encountered: