Quantcast

Random java.lang.VerifyError when rendering a page

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Random java.lang.VerifyError when rendering a page

dani
Hi. I have a page that renders a list. This always works, but, suddenly, this list may end up giving an exception:

Caused by: org.attoparser.ParseException: Exception evaluating SpringEL expression: "departamentos[8249].nombre"

        ... 91 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to instantiate CompiledExpression
        at org.springframework.expression.spel.standard.SpelCompiler.compile(SpelCompiler.java:111) ~[spring-expression-4.3.7.RELEASE.jar:4.3.7.RELEASE]
        at org.springframework.expression.spel.standard.SpelExpression.compileExpression(SpelExpression.java:467) ~[spring-expression-4.3.7.RELEASE.jar:4.3.7.RELEASE]
        at org.springframework.expression.spel.standard.SpelExpression.checkCompile(SpelExpression.java:443) ~[spring-expression-4.3.7.RELEASE.jar:4.3.7.RELEASE]
        at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:268) ~[spring-expression-4.3.7.RELEASE.jar:4.3.7.RELEASE]
        at org.thymeleaf.spring4.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:263) ~[thymeleaf-spring4-3.0.2.RELEASE.jar:3.0.2.RELEASE]
        ... 120 common frames omitted
Caused by: java.lang.VerifyError: (class: spel/Ex25, method: getValue signature: (Ljava/lang/Object;Lorg/springframework/expression/EvaluationContext;)Ljava/lang/Object;) Expecting to find object/array on stack
        at java.lang.Class.getDeclaredConstructors0(Native Method) ~[na:1.8.0_60]
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[na:1.8.0_60]
        at java.lang.Class.getConstructor0(Class.java:3075) ~[na:1.8.0_60]
        at java.lang.Class.newInstance(Class.java:412) ~[na:1.8.0_60]


In the template, the affected line (which, as said, generally works fine) is:

    span th:remove="tag" th:if="${issue.clienteDepartamentoId!=null}" th:text="${departamentos[__${issue.clienteDepartamentoId}__].nombre}"

 Anyone knows what may be going on? Any workaround maybe?
 
 Thanks!

--
Dani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Random java.lang.VerifyError when rendering a page

dani
For the moment, I'm using

    <span th:remove="tag" th:if="${compliance.clienteDepartamentoId!=null}" th:text="${departamentos.get(compliance.clienteDepartamentoId).nombre}"></span>

Instead of the original

  <span th:remove="tag" th:if="${issue.clienteDepartamentoId!=null}" th:text="${departamentos[__${issue.clienteDepartamentoId}__].nombre}" 

Which works fine and doesn't throw that exception, altough I'm still wondering why that exception was appearing, and why did it appear randomly?
Loading...