Org.apache.ibatis.builder.IncompleteElementException:Could not find result map java.util.HashMap

Source: Internet
Author: User

Is there a problem with this configuration?

<select id="getfreightcollectmanagementlist" resultmap= " Java.util.HashMap" parametertype="com.rms.providers.dto.AccountingPayableDto ">

Yes, mybatis error occurred:

2018- ,- -  the: -: *-13867[http-nio- the-exec-Ten] debug-added httpservletresponse Cookie [Rememberme=deleteme; path=/; Max-age=0; Expires=sun, A-aug-2018  -: -: *GMT]2018- ,- -  the: -: *-13870[http-nio- the-exec-Ten] Debug-org.apache.shiro.authc.authenticationexception:authentication failed forToken submission [Com.hercules.rms.web.shiro.captchausernamepasswordtoken-luokai, rememberme=false(0:0:0:0:0:0:0:1)]. Possible Unexpected error? (Typical or expected login exceptions should extend fromauthenticationexception). At Org.apache.shiro.authc.AbstractAuthenticator.authenticate (Abstractauthenticator.java:214) at Org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate (Authenticatingsecuritymanager.java: 106) at Org.apache.shiro.mgt.DefaultSecurityManager.login (Defaultsecuritymanager.java: the) at Org.apache.shiro.subject.support.DelegatingSubject.login (Delegatingsubject.java: the) at Org.apache.shiro.web.filter.authc.AuthenticatingFilter.executeLogin (Authenticatingfilter.java: -) at Org.apache.shiro.web.filter.authc.FormAuthenticationFilter.onAccessDenied (Formauthenticationfilter.java :154) at org.apache.shiro.web.filter.AccessControlFilter.onAccessDenied (Accesscontrolfilter.java:133) at Org.apache.shiro.web.filter.AccessControlFilter.onPreHandle (Accesscontrolfilter.java:162) at org.apache.shiro.web.filter.PathMatchingFilter.isFilterChainContinued (Pathmatchingfilter.java:203) at Org.apache.shiro.web.filter.PathMatchingFilter.preHandle (Pathmatchingfilter.java:178) at Org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal (Advicefilter.java:131) at Org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter (Onceperrequestfilter.java: the) at Org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter (Proxiedfilterchain.java: the) at Org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain (Abstractshirofilter.java:449) at org.apache.shiro.web.servlet.abstractshirofilter$1. Call (Abstractshirofilter.java:365) at Org.apache.shiro.subject.support.SubjectCallable.doCall (Subjectcallable.java: -) at Org.apache.shiro.subject.support.SubjectCallable.call (Subjectcallable.java: the) at Org.apache.shiro.subject.support.DelegatingSubject.execute (Delegatingsubject.java:383) at Org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal (Abstractshirofilter.java:362) at Org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter (Onceperrequestfilter.java: the) at Org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (Delegatingfilterproxy.java:344) at Org.springframework.web.filter.DelegatingFilterProxy.doFilter (Delegatingfilterproxy.java:261) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:193) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:166) at Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (Characterencodingfilter.java:  the) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (Onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:193) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:166) at Org.apache.catalina.core.StandardWrapperValve.invoke (Standardwrappervalve.java:199) at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java: the) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (Authenticatorbase.java:504) at Org.apache.catalina.core.StandardHostValve.invoke (Standardhostvalve.java: $) at Org.apache.catalina.valves.ErrorReportValve.invoke (Errorreportvalve.java:Bayi) at Org.apache.catalina.valves.AbstractAccessLogValve.invoke (Abstractaccesslogvalve.java:650) at Org.apache.catalina.core.StandardEngineValve.invoke (Standardenginevalve.java: the) at Org.apache.catalina.connector.CoyoteAdapter.service (Coyoteadapter.java:342) at Org.apache.coyote.http11.Http11Processor.service (Http11processor.java:803) at Org.apache.coyote.AbstractProcessorLight.process (Abstractprocessorlight.java: the) at Org.apache.coyote.abstractprotocol$connectionhandler.process (Abstractprotocol.java:790) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (Nioendpoint.java:1459) at Org.apache.tomcat.util.net.SocketProcessorBase.run (Socketprocessorbase.java: the) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1149) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:624) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (Taskthread.java: A) at Java.lang.Thread.run (Thread.java:748) caused by:org.apache.ibatis.builder.IncompleteElementException:Could not find result map java.util.HashMap at or G.apache.ibatis.builder.mapperbuilderassistant.setstatementresultmap (Mapperbuilderassistant.java:346) at Org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement (Mapperbuilderassistant.java:284) at Org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode (Xmlstatementbuilder.java:107) at Org.apache.ibatis.session.Configuration.buildAllStatements (Configuration.java:698) at Org.apache.ibatis.session.Configuration.hasStatement (Configuration.java:668) at Org.apache.ibatis.session.Configuration.hasStatement (Configuration.java:663) at Org.apache.ibatis.binding.mappermethod$sqlcommand.<init> (Mappermethod.java: the) at Org.apache.ibatis.binding.MapperMethod.<init> (Mappermethod.java: +) at Org.apache.ibatis.binding.MapperProxy.cachedMapperMethod (Mapperproxy.java: -) at Org.apache.ibatis.binding.MapperProxy.invoke (Mapperproxy.java:Wuyi) at Com.sun.proxy. $Proxy 24.getUserInfoByLoginNameAndUserCode (Unknown Source) at Com.hercules.rms.providers.ser Vice.impl.UserInfoServiceImpl.getUserInfoByLoginNameAndUserCode (Userinfoserviceimpl.java: the) at Com.hercules.rms.web.shiro.ShiroDbRealm.doGetAuthenticationInfo (Shirodbrealm.java:131) at Org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo (Authenticatingrealm.java:568) at Org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication ( Modularrealmauthenticator.java: the) at Org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate (Modularrealmauthenticator.java: 267) at Org.apache.shiro.authc.AbstractAuthenticator.authenticate (Abstractauthenticator.java:198)    ...  -morecaused By:java.lang.IllegalArgumentException:Result Maps collection does not contain value forJava.util.HashMap at Org.apache.ibatis.session.configuration$strictmap.Get(Configuration.java:797) at Org.apache.ibatis.session.Configuration.getResultMap (Configuration.java:550) at Org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap (Mapperbuilderassistant.java: 344)    ...  -More

Déjà vu error:

Org.apache.ibatis.builder.IncompleteElementException:Could not find result map java.util.HashMap

caused By:java.lang.IllegalArgumentException:Result Maps collection does not contain value for JAVA.UTIL.HASHMAP

The original is resultmap problem, change to resulttype just good! In addition, ParameterType has parametermap correspondence,

Specific in the file can be found: e:\maven\repo\org\mybatis\mybatis\3.2.8\mybatis-3.2.8.jar!\org\apache\ibatis\builder\xml\ MYBATIS-3-MAPPER.DTD, including:

<! ELEMENTSelect(#PCDATA | include | trim |where|Set|foreach| Choose |if| BIND) *><! AttlistSelectID CDATA #REQUIREDparameterMap CDATA #IMPLIEDparameterType CDATA #IMPLIEDresultMap CDATA #IMPLIEDresultType CDATA # Impliedresultsettype (forward_only| scroll_insensitive |scroll_sensitive) #IMPLIEDstatementType (STATEMENT| prepared|callable) #IMPLIEDfetchSize CDATA #IMPLIEDtimeout CDATA #IMPLIEDflushCache (true|false) #IMPLIEDuseCache (true|false) #IMPLIEDdatabaseId CDATA #IMPLIEDlang CDATA #IMPLIEDresultOrdered (true|false) #IMPLIEDresultSets CDATA #IMPLIED>

For details, see:

Http://www.mybatis.org/mybatis-3/zh/configuration.html

Org.apache.ibatis.builder.IncompleteElementException:Could not find result map java.util.HashMap

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.