码迷,mamicode.com
首页 > 其他好文 > 详细

mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案

时间:2017-11-02 14:35:16      阅读:4497      评论:0      收藏:0      [点我收藏+]

标签:ltm   account   col   space   .net   时报   man   jsb   hang   

 

Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult

 

一  错误信息:

 

 

 

[html] view plain copy
 
 
技术分享技术分享技术分享技术分享
  1. 19:26:05,446 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  2. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  3.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  4.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  5.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  6.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  7.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  8.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  9.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  10.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  11.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  12.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  13.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  14.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  15.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  16.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  17.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  18.     at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)  
  19.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)  
  20.     at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)  
  21.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)  
  22.     at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)  
  23.     at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)  
  24.     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache(RequestMappingHandlerAdapter.java:621)  
  25.     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.afterPropertiesSet(RequestMappingHandlerAdapter.java:494)  
  26.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  27.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  28.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  29.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  30.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  31.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  32.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  33.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  34.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)  
  35.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  36.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  37.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  38.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  39.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  40.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  41.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  42.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  43.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  44.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  45.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  46.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  47.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  48.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  49.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  50. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  51.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  52.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  53.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  54.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  55.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  56.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  57.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  58.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  59.     ... 46 more  
  60. 19:26:05,479 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  61. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  62.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  63.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  64.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  65.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  66.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  67.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  68.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  69.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  70.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  71.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  72.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  73.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  74.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  75.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  76.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  77.     at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)  
  78.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)  
  79.     at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)  
  80.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)  
  81.     at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)  
  82.     at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)  
  83.     at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.initExceptionHandlerAdviceCache(ExceptionHandlerExceptionResolver.java:287)  
  84.     at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.afterPropertiesSet(ExceptionHandlerExceptionResolver.java:225)  
  85.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  86.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  87.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  88.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  89.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  90.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  91.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  92.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  93.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)  
  94.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  95.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  96.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  97.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  98.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  99.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  100.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  101.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  102.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  103.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  104.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  105.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  106.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  107.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  108.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  109. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  110.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  111.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  112.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  113.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  114.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  115.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  116.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  117.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  118.     ... 46 more  
  119. 19:26:05,513 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  120. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  121.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  122.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  123.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  124.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  125.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  126.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  127.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  128.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  129.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  130.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  131.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  132.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  133.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  134.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  135.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  136.     at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)  
  137.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)  
  138.     at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:523)  
  139.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:357)  
  140.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:335)  
  141.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:322)  
  142.     at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1174)  
  143.     at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:73)  
  144.     at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)  
  145.     at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)  
  146.     at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)  
  147.     at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)  
  148.     at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)  
  149.     at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)  
  150.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:399)  
  151.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1481)  
  152.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  153.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  154.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  155.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  156.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  157.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  158.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)  
  159.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  160.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  161.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  162.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  163.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  164.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  165.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  166.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  167.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  168.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  169.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  170.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  171.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  172.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  173.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  174. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  175.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  176.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  177.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  178.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  179.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  180.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  181.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  182.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  183.     ... 52 more  
  184. 19:26:05,585 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  185. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  186.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  187.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  188.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  189.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  190.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  191.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  192.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  193.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  194.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  195.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  196.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  197.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  198.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  199.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  200.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  201.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  202.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  203.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  204.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  205.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  206.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  207.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  208.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  209.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  210.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  211.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  212.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  213.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  214.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  215.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  216.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  217.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  218. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  219.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  220.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  221.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  222.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  223.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  224.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  225.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  226.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  227.     ... 31 more  
  228. 19:26:05,586 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:444) - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c8b69f3: defining beans [dataSource,simpleJdbcTemplate,jdbcTemplate,namedJdbcTemplate,jdbcTemplate2,namedJdbcTemplate2,velocityConfig,viewResolver,multipartResolver,billBankSlipController,billBuyController,billOrder4SaleController,billOrderByBuyController,billOrderBySellController,billOrderController,billOrderOpLogController,billSellController,billWishinController,billWishinController2,billWishOfferLogController,billWishouController,cmsCategoryController,companyController,companyBankAccountController,companyContractTemplateController,contractController,deliveryController,dswDxGroupsendController,centerGiftExchangeController,goodsCategoryController,goodsListController,goodsStockHouseController,centerIndexController,linkCateGoodsController,linkCompanyUserController,lotteryController,payInOutController,permFuncController,productBandController,productBatchController,productStockLogController,productStoreHouseController,productTemplateController,productTemplateDetailController,recBonusLogController,recRecordDetailController,sendSmsController,sysSafeCheckController,userAccount4BaiduController,userAccountController,userSettigController,verifyCodeController,userAttentionController,userIntegralDetailController,userMessageController,userPointController,welcomeController,arbToolsController,artcleController,frontBillSellController,chatController,frontWuxingController,frontIndexController,frontIndexControllerRemove,indexControl,noticeController,purchaseController,pwdController,resetUrlController,frontSearchController,recommondController,specialController,TPurchaseController,TResetUrlController,trendsController,waterController,frontDictionaryController,buttonCountController,purchaseWeChatController,registerController,adminArtcleController,adminCategoryController,adminGoodsStockHouseController,adminLoginControl,adminLoginShortControl,adminHeaderMenuController,adminMainIndexController,formFilterController,formFilterFieldController,permMenuController,permNodeController,adminPermRoleController,permRoleNodeController,adminSystaskListController,adminGoodsCategoryController,adminGoodsListController,adminUsersLogController,adminWorKDataController,adminWorkDictionaryController,adminIndexController,mainMenuController,downLoadContorl,loginControl,xxtHandlerExceptionResolver,qqCallController,kindEditorUploadController,purchaserUploadController,uploadController,uploadListController,cn.xyx.dsw.base.upload.domain.UploadModuleConfig,webOffice,giftExchangeController,giftFrontController,giftListController,giftTaskController,areaController,vistatController,adminBillBuyController,adminCCTemplateController,adminEsBillSellController,adminSMSController,adminTradeUserAccountController,adminUserAccountController,adminUserPasswordController,adminWelcomeController,advertSpaceController,adminAreaController,adminBillDealController,adminBillOrderController,adminBillSellController,adminBillWishinController,adminBillWishouController,cmsUrlTagController,adminCompanyController,customerManagerController,customerManagerDealController,adminGoodsListHotController,goodsTechCategoryController,goodsTechDirpropValueController,admiGTSummaryChkController,goodsTechSummaryController,adminLinkCompanyUserController,adminLotterySettingController,oaDepartmentController,adminQuotationWishController,tempTestTableController,adminRecRecordDetailController,reportWebstateDayController,rptDayUserBehaviorController,rptUserBehaviorController,TAdminBillBuyController,TAdminBillOrderController,TAdminBillSellController,TAdminBillWishinController,todayMarketController,adminUserLotteryRecordController,adminUserMessageController,adminVerifyCodeController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,loadRptData2UserBehaviorTask,billBuyReportDataServiceImpl,billOrderReportDataServiceImpl,billSellReportDataServiceImpl,billWishinReportDataServiceImpl,billWishouReportDataServiceImpl,reportDataServiceImpl,linkCompanyUserRptDataServiceImpl,registerDataServiceImpl,dayUserBehaviorTask,advertSpaceInfo,cmsUrlTag,companyVendorInfo,customerManagerInfo,customerManagerDealInfo,goodsListHot,goodsTechCategoryInfo,goodsTechDirInfo,goodsTechDirpropValueInfo,goodsTechPropInfo,goodsTechSummaryInfo,linkTechcateGoodsInfo,permMenuInfo,permNodeInfo,permRoleInfo,permRoleNodeInfo,leftPermRoleNodeInfo,quotationWishInfo,tempTestTable,rptDayUserBehaviorInfo,rptUserBehaviorInfo,systaskList,todayMarketInfo,usersLogInfo,areaInfo,billBankSlipInfo,billBuyInfo,billDealInfo,billOrderInfo,billOrderOpLogInfo,billSellInfo,billWishinInfo,billWishOfferLogInfo,billWishouInfo,cmsArtcleInfo,cmsCategoryInfo,companyInfo,companyBankAccountInfo,companyContractTemplateInfo,contractInfo,deliveryInfo,dswDxGroupsendInfo,formFilterInfo,formFilterFieldInfo,goodsCategoryInfo,goodsListInfo,goodsStockHouseInfo,linkCateGoodsInfo,linkCompanyUserInfo,oaDepartmentInfo,ordersInfo,payInOutInfo,permFuncInfo,productBandInfo,productBatchInfo,productCategoryInfo,productStockInfo,productStockLogInfo,productStoreHouseInfo,productTemplateInfo,productTemplateDetailInfo,recBonusLogInfo,recRecordDetailInfo,reportWebstateDay,sysSafeCheckInfo,userAccountInfo,userAttentionInfo,userIntegralDetailInfo,userLotteryRecordInfo,userMessageInfo,welcomeInfo,workDictionaryInfo,dswWordbookInfo,uploadFileInfo,giftCategoryInfo,giftExchangeInfo,giftListInfo,giftTaskInfo,goodsPropCategoriesInfo,goodsPropSubcategoriesInfo,goodsSubcategoriesDetailInfo,goodsTechDirpropValue2Info,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.handler.MappedInterceptor#1,org.springframework.web.servlet.handler.MappedInterceptor#2,org.springframework.web.servlet.handler.MappedInterceptor#3,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,transactionManager,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,advertSpaceMapper,cmsUrlTagMapper,companyVendorMapper,customerManagerMapper,customerManagerDealMapper,formFilterMapper,formFilterFieldMapper,goodsListHotMapper,goodsTechCategoryMapper,goodsTechDirMapper,goodsTechDirpropValueMapper,goodsTechPropMapper,goodsTechSummaryMapper,linkTechcateGoodsMapper,permNodeMapper,permRoleMapper,permRoleNodeMapper,leftpermRoleNodeMapper,quotationWishMapper,tempTestTableMapper,rptDayUserBehaviorMapper,rptUserBehaviorMapper,systaskListMapper,todayMarketMapper,usersLogMapper,areaMapper,billBankSlipMapper,billBuyMapper,billDealMapper,billOrderMapper,billOrderOpLogMapper,billSellMapper,billWishinMapper,billWishOfferLogMapper,billWishouMapper,cmsArtcleMapper,cmsCategoryMapper,companyMapper,companyBankAccountMapper,companyContractTemplateMapper,contractMapper,deliveryMapper,dswDxGroupsendMapper,goodsCategoryMapper,goodsListMapper,goodsStockHouseMapper,linkCateGoodsMapper,linkCompanyUserMapper,oaDepartmentMapper,ordersMapper,payInOutMapper,permFuncMapper,permMenuMapper,productMapper,productBandMapper,productBatchMapper,productCategoryMapper,productStockMapper,productStockLogMapper,productStoreHouseMapper,productTemplateMapper,productTemplateDetailMapper,recBonusLogMapper,recRecordDetailMapper,reportWebstateDayMapper,sysSafeCheckMapper,userAccountMapper,userAttentionMapper,userIntegralDetailMapper,userLotteryRecordMapper,userMessageMapper,welcomeMapper,wishOrderMapper,workDictionaryMapper,dswWordbookMapper,giftCategoryMapper,giftExchangeMapper,giftListMapper,giftTaskMapper,goodsPropCategoriesMapper,goodsPropSubcategoriesMapper,goodsSubcategoriesDetailMapper,goodsTechDirpropValue2Mapper]; root of factory hierarchy  
  229. 19:26:05,597 INFO  [com.alibaba.druid.pool.DruidDataSource] (com.alibaba.druid.pool.DruidDataSource:1050) - {dataSource-1} closed  
  230. 19:26:05,598 ERROR [org.springframework.web.context.ContextLoader] (org.springframework.web.context.ContextLoader:319) - Context initialization failed  
  231. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tempTestTableMapper‘ defined in URL [jar:file:/E:/.m2/repository/cn/xyx/xyx.dsw.dao/1.0/xyx.dsw.dao-1.0.jar!/xyx/dsw/dao/mapper/admin/quotationwish/TempTestTableMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  232.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)  
  233.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  234.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  235.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  236.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  237.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  238.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  239.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  240.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  241.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  242.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  243.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  244.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  245.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  246.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  247.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  248.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  249.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  250.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  251.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  252.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  253.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  254.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  255. Caused by: java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  256.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:81)  
  257.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  258.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  259.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  260.     ... 22 more  
  261. Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  262.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  263.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  264.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  265.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  266.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  267.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  268.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  269.     ... 25 more  
  270. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  271.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  272.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  273.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  274.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  275.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  276.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  277.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  278.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  279.     ... 31 more  
  280. 2015-06-02 19:26:05.598:WARN::Failed startup of context runjettyrun.HSFJettyWebAppContext@74ab6b5{/,src/main/webapp}  
  281. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tempTestTableMapper‘ defined in URL [jar:file:/E:/.m2/repository/cn/xyx/xyx.dsw.dao/1.0/xyx.dsw.dao-1.0.jar!/xyx/dsw/dao/mapper/admin/quotationwish/TempTestTableMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  282.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)  
  283.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  284.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  285.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  286.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  287.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  288.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  289.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  290.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  291.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  292.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  293.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  294.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  295.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  296.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  297.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  298.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  299.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  300.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  301.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  302.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  303.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  304.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  305. 2015-06-02 19:26:05.599:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tempTestTableMapper‘ defined in URL [jar:file:/E:/.m2/repository/cn/xyx/xyx.dsw.dao/1.0/xyx.dsw.dao-1.0.jar!/xyx/dsw/dao/mapper/admin/quotationwish/TempTestTableMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult:  
  306. java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  307.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  308.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  309.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  310.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  311.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  312.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  313.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  314.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  315.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  316.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  317.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  318.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  319.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  320.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  321.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  322.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  323.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  324.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  325.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  326.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  327.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  328.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  329.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  330.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  331.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  332.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  333.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  334.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  335.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  336.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  337.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  338.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  339.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  340.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  341.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  342.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  343.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  344.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  345.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  346. 2015-06-02 19:26:05.611:INFO::Started SelectChannelConnector@0.0.0.0:80  
  347. 2015-06-02 19:26:05.612:INFO::Started Ajp13SocketConnector@0.0.0.0:8009  
  348. 2015-06-02 19:26:05.612:INFO::AJP13 is not a secure protocol. Please protect port 8009  

 

[html] view plain copy
  1. 19:26:05,446 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  2. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  3.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  4.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  5.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  6.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  7.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  8.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  9.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  10.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  11.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  12.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  13.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  14.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  15.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  16.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  17.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  18.     at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)  
  19.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)  
  20.     at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)  
  21.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)  
  22.     at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)  
  23.     at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)  
  24.     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache(RequestMappingHandlerAdapter.java:621)  
  25.     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.afterPropertiesSet(RequestMappingHandlerAdapter.java:494)  
  26.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  27.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  28.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  29.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  30.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  31.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  32.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  33.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  34.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)  
  35.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  36.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  37.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  38.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  39.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  40.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  41.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  42.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  43.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  44.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  45.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  46.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  47.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  48.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  49.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  50. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  51.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  52.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  53.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  54.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  55.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  56.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  57.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  58.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  59.     ... 46 more  
  60. 19:26:05,479 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  61. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  62.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  63.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  64.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  65.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  66.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  67.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  68.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  69.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  70.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  71.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  72.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  73.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  74.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  75.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  76.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  77.     at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)  
  78.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)  
  79.     at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)  
  80.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)  
  81.     at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)  
  82.     at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)  
  83.     at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.initExceptionHandlerAdviceCache(ExceptionHandlerExceptionResolver.java:287)  
  84.     at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.afterPropertiesSet(ExceptionHandlerExceptionResolver.java:225)  
  85.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  86.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  87.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  88.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  89.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  90.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  91.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  92.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  93.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)  
  94.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  95.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  96.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  97.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  98.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  99.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  100.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  101.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  102.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  103.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  104.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  105.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  106.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  107.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  108.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  109. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  110.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  111.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  112.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  113.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  114.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  115.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  116.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  117.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  118.     ... 46 more  
  119. 19:26:05,513 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  120. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  121.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  122.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  123.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  124.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  125.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  126.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  127.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  128.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  129.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  130.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  131.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  132.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  133.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  134.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  135.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  136.     at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)  
  137.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)  
  138.     at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:523)  
  139.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:357)  
  140.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:335)  
  141.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:322)  
  142.     at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1174)  
  143.     at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:73)  
  144.     at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)  
  145.     at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)  
  146.     at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)  
  147.     at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)  
  148.     at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)  
  149.     at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)  
  150.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:399)  
  151.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1481)  
  152.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  153.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  154.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  155.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  156.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  157.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  158.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)  
  159.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  160.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  161.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  162.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  163.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  164.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  165.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  166.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  167.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  168.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  169.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  170.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  171.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  172.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  173.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  174. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  175.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  176.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  177.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  178.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  179.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  180.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  181.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  182.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  183.     ... 52 more  
  184. 19:26:05,585 ERROR [org.mybatis.spring.mapper.MapperFactoryBean] (org.mybatis.spring.mapper.MapperFactoryBean:80) - Error while adding the mapper ‘interface xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper‘ to configuration.  
  185. java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  186.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  187.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  188.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  189.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  190.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  191.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  192.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  193.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  194.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  195.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  196.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  197.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  198.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  199.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  200.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  201.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  202.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  203.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  204.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  205.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  206.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  207.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  208.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  209.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  210.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  211.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  212.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  213.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  214.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  215.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  216.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  217.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  218. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  219.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  220.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  221.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  222.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  223.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  224.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  225.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  226.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  227.     ... 31 more  
  228. 19:26:05,586 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:444) - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c8b69f3: defining beans [dataSource,simpleJdbcTemplate,jdbcTemplate,namedJdbcTemplate,jdbcTemplate2,namedJdbcTemplate2,velocityConfig,viewResolver,multipartResolver,billBankSlipController,billBuyController,billOrder4SaleController,billOrderByBuyController,billOrderBySellController,billOrderController,billOrderOpLogController,billSellController,billWishinController,billWishinController2,billWishOfferLogController,billWishouController,cmsCategoryController,companyController,companyBankAccountController,companyContractTemplateController,contractController,deliveryController,dswDxGroupsendController,centerGiftExchangeController,goodsCategoryController,goodsListController,goodsStockHouseController,centerIndexController,linkCateGoodsController,linkCompanyUserController,lotteryController,payInOutController,permFuncController,productBandController,productBatchController,productStockLogController,productStoreHouseController,productTemplateController,productTemplateDetailController,recBonusLogController,recRecordDetailController,sendSmsController,sysSafeCheckController,userAccount4BaiduController,userAccountController,userSettigController,verifyCodeController,userAttentionController,userIntegralDetailController,userMessageController,userPointController,welcomeController,arbToolsController,artcleController,frontBillSellController,chatController,frontWuxingController,frontIndexController,frontIndexControllerRemove,indexControl,noticeController,purchaseController,pwdController,resetUrlController,frontSearchController,recommondController,specialController,TPurchaseController,TResetUrlController,trendsController,waterController,frontDictionaryController,buttonCountController,purchaseWeChatController,registerController,adminArtcleController,adminCategoryController,adminGoodsStockHouseController,adminLoginControl,adminLoginShortControl,adminHeaderMenuController,adminMainIndexController,formFilterController,formFilterFieldController,permMenuController,permNodeController,adminPermRoleController,permRoleNodeController,adminSystaskListController,adminGoodsCategoryController,adminGoodsListController,adminUsersLogController,adminWorKDataController,adminWorkDictionaryController,adminIndexController,mainMenuController,downLoadContorl,loginControl,xxtHandlerExceptionResolver,qqCallController,kindEditorUploadController,purchaserUploadController,uploadController,uploadListController,cn.xyx.dsw.base.upload.domain.UploadModuleConfig,webOffice,giftExchangeController,giftFrontController,giftListController,giftTaskController,areaController,vistatController,adminBillBuyController,adminCCTemplateController,adminEsBillSellController,adminSMSController,adminTradeUserAccountController,adminUserAccountController,adminUserPasswordController,adminWelcomeController,advertSpaceController,adminAreaController,adminBillDealController,adminBillOrderController,adminBillSellController,adminBillWishinController,adminBillWishouController,cmsUrlTagController,adminCompanyController,customerManagerController,customerManagerDealController,adminGoodsListHotController,goodsTechCategoryController,goodsTechDirpropValueController,admiGTSummaryChkController,goodsTechSummaryController,adminLinkCompanyUserController,adminLotterySettingController,oaDepartmentController,adminQuotationWishController,tempTestTableController,adminRecRecordDetailController,reportWebstateDayController,rptDayUserBehaviorController,rptUserBehaviorController,TAdminBillBuyController,TAdminBillOrderController,TAdminBillSellController,TAdminBillWishinController,todayMarketController,adminUserLotteryRecordController,adminUserMessageController,adminVerifyCodeController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,loadRptData2UserBehaviorTask,billBuyReportDataServiceImpl,billOrderReportDataServiceImpl,billSellReportDataServiceImpl,billWishinReportDataServiceImpl,billWishouReportDataServiceImpl,reportDataServiceImpl,linkCompanyUserRptDataServiceImpl,registerDataServiceImpl,dayUserBehaviorTask,advertSpaceInfo,cmsUrlTag,companyVendorInfo,customerManagerInfo,customerManagerDealInfo,goodsListHot,goodsTechCategoryInfo,goodsTechDirInfo,goodsTechDirpropValueInfo,goodsTechPropInfo,goodsTechSummaryInfo,linkTechcateGoodsInfo,permMenuInfo,permNodeInfo,permRoleInfo,permRoleNodeInfo,leftPermRoleNodeInfo,quotationWishInfo,tempTestTable,rptDayUserBehaviorInfo,rptUserBehaviorInfo,systaskList,todayMarketInfo,usersLogInfo,areaInfo,billBankSlipInfo,billBuyInfo,billDealInfo,billOrderInfo,billOrderOpLogInfo,billSellInfo,billWishinInfo,billWishOfferLogInfo,billWishouInfo,cmsArtcleInfo,cmsCategoryInfo,companyInfo,companyBankAccountInfo,companyContractTemplateInfo,contractInfo,deliveryInfo,dswDxGroupsendInfo,formFilterInfo,formFilterFieldInfo,goodsCategoryInfo,goodsListInfo,goodsStockHouseInfo,linkCateGoodsInfo,linkCompanyUserInfo,oaDepartmentInfo,ordersInfo,payInOutInfo,permFuncInfo,productBandInfo,productBatchInfo,productCategoryInfo,productStockInfo,productStockLogInfo,productStoreHouseInfo,productTemplateInfo,productTemplateDetailInfo,recBonusLogInfo,recRecordDetailInfo,reportWebstateDay,sysSafeCheckInfo,userAccountInfo,userAttentionInfo,userIntegralDetailInfo,userLotteryRecordInfo,userMessageInfo,welcomeInfo,workDictionaryInfo,dswWordbookInfo,uploadFileInfo,giftCategoryInfo,giftExchangeInfo,giftListInfo,giftTaskInfo,goodsPropCategoriesInfo,goodsPropSubcategoriesInfo,goodsSubcategoriesDetailInfo,goodsTechDirpropValue2Info,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.handler.MappedInterceptor#1,org.springframework.web.servlet.handler.MappedInterceptor#2,org.springframework.web.servlet.handler.MappedInterceptor#3,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,transactionManager,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,advertSpaceMapper,cmsUrlTagMapper,companyVendorMapper,customerManagerMapper,customerManagerDealMapper,formFilterMapper,formFilterFieldMapper,goodsListHotMapper,goodsTechCategoryMapper,goodsTechDirMapper,goodsTechDirpropValueMapper,goodsTechPropMapper,goodsTechSummaryMapper,linkTechcateGoodsMapper,permNodeMapper,permRoleMapper,permRoleNodeMapper,leftpermRoleNodeMapper,quotationWishMapper,tempTestTableMapper,rptDayUserBehaviorMapper,rptUserBehaviorMapper,systaskListMapper,todayMarketMapper,usersLogMapper,areaMapper,billBankSlipMapper,billBuyMapper,billDealMapper,billOrderMapper,billOrderOpLogMapper,billSellMapper,billWishinMapper,billWishOfferLogMapper,billWishouMapper,cmsArtcleMapper,cmsCategoryMapper,companyMapper,companyBankAccountMapper,companyContractTemplateMapper,contractMapper,deliveryMapper,dswDxGroupsendMapper,goodsCategoryMapper,goodsListMapper,goodsStockHouseMapper,linkCateGoodsMapper,linkCompanyUserMapper,oaDepartmentMapper,ordersMapper,payInOutMapper,permFuncMapper,permMenuMapper,productMapper,productBandMapper,productBatchMapper,productCategoryMapper,productStockMapper,productStockLogMapper,productStoreHouseMapper,productTemplateMapper,productTemplateDetailMapper,recBonusLogMapper,recRecordDetailMapper,reportWebstateDayMapper,sysSafeCheckMapper,userAccountMapper,userAttentionMapper,userIntegralDetailMapper,userLotteryRecordMapper,userMessageMapper,welcomeMapper,wishOrderMapper,workDictionaryMapper,dswWordbookMapper,giftCategoryMapper,giftExchangeMapper,giftListMapper,giftTaskMapper,goodsPropCategoriesMapper,goodsPropSubcategoriesMapper,goodsSubcategoriesDetailMapper,goodsTechDirpropValue2Mapper]; root of factory hierarchy  
  229. 19:26:05,597 INFO  [com.alibaba.druid.pool.DruidDataSource] (com.alibaba.druid.pool.DruidDataSource:1050) - {dataSource-1} closed  
  230. 19:26:05,598 ERROR [org.springframework.web.context.ContextLoader] (org.springframework.web.context.ContextLoader:319) - Context initialization failed  
  231. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tempTestTableMapper‘ defined in URL [jar:file:/E:/.m2/repository/cn/xyx/xyx.dsw.dao/1.0/xyx.dsw.dao-1.0.jar!/xyx/dsw/dao/mapper/admin/quotationwish/TempTestTableMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  232.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)  
  233.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  234.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  235.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  236.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  237.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  238.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  239.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  240.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  241.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  242.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  243.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  244.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  245.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  246.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  247.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  248.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  249.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  250.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  251.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  252.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  253.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  254.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  255. Caused by: java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  256.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:81)  
  257.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  258.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  259.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  260.     ... 22 more  
  261. Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  262.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)  
  263.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  264.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  265.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  266.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  267.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  268.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  269.     ... 25 more  
  270. Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  271.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  272.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  273.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  274.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  275.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  276.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  277.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  278.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  279.     ... 31 more  
  280. 2015-06-02 19:26:05.598:WARN::Failed startup of context runjettyrun.HSFJettyWebAppContext@74ab6b5{/,src/main/webapp}  
  281. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tempTestTableMapper‘ defined in URL [jar:file:/E:/.m2/repository/cn/xyx/xyx.dsw.dao/1.0/xyx.dsw.dao-1.0.jar!/xyx/dsw/dao/mapper/admin/quotationwish/TempTestTableMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  282.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)  
  283.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  284.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  285.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  286.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  287.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  288.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  289.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  290.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  291.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  292.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  293.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  294.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  295.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  296.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  297.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  298.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  299.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  300.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  301.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  302.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  303.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  304.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  305. 2015-06-02 19:26:05.599:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tempTestTableMapper‘ defined in URL [jar:file:/E:/.m2/repository/cn/xyx/xyx.dsw.dao/1.0/xyx.dsw.dao-1.0.jar!/xyx/dsw/dao/mapper/admin/quotationwish/TempTestTableMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult:  
  306. java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult  
  307.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)  
  308.     at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)  
  309.     at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)  
  310.     at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)  
  311.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)  
  312.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)  
  313.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)  
  314.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)  
  315.     at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)  
  316.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)  
  317.     at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)  
  318.     at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)  
  319.     at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)  
  320.     at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)  
  321.     at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)  
  322.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)  
  323.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)  
  324.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)  
  325.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)  
  326.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
  327.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
  328.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
  329.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
  330.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)  
  331.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
  332.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
  333.     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)  
  334.     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)  
  335.     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)  
  336.     at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)  
  337.     at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)  
  338.     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)  
  339.     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)  
  340.     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)  
  341.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  342.     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)  
  343.     at org.mortbay.jetty.Server.doStart(Server.java:224)  
  344.     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)  
  345.     at runjettyrun.Bootstrap.main(Bootstrap.java:275)  
  346. 2015-06-02 19:26:05.611:INFO::Started SelectChannelConnector@0.0.0.0:80  
  347. 2015-06-02 19:26:05.612:INFO::Started Ajp13SocketConnector@0.0.0.0:8009  
  348. 2015-06-02 19:26:05.612:INFO::AJP13 is not a secure protocol. Please protect port 8009  

 

 

 

二 原因分析:

 

 

 

这些代码因为是工具自动生成的,所以也没仔细检查.一个小小的错误,导致的。

 

 

 

三 解决办法:

 

先在网上搜索大概的解决方法是:

 

3.1 由于使用ibatis的TempTestTableMapper.xml实现接口TempTestTableMapper.java中的方法的时候的id有重复的值,比如
    <select id="queryTempTestTableMap"    resultMap="TempTestTableResult"> 中的TempTestTableResult在一个xml文件中有两个这样的id,修改过来即可

 

 

 

3.2  user-mapper.xml如下

 

[html] view plain copy
 
 
技术分享技术分享技术分享技术分享
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2.  <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 3  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">  
  3.  <mapper namespace="com.bmdc.dj.user.dao.UserDao">  
  4.      <resultMap type="user" id="userResult">  
  5.          <id property="user_id" column="USER_ID"/>  
  6.          <result property="login_name" column="LOGIN_NAME"/>  
  7.          <result property="real_name" column="REAL_NAME"/>  
  8.          <result property="password" column="PASSWORD"/>  
  9.     </resultMap>  
  10.     <insert id="add" parameterType="user">  
  11.      insert into users (user_id, login_name, real_name, password)13         values(#{user_id}, #{login_name}, #{real_name}, #{password})      </insert>  
  12.  </mapper>  
[html] view plain copy
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2.  <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 3  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">  
  3.  <mapper namespace="com.bmdc.dj.user.dao.UserDao">  
  4.      <resultMap type="user" id="userResult">  
  5.          <id property="user_id" column="USER_ID"/>  
  6.          <result property="login_name" column="LOGIN_NAME"/>  
  7.          <result property="real_name" column="REAL_NAME"/>  
  8.          <result property="password" column="PASSWORD"/>  
  9.     </resultMap>  
  10.     <insert id="add" parameterType="user">  
  11.      insert into users (user_id, login_name, real_name, password)13         values(#{user_id}, #{login_name}, #{real_name}, #{password})      </insert>  
  12.  </mapper>  

其中,namespace是接口路径。

Mybatis.xml如下:

 

[html] view plain copy
 
 
技术分享技术分享技术分享技术分享
  1. <?xml version="1.0" encoding="UTF-8" ?>  
  2.  <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">  
  3.  <configuration>  
  4.    
  5.      <!-- 别名 -->  
  6.      <typeAliases>  
  7.          <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>  
  8.      </typeAliases>  
  9.       <mappers>      
  10.          <mapper resource="com/bmdc/dj/user/dao/user-mapper.xml" />      
  11.      </mappers>  
  12.  </configuration>  
[html] view plain copy
  1. <?xml version="1.0" encoding="UTF-8" ?>  
  2.  <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">  
  3.  <configuration>  
  4.    
  5.      <!-- 别名 -->  
  6.      <typeAliases>  
  7.          <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>  
  8.      </typeAliases>  
  9.       <mappers>      
  10.          <mapper resource="com/bmdc/dj/user/dao/user-mapper.xml" />      
  11.      </mappers>  
  12.  </configuration>  

 

  其他配置文件都正确,我就不写了。这样就会出现 Java.lang.IllegalArgumentException: Result Maps collection already contains value for XXX这个错误。

    解决办法是:删除Mybatis.xml中的<mappers>标签所有内容。因为如果user-mapper.xml与namespace的接口在同一路径下,就不需要在mybaits.xml中再进行配置了。

修改后的Mybatis.xml如下:

[html] view plain copy
 
 
技术分享技术分享技术分享技术分享
  1. <?xml version="1.0" encoding="UTF-8" ?>  
  2.  <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">  
  3.  <configuration>  
  4.    
  5.      <!-- 别名 -->  
  6.      <typeAliases>  
  7.          <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>  
  8.      </typeAliases>  
  9.  </configuration>  
[html] view plain copy
  1. <?xml version="1.0" encoding="UTF-8" ?>  
  2.  <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">  
  3.  <configuration>  
  4.    
  5.      <!-- 别名 -->  
  6.      <typeAliases>  
  7.          <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>  
  8.      </typeAliases>  
  9.  </configuration>  

3.3 insert 中的parameterType部分,之前我写的是类名,后来改为完整的包名+类名就好用了,不过,这个问题,其实在之前的iBatise2.x,是允许这样写的,有些不解了,不过看来以后需要注意了,尽量都用完整的包名+类名

 

3.4 sql语句返回时,使用<select id="xxx" resultType="example">与<resultMap id="example" type=“xxx”>相冲突导致的。将resulttype更改为resultmap即可解决该问题。

 

3.5  eclipse编译了一份在bin目录下,将bin目录或者WEB-INF下class目录清空即可

3.6  下载了个可以直接运行的eclipse 项目,再与之前的项目对比,好像也没什么不同。最后使绝招:代码对比工具,发现生成的PetMapper.xml多了几百行!原来是我在运行时没有把之前已经生成的PetMapper.xml删除掉,再次生成代码时,又附加了上去!所以在运行代码生成之前,要把以前已经生成的xml文件清掉,以防出错。

把网上搜到的解决办法一并贴出,方便自己以后查找错误。

我这里的解决办法是:

包路径配错了,前面说了代码是用工具自动生成的,所以生成resultType的配置和我真实项目的路径不一致造成的.

代码自定生成的路径:

技术分享

 

 

修改成项目正确的路径:

 

技术分享

 

 

 

mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案

标签:ltm   account   col   space   .net   时报   man   jsb   hang   

原文地址:http://www.cnblogs.com/cristin/p/7771795.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!