Spring整合mybatis:Caused by: java.lang.IllegalArgumentException錯誤
java.lang.IllegalArgumentException
at org.springframework.asm.ClassReader.<init>(Unknown Source)
at org.springframework.asm.ClassReader.<init>(Unknown Source)
at org.springframework.asm.ClassReader.<init>(Unknown Source)
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:52)
---------------------
問題原因:spring 與 jdk不匹配:spring3.2與jdk1.8不匹配導致的錯誤
解決方法:使用spring4或者使用jdk7.
原文:https://blog.csdn.net/mj_ww/article/details/53215284
版權宣告:本文為博主原創文章,轉載請附上博文連結!
相關推薦
Spring整合mybatis:Caused by: java.lang.IllegalArgumentException錯誤
java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframew
spring cloud feign:Caused by: java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0
use except app caused ise als stp lstat name 報錯之前: @RequestMapping(value = "hi", method = RequestMethod.GET)String hiService(@Request
spring整合mybatis遇到的bug java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
如果 spring tis per div prop seda bat required 出bug的原因:mybatis-spring版本問題。 查看SqlSessionDaoSupport源碼 1.2以上的版本: 1.1.1版本: 解決方法:1.2版本移除了
AOP異常一:Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
切入點引數定義錯誤:發現是因為在 配置檔案 中對進行要攔截的方法引數的注入。 也就是說,如果你要攔截的方法中有引數,那麼在配置檔案的aspect的expression中也需要有 and args(methodName)。 舉我編寫的例子: package com.zrk
SpringBoot 整合thymeleaf報錯:Caused by: java.lang.ClassNotFoundException: org.thymeleaf.resourceresolver
最近在學springboot,聽說很火很方便,但學習時問題好多啊,今天一早又報錯!!!還是啟動報錯!!! java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoc
springboot2.0整合activiti6.0報錯:Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNo
在使用springboot2.0整合activiti6.0後啟動報錯,錯誤如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandl
spring aop定義增強時候報錯 Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: expec
Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ')' at character position 11 Caused by: java.lang.IllegalArg
異常:Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
說明專案沒有載入jar包 異常:Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext 解決方案:對著工程點右鍵-
一次關於log4j的jar包衝突解決:Caused by: java.lang.NoSuchFieldError: fileName
專案中log系統使用的 logback + slf4j 實現, 今天一同事新引入幾個jar包,結果tomcat啟動時報了以下異常: Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
spring aop Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: 報錯
最近這幾天在公司研究spring aop(面向切面程式設計),在使用spring 註解實現時,遇到了一個bug,由此記錄一下,方便日後讀閱;報錯如下圖所示: 由於是第一次接觸spring aop 當時就懵逼了,在網上搜索相關的錯誤,最後找到了自己的問題出
項目報錯:Caused by: java.lang.ClassNotFoundException: Didn't find class "..."on path: DexPathList
cto itl not 文件 pro ora log amp 類名 項目報錯: Caused by: java.lang.ClassNotFoundException: Didn‘t find class "com.eshore.njb.MyApplicatio
Caused by: java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nes
springboot Caused by: java.lang.IllegalArgumentException: Property 'sessionFactory' is required
異常資訊:springboot Caused by: java.lang.IllegalArgumentException: Property 'sessionFactory' is required 一般出現該類問題就是配置的問題,無論是xml配置。還是springboot的yml配置。
Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value
整合spring+mybatis 報錯以下錯誤: 我完全是IDEA的問題!!!找了半天啊!!! org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.wechat.mo
Caused by: java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
前言:最近在寫一個oa專案,用的是ssh框架,使用註解開發啟動tomcat的時候報了下面錯誤 問題: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'depa
tomcat啟動報錯Caused by: java.lang.IllegalArgumentException: The main resource set specifiedis not valid
原因:筆者電腦中不存在“G:\Tomcatdata\data\sourcecode\chapter03\helloapp]”此路徑、檔案,所以刪除tomcat檔案目錄下的conf\server.xml檔案中的對應資訊(Context)後,tomcat能正常啟動。 錯誤資訊如下:
Caused by: java.lang.IllegalArgumentException: argument type mismatch
essage Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.
[異常]Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for
Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for at org.apache.ibatis.session.Configuration$St
Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
切入點引數定義錯誤 錯誤詳細資訊如下,紅色標註是錯誤的關鍵點 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IStudentMgr'
Caused by: java.lang.IllegalArgumentException: @EnableAsync annotation metadata was not injected
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotat