你的位置:首页 > Java教程

[Java教程]SSH Spring3\Java1.8 “Unable to instantiate Action, xxAction, defined for xxAction_login in namespace /null”


1.Stacktraces

Unable to instantiate Action,xxAction, defined for 'xxAction_login' in namespace '/'null   com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:316)

java.lang.IllegalArgumentException   org.springframework.asm.ClassReader.(Unknown Source)

2.solution

2.1 升级到Spring 4,参考

(https://stackoverflow.com/questions/31064967/java-lang-illegalargumentexception-at-org-springframework-asm-classreader-init)

Try to upgrade to Spring 4 to support Java 8 byte code format.Your root cause here:java.lang.IllegalArgumentException org.springframework.asm.ClassReader.(Unknown Source) org.springframework.asm.ClassReader.(Unknown Source)org.springframework.asm.ClassReader.(Unknown Source)

 

2.2 不升级到spring 4的话 那就降级JDK到1.7,在Intellij IDEA中可以设置:

image