MyBatis Exception java.lang.IllegalArgumentException:Mapped Statements collection does not contain value for

Source: Internet
Author: User
1. Performance:

Abnormal performance, data insert operation failed, no syntax error, configuration file check Normal, as a low-level exception, it is very powerful 2. Exception Details:

[ERROR] [2014-03-26 16:02:52.490]nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error updating  Database. Cause:java.lang.IllegalArgumentException:Mapped Statements collection does not contain value for com.jd.etms.waybill.dao.OrderRelationDao.insert22 ### Cause:java.lang.IllegalArgumentException:Mapped Statements Collection does not contain value for com.jd.etms.waybill.dao.orderrelationdao.insert22[ Com.jd.dbs.execution.DefaultConcurrentRequestProcessor:innerExecuteWith] Java.lang.RuntimeException: Org.mybatis.spring.MyBatisSystemException:nested exception is org.apache.ibatis.exceptions.PersistenceException: #  # # Error updating database. Cause:java.lang.IllegalArgumentException:Mapped Statements collection does not contain value for com.jd.etms.waybill.dao.OrderRelationDao.insert22 ### Cause:java.lang.IllegalArgumentException:Mapped Statements Collection does not contain value for com.jd.etms.waybill.dao.OrderRelationDao.insert22 at Com.jd.dbs.Execution. Defaultconcurrentrequestprocessor.innerexecutewith (defaultconcurrentrequestprocessor.java:219) at
	Com.jd.dbs.execution.DefaultConcurrentRequestProcessor.executeWith (defaultconcurrentrequestprocessor.java:162) At Com.jd.dbs.DBSqlSessionTemplate.executeDefaultConcurrency (dbsqlsessiontemplate.java:567) at Com.jd.dbs.DBSqlSessionTemplate.insert (dbsqlsessiontemplate.java:255) at Com.jd.etms.waybill.dao.OrderRelationDao.insert (ORDERRELATIONDAO.JAVA:25) at Com.jd.etms.waybill.dao.OrderRelationDaoTestTest.testInsert (orderrelationdaotesttest.java:55) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke ( nativemethodaccessorimpl.java:39) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( DELEGATINGMETHODACCESSORIMPL.JAVA:25) at Org.junit.runners.model.frameworkmethod$1.runreflectivecall (
	frameworkmethod.java:44) at Org.junit.internal.runners.model.ReflectiveCallable.run (reflectivecallable.java:15) At Org.junit.runners.moDel. Frameworkmethod.invokeexplosively (frameworkmethod.java:41) at Org.junit.internal.runners.statements.InvokeMethod.evaluate (INVOKEMETHOD.JAVA:20) at Org.junit.internal.runners.statements.RunBefores.evaluate (runbefores.java:28) at Org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate ( runbeforetestmethodcallbacks.java:74) at Org.junit.internal.runners.statements.RunAfters.evaluate (Runafters.java : At Org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate ( runaftertestmethodcallbacks.java:83) at Org.springframework.test.context.junit4.statements.SpringRepeat.evaluate (springrepeat.java:72) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild ( springjunit4classrunner.java:231) at Org.junit.runners.BlockJUnit4ClassRunner.runChild ( blockjunit4classrunner.java:48) at Org.junit.runners.parentrunner$3.run (parentrunner.java:231) at
	Org.junit.runners.parentrunner$1.schedule (PARENTRUNNER.JAVA:60)At Org.junit.runners.ParentRunner.runChildren (parentrunner.java:229) at org.junit.runners.parentrunner.access$000 (parentrunner.java:50) at Org.junit.runners.parentrunner$2.evaluate (parentrunner.java:222) at Org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate ( RUNBEFORETESTCLASSCALLBACKS.JAVA:61) at Org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate ( runaftertestclasscallbacks.java:71) at Org.junit.runners.ParentRunner.run (parentrunner.java:292) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run (springjunit4classrunner.java:174) at Org.junit.runner.JUnitCore.run (junitcore.java:157) at Com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs (junit4ideatestrunner.java:76) at Com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart (junitstarter.java:195) at Com.intellij.rt.execution.junit.JUnitStarter.main (junitstarter.java:63) at SUN.REFLECT.NATIVEMETHODACCESSORIMPL.INVOKE0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:39) at Com.intellij.rt.execution.application.AppMain.main (appmain.java:120) caused by: Org.mybatis.spring.MyBatisSystemException:nested exception is org.apache.ibatis.exceptions.PersistenceException: #  # # Error updating database. Cause:java.lang.IllegalArgumentException:Mapped Statements collection does not contain value for com.jd.etms.waybill.dao.OrderRelationDao.insert22 ### Cause:java.lang.IllegalArgumentException:Mapped Statements Collection does not contain value for com.jd.etms.waybill.dao.OrderRelationDao.insert22 at
	Org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible (mybatisexceptiontranslator.java:73) At Org.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (sqlsessiontemplate.java:358) at $ Proxy25.insert (Unknown Source) at Org.mybatis.spring.SqlSessionTemplate.insert (sqlsessiontemplate.java:232) at Com.jd.dbs.execution.DefaultConcurrentREquestprocessor.innerexecutewith (defaultconcurrentrequestprocessor.java:181) ...  More caused by:org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause:java.lang.IllegalArgumentException:Mapped Statements collection does not contain value for com.jd.etms.waybill.dao.OrderRelationDao.insert22 ### Cause:java.lang.IllegalArgumentException:Mapped Statements Collection does not contain value for com.jd.etms.waybill.dao.OrderRelationDao.insert22 at Org.apache.ibatis.exceptions.ExceptionFactory.wrapException (Exceptionfactory.java:8) at Org.apache.ibatis.session.defaults.DefaultSqlSession.update (defaultsqlsession.java:124) at Org.apache.ibatis.session.defaults.DefaultSqlSession.insert (defaultsqlsession.java:111) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke ( nativemethodaccessorimpl.java:39) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( DELEGATINGMETHODACCESSORIMPL.JAVA:25) at orG.mybatis.spring.sqlsessiontemplate$sqlsessioninterceptor.invoke (sqlsessiontemplate.java:350) ... caused by:java.lang.IllegalArgumentException:Mapped statements collection does not contain value for COM.JD.ETMS . waybill.dao.OrderRelationDao.insert22 at Org.apache.ibatis.session.configuration$strictmap.get ( configuration.java:595) at Org.apache.ibatis.session.Configuration.getMappedStatement (configuration.java:437) at Org.apache.ibatis.session.Configuration.getMappedStatement (Configuration.java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.