Incompleteelementexception:could not find result map Java.util.HashMap__java

Source: Internet
Author: User
[DEBUG] 16:11:42.827 [http-8080-1] o.s.jdbc.datasource.datasourceutils-returning jdbc Connection to DataSource
Org.apache.ibatis.builder.IncompleteElementException:Could not find result map java.util.HashMap
At Org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap (mapperbuilderassistant.java:354)
At Org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement (mapperbuilderassistant.java:292)
At Org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode (xmlstatementbuilder.java:113)
At Org.apache.ibatis.session.Configuration.buildAllStatements (configuration.java:579)
At Org.apache.ibatis.session.Configuration.getMappedStatement (configuration.java:505)
At Org.apache.ibatis.session.Configuration.getMappedStatement (configuration.java:500)
At Org.apache.ibatis.binding.MapperMethod.setupCommandType (mappermethod.java:240)
At Org.apache.ibatis.binding.mappermethod.<init> (mappermethod.java:71)
At Org.apache.ibatis.binding.MapperProxy.invoke (mapperproxy.java:39)
At Com.sun.proxy $Proxy 82.queryVendorProductList (Unknown Source)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection (aoputils.java:319)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (Reflectivemethodinvocation.java : 183)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:150)
At Org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke ( METHODBEFOREADVICEINTERCEPTOR.JAVA:50)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:172)
At Org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke (exposeinvocationinterceptor.java:90)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:172)
At Org.springframework.aop.framework.JdkDynamicAopProxy.invoke (jdkdynamicaopproxy.java:202)
At Com.sun.proxy $Proxy 83.queryVendorProductList (Unknown Source)
At Com.cy.product.service.impl.CyVendorProductServiceImpl.queryVendorProductList ( CYVENDORPRODUCTSERVICEIMPL.JAVA:71)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection (aoputils.java:319)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (Reflectivemethodinvocation.java : 183)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:150)
At Org.springframework.transaction.interceptor.TransactionInterceptor.invoke (transactioninterceptor.java:110)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:172)
At Org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke (exposeinvocationinterceptor.java:90)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:172)
At Org.springframework.aop.framework.JdkDynamicAopProxy.invoke (jdkdynamicaopproxy.java:202)
At Com.sun.proxy $Proxy 84.queryVendorProductList (Unknown Source)
At Com.cy.product.controller.CyVendorProductController.queryProductList (cyvendorproductcontroller.java:153)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod ( handlermethodinvoker.java:176)
At Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod ( annotationmethodhandleradapter.java:436)
At Org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle ( annotationmethodhandleradapter.java:424)
At Org.springframework.web.servlet.DispatcherServlet.doDispatch (dispatcherservlet.java:923)
At Org.springframework.web.servlet.DispatcherServlet.doService (dispatcherservlet.java:852)
At Org.springframework.web.servlet.FrameworkServlet.processRequest (frameworkservlet.java:882)
At Org.springframework.web.servlet.FrameworkServlet.doGet (frameworkservlet.java:778)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:617)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:723)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:290)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (characterencodingfilter.java:88)
At Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:235)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:233)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:191)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:127)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:103)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:109)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:293)
At Org.apache.coyote.http11.Http11Processor.process (http11processor.java:861)
At Org.apache.coyote.http11.http11protocol$http11connectionhandler.process (http11protocol.java:620)
At Org.apache.tomcat.util.net.jioendpoint$worker.run (jioendpoint.java:489)
At Java.lang.Thread.run (thread.java:745)
caused By:java.lang.IllegalArgumentException:Result Maps collection does not contain value for JAVA.UTIL.HASHMAP
At Org.apache.ibatis.session.configuration$strictmap.get (configuration.java:672)
At Org.apache.ibatis.session.Configuration.getResultMap (configuration.java:434)

At Org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap (mapperbuilderassistant.java:352)



Today, my colleague's program reported an error. I've seen it for half an hour, but it's the wrong one. Online search is all the resultmap replaced by Resulttype but MyBatis XML file is indeed used Resulttype immediately without language, the overall search for a resultmap= "Java.util.HashMap" found two of the other files are changed after the start OK seems to mybatis DAO corresponding XML will affect each other


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.