程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> JAVA編程 >> JAVA綜合教程 >> SSH Spring3\Java1.8 “Unable to instantiate Action, xxAction, defined for 'xxAction_login' in namespace '/'null”,unabletologin

SSH Spring3\Java1.8 “Unable to instantiate Action, xxAction, defined for 'xxAction_login' in namespace '/'null”,unabletologin

編輯:JAVA綜合教程

SSH Spring3\Java1.8 “Unable to instantiate Action, xxAction, defined for 'xxAction_login' in namespace '/'null”,unabletologin


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

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved