Anyone encounter "java.lang.NoClassDefFoundError: org/apache/ibatis/reflection/ExceptionUtil " such a exception?

322 views
Skip to first unread message

Kun Wang

unread,
Dec 10, 2017, 12:13:02 AM12/10/17
to mybatis-user
hi all,
My webapp got a Exception like below when use mybatis to access database recently :
Exception in thread "Thread-155" java.lang.NoClassDefFoundError: org/apache/ibatis/refle
ction
/ExceptionUtil
        at org
.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSession
Template.java:366)
        at com
.sun.proxy.$Proxy13.selectOne(Unknown Source)
        at org
.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:163)
        at org
.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:68)
        at org
.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
        at com
.sun.proxy.$Proxy18.selectByPrimaryKey(Unknown Source)
        at car
.w.k.socket.CarSocketServer.offline(CarSocketServer.java:425)
        at car
.w.k.socket.CarSocketServer.access$200(CarSocketServer.java:22)
        at car
.w.k.socket.CarSocketServer$HandlerThread.run(CarSocketServer.java:232)
        at java
.lang.Thread.run(Thread.java:745)


I restarted tomcat and the problem didt display again. But I want to know what makes it happen? 
Thank you very much if you can help me.

Kazuki Shimizu

unread,
Dec 11, 2017, 10:17:57 AM12/11/17
to mybatis-user
What version are you using?

Kun Wang

unread,
Dec 13, 2017, 4:22:17 AM12/13/17
to mybatis-user
it is 3.2.7  and the spring version is 3.0.3 RELEASE  and mybatis-spring is 1.2.2 .

在 2017年12月11日星期一 UTC+8下午11:17:57,Kazuki Shimizu写道:
Reply all
Reply to author
Forward
0 new messages