mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案
Posted Cristin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案相关的知识,希望对你有一定的参考价值。
Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
一 错误信息:
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)
- at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)
- at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)
- at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache(RequestMappingHandlerAdapter.java:621)
- at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.afterPropertiesSet(RequestMappingHandlerAdapter.java:494)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 46 more
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)
- at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)
- at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)
- at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.initExceptionHandlerAdviceCache(ExceptionHandlerExceptionResolver.java:287)
- at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.afterPropertiesSet(ExceptionHandlerExceptionResolver.java:225)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 46 more
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)
- at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:523)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:357)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:335)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:322)
- at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1174)
- at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:73)
- at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
- at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
- at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
- at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
- at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)
- at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:399)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1481)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 52 more
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 31 more
- 19:26:05,586 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:444) - Destroying singletons in org.s[email protected]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
- 19:26:05,597 INFO [com.alibaba.druid.pool.DruidDataSource] (com.alibaba.druid.pool.DruidDataSource:1050) - {dataSource-1} closed
- 19:26:05,598 ERROR [org.springframework.web.context.ContextLoader] (org.springframework.web.context.ContextLoader:319) - Context initialization failed
- 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
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- 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
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:81)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- ... 22 more
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- ... 25 more
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 31 more
- 2015-06-02 19:26:05.598:WARN::Failed startup of context [email protected]{/,src/main/webapp}
- 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
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- 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:
- java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- 2015-06-02 19:26:05.611:INFO::Started [email protected]:80
- 2015-06-02 19:26:05.612:INFO::Started [email protected]:8009
- 2015-06-02 19:26:05.612:INFO::AJP13 is not a secure protocol. Please protect port 8009
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)
- at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)
- at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)
- at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache(RequestMappingHandlerAdapter.java:621)
- at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.afterPropertiesSet(RequestMappingHandlerAdapter.java:494)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 46 more
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:582)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAnnotationOnBean(DefaultListableBeanFactory.java:483)
- at org.springframework.context.support.AbstractApplicationContext.findAnnotationOnBean(AbstractApplicationContext.java:1198)
- at org.springframework.web.method.ControllerAdviceBean.findAnnotatedBeans(ControllerAdviceBean.java:93)
- at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.initExceptionHandlerAdviceCache(ExceptionHandlerExceptionResolver.java:287)
- at org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver.afterPropertiesSet(ExceptionHandlerExceptionResolver.java:225)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 46 more
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1362)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:726)
- at org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:523)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:357)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:335)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:322)
- at org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:1174)
- at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:73)
- at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
- at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
- at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
- at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
- at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)
- at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:399)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1481)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 52 more
- 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.
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 31 more
- 19:26:05,586 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:444) - Destroying singletons in org.s[email protected]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
- 19:26:05,597 INFO [com.alibaba.druid.pool.DruidDataSource] (com.alibaba.druid.pool.DruidDataSource:1050) - {dataSource-1} closed
- 19:26:05,598 ERROR [org.springframework.web.context.ContextLoader] (org.springframework.web.context.ContextLoader:319) - Context initialization failed
- 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
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- 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
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:81)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- ... 22 more
- 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
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:97)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- ... 25 more
- Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- ... 31 more
- 2015-06-02 19:26:05.598:WARN::Failed startup of context [email protected]{/,src/main/webapp}
- 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
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1488)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- 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:
- java.lang.IllegalArgumentException: Result Maps collection already contains value for xyx.dsw.dao.mapper.admin.quotationwish.TempTestTableMapper.TempTestTableResult
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:578)
- at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:551)
- at org.apache.ibatis.session.Configuration.addResultMap(Configuration.java:356)
- at org.apache.ibatis.builder.MapperBuilderAssistant.addResultMap(MapperBuilderAssistant.java:138)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:231)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:201)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:196)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:93)
- at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:73)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:119)
- at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:92)
- at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:45)
- at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:462)
- at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:78)
- at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1547)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1485)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
- at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
- at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
- at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
- at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
- at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
- at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
- at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
- at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
- at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
- at org.mortbay.jetty.Server.doStart(Server.java:224)
- at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
- at runjettyrun.Bootstrap.main(Bootstrap.java:275)
- 2015-06-02 19:26:05.611:INFO::Started [email protected]:80
- 2015-06-02 19:26:05.612:INFO::Started [email protected]:8009
- 2015-06-02 19:26:05.612:INFO::AJP13 is not a secure protocol. Please protect port 8009
二 原因分析:
这些代码因为是工具自动生成的,所以也没仔细检查.一个小小的错误,导致的。
三 解决办法:
<select id="queryTempTestTableMap" resultMap="TempTestTableResult"> 中的TempTestTableResult在一个xml文件中有两个这样的id,修改过来即可
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 3 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.bmdc.dj.user.dao.UserDao">
- <resultMap type="user" id="userResult">
- <id property="user_id" column="USER_ID"/>
- <result property="login_name" column="LOGIN_NAME"/>
- <result property="real_name" column="REAL_NAME"/>
- <result property="password" column="PASSWORD"/>
- </resultMap>
- <insert id="add" parameterType="user">
- insert into users (user_id, login_name, real_name, password)13 values(#{user_id}, #{login_name}, #{real_name}, #{password}) </insert>
- </mapper>
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 3 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.bmdc.dj.user.dao.UserDao">
- <resultMap type="user" id="userResult">
- <id property="user_id" column="USER_ID"/>
- <result property="login_name" column="LOGIN_NAME"/>
- <result property="real_name" column="REAL_NAME"/>
- <result property="password" column="PASSWORD"/>
- </resultMap>
- <insert id="add" parameterType="user">
- insert into users (user_id, login_name, real_name, password)13 values(#{user_id}, #{login_name}, #{real_name}, #{password}) </insert>
- </mapper>
其中,namespace是接口路径。
Mybatis.xml如下:
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
- <configuration>
- <!-- 别名 -->
- <typeAliases>
- <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>
- </typeAliases>
- <mappers>
- <mapper resource="com/bmdc/dj/user/dao/user-mapper.xml" />
- </mappers>
- </configuration>
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
- <configuration>
- <!-- 别名 -->
- <typeAliases>
- <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>
- </typeAliases>
- <mappers>
- <mapper resource="com/bmdc/dj/user/dao/user-mapper.xml" />
- </mappers>
- </configuration>
其他配置文件都正确,我就不写了。这样就会出现 Java.lang.IllegalArgumentException: Result Maps collection already contains value for XXX这个错误。
解决办法是:删除Mybatis.xml中的<mappers>标签所有内容。因为如果user-mapper.xml与namespace的接口在同一路径下,就不需要在mybaits.xml中再进行配置了。
修改后的Mybatis.xml如下:
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
- <configuration>
- <!-- 别名 -->
- <typeAliases>
- <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>
- </typeAliases>
- </configuration>
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
- <configuration>
- <!-- 别名 -->
- <typeAliases>
- <typeAlias type="com.bmdc.dj.user.domain.User" alias="user"/>
- </typeAliases>
- </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”的解决方案的主要内容,如果未能解决你的问题,请参考以下文章
Mybatis异常_02_Result Maps collection already contains value for
启动springboot项目时报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
新建spring-boot maven mybatis 工程,启动时报找不到Mapper可能的原因
项目启动时报错:Result Maps collection already contains value for com.xxx.xxx.xx.mapper.XxxMapper.baseResult