spring - Java 1.8 ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet -


my web application runs fine on jdk 1.7 crashes on 1.8 following exception (during application server startup jetty 8). using spring version: 3.2.5.release.

exception:

org.springframework.core.nestedioexception: asm classreader failed parse class file - due new java class file version isn't supported yet

i assume problem occurs because of spring , "asm.jar" library on depends.

how resolve this?

as @prunge , @pablo lozano stated, need spring 4 if want compile code java 8 (--target 1.8), can still run apps on java 8 compiled java 7 if run on spring 3.2.x.

check out http://docs.spring.io/spring/docs/current/spring-framework-reference/html/new-in-4.0.html

note java 8 bytecode level (-target 1.8, required -source 1.8) supported of spring framework 4.0. in particular, spring 3.2 based applications need compiled maximum of java 7 target, if happen deployed onto java 8 runtime. please upgrade spring 4 java 8 based applications.


Comments

Popular posts from this blog

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

C# random value from dictionary and tuple -