?--Porg.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException

使用BoneCP作为连接池,在启动Tomcat报出以下异常:

一月 02, 2016 2:12:17 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mynewdpi' did not find a matching property.
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.59
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Jan 28 2015 15:51:10 UTC
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.59.0
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows XP
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 5.1
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jdk1.7.0_55\jre
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.7.0_55-b13
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: E:\Spring2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: E:\Tomcat7\apache-tomcat-7.0.59
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\Spring2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\Tomcat7\apache-tomcat-7.0.59
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=E:\Spring2\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\Tomcat7\apache-tomcat-7.0.59\endorsed
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
一月 02, 2016 2:12:17 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_55\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_60/bin/client;C:/Program Files/Java/jre1.8.0_60/bin;C:/Program Files/Java/jre1.8.0_60/lib/i386;C:\Program Files\Common Files\NetSarang;D:\MySQL_SOURE\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\oracle\product\10.1.0\db_1\bin;D:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;D:\oracle\product\10.1.0\db_1\jre\1.4.2\bin;C:\Program Files\Java\jdk1.7.0_55\bin;E:/apache-maven-3.3.3\bin;D:\STS;;.
一月 02, 2016 2:12:17 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8081"]
一月 02, 2016 2:12:17 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
一月 02, 2016 2:12:17 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1375 ms
一月 02, 2016 2:12:17 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 02, 2016 2:12:17 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.59
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
[INFO ] 2016-01-02 14:12:18,968 com.ikdy.servlet.SysListener.contextInitialized(SysListener.java:54) 0 -系统初始化目录:E:/Spring2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/mynewdpi/
[INFO ] 2016-01-02 14:12:19,031 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189) 63 -Root WebApplicationContext: initialization started
一月 02, 2016 2:12:19 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
[INFO ] 2016-01-02 14:12:19,093 org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:411) 125 -Refreshing org.springframework.web.context.support.XmlWebApplicationContext@758d51: display name [Root WebApplicationContext]; startup date [Sat Jan 02 14:12:19 CST 2016]; root of context hierarchy
[INFO ] 2016-01-02 14:12:19,203 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 235 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
[INFO ] 2016-01-02 14:12:19,375 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 407 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext_dao.xml]
[INFO ] 2016-01-02 14:12:19,468 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 500 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext_action_dwr.xml]
[INFO ] 2016-01-02 14:12:19,531 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 563 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext_action_struts2.xml]
[INFO ] 2016-01-02 14:12:19,546 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 578 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext_jdbc.xml]
[INFO ] 2016-01-02 14:12:19,562 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 594 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext_action_sedule.xml]
[INFO ] 2016-01-02 14:12:19,578 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 610 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext_quartz.xml]
[INFO ] 2016-01-02 14:12:19,609 org.springframework.beans.factory.support.DefaultListableBeanFactory.registerBeanDefinition(DefaultListableBeanFactory.java:467) 641 -Overriding bean definition for bean 'odsAccountService': replacing [Generic bean: class [com.royal.dpi.service.impl.OdsAccountService]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext_dao.xml]] with [Generic bean: class [com.royal.dpi.service.impl.OdsAccountService]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext_quartz.xml]]
[INFO ] 2016-01-02 14:12:19,640 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 672 -Loading XML bean definitions from ServletContext resource [/WEB-INF/xfire-servlet.xml]
[INFO ] 2016-01-02 14:12:19,671 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 703 -Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/xfire.xml]
[INFO ] 2016-01-02 14:12:19,718 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 750 -Loading XML bean definitions from class path resource [org/codehaus/xfire/spring/customEditors.xml]
[INFO ] 2016-01-02 14:12:19,750 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:323) 782 -Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext_aop.xml]
[INFO ] 2016-01-02 14:12:19,984 org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:426) 1016 -Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@758d51]: org.springframework.beans.factory.support.DefaultListableBeanFactory@a74
[INFO ] 2016-01-02 14:12:20,640 org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:178) 1672 -Loading properties file from class path resource [jdbc.properties]
[INFO ] 2016-01-02 14:12:20,875 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:414) 1907 -Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a74: defining beans [abstrateBaseDao,baseDao,adminDao,adminService,adminlogDao,adminlogService,purviewDao,purviewService,classDao,classService,roleDao,roleService,rolePurviewDao,rolePurviewService,odsAccountDao,odsAccountService,strategyDao,strategyService,strategyCopyDao,strategyCopyService,customerDao,customerService,kcGroupDao,kcGroupService,domainDao,domainService,advFormDao,advFormService,strategyLogDao,strategyLogService,userGroupDetailService,userGroupDetailDao,strategyAccountDao,strategyAccountService,realStrategyDao,realStrategyService,vUCUtil,freedomainDao,freedomainService,freeAccountDao,freeAccountService,userGroupDao,userGroupService,lbsDao,lbsService,realStrategyLogDao,realStrategyLogService,strategyScheduleService,strategyStatisticsDao,strategyStatisticsService,agentUnitDao,agentUnitService,strategyBizDao,strategyBizService,statSummaryDao,statSummaryService,strategyBillDao,strategyBillService,companyDao,companyService,accountBillDao,accountBillService,accountStrategyDao,accountStrategyService,accountBillDetailDao,whiteListService,whiteListDao,tpvService,searchIEService,searchIEDao,channelService,channelDao,ifreeChannelService,ifreeChannelDao,channelOperatorDao,channelOperatorService,platformDao,platformService,wgListCodeDao,wgListCodeService,iInterfaceDeployDao,interfaceDelpoyService,interfaceLogInfoDao,interfaceLogInfoService,userGroupFinderDao,userGroupFinderService,purseDao,purseService,purseOperateDao,purseOperateService,strategyRecycleDao,strategyRecycleService,strategyCheckDao,strategyCheckService,topLevelDomainDao,topLevelDomainService,twoLevelDomainDao,twoLevelDomainService,channelRelationService,channelRelationDao,strategyRelationService,strategyRelationDao,strategyDomainDao,strategyDomainService,pushDetailDao,pushDetailService,childStrategyDao,childStrategyService,urlCheckDao,urlCheckService,adminPurview,adminAction,adminlogAction,adminlogPurview,purviewAction,purviewPurview,classAction,classPurview,utilAction,utilPurview,roleAction,rolePurview,odsAccountAction,odsAccountPurview,strategyAction,strategyPurview,strategyCopyAction,strategyCopyPurview,kcGroupAction,kcGroupPurview,advFormAction,advFormPurview,domainPurview,domainAction,realStragegyPurview,realStragegyAction,userGroupPurview,userGroupAction,userGroupDetailPurview,userGroupDetailAction,strategyStatisticsPurview,strategyStatisticsAction,agentUnitPurview,agentUnitAction,lbsPurview,lbsAction,strategyBillPurview,strategyBillAction,companyPurview,companyAction,accountBillPurview,accountBillAction,whiteListPurview,whiteListAction,dbPurview,dbAction,customerPurview,customerAction,tpvPurview,tpvAction,searchIEPurview,searchIEAction,channelPurview,channelAction,channelOperatorPurview,channelOperatorAction,sendUserPurview,sendUserAction,interfaceDeployPurview,interfaceDeployAction,interfaceLogInfoPurview,interfaceLogInfoAction,pursePurview,purseAction,purseOperatePurview,purseOperateAction,strategyRecyclePurview,strategyRecycleAction,strategyCheckPurview,strategyCheckAction,topLevelDomainPurview,topLevelDomainAction,twoLevelDomainPurview,twoLevelDomainAction,pushDetailPurview,pushDetailAction,childStrategyPurview,childStrategyAction,urlCheckPurview,urlCheckAction,unsubscribeSpring,gameThroughTrainSpring,domainTreeActionSpring,jdbcBaseDao,systemJdbcDao,kcAccountJdbcDao,kcOdsAccountJdbcDao,odsAccountJdbcDao,strategyAccountJdbcDao,scheduleBridgeJdbcDao,sumOfOutboundJdbcDao,sumOfOutboundService,vucUtilService,dbFactory,scheduler,stopStrategyQuartz,stopStrategyQuartzTrigger,UpdateStrategyScheduleQuartz,UpdateStrategyScheduleQuartzTrigger,TBalanceStatisticsQuartz,AccountBillQuartzTrigger,OdsAccountQuartz,OdsAccountQuartzTrigger,PvAndHitsQuartz,PvAndHitsQuartzTrigger,tagsQuartz,tagsQuartzTrigger,UCFileQuartz,UCFileQuartzTrigger,ods2txtQuartz,ods2txtQuartzTrigger,policyTxtClass,PolicyTxtQuartz,PolicyTxtQuartzTrigger,exportExeclReportQuartz,exportExeclReportTrigger,expCsvFileQuartz,expCsvFileQuartzTrigger,UpdatePushCountQuartz,UpdatePushCountTrigger,CloudQuartz,CloudQuartzTrigger,UpdateCustomerQuartz,UpdateCustomerQuartzTrigger,reCreateSeqQuartz,reCreateSeqQuartzTrigger,deleteStrategyQuartz,deleteStrategyQuartzTrigger,xfire.customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider,strategyKeyInServiceImpl,strategyKeyInService,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,todsInfoServiceImpl,todsInfoService,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,webService,freeChannelServiceImpl,freeChannelService,accountBalanceServiceImpl,accountBalanceService,updateBalanceServiceImpl,updateBalanceService,wgListServiceImpl,wgListService,channelInfoSynchServiceImpl,channelInfoSynchService,thirdPartyUserGroupServiceImpl,thirdPartyUserGroupService,domainClassServiceImpl,domainClassService,statisticsServiceImpl,statisticsService,testService,iTestService,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,interfaceAceptBeanPointCut,interfaceAceptBean,org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer#0,dataSource,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,sessionFactory,transactionManager,hibernateTemplate,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,jdbcTemplate,JdbctransactionManager]; root of factory hierarchy
[INFO ] 2016-01-02 14:12:21,593 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:421) 2625 -Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a74: defining beans [abstrateBaseDao,baseDao,adminDao,adminService,adminlogDao,adminlogService,purviewDao,purviewService,classDao,classService,roleDao,roleService,rolePurviewDao,rolePurviewService,odsAccountDao,odsAccountService,strategyDao,strategyService,strategyCopyDao,strategyCopyService,customerDao,customerService,kcGroupDao,kcGroupService,domainDao,domainService,advFormDao,advFormService,strategyLogDao,strategyLogService,userGroupDetailService,userGroupDetailDao,strategyAccountDao,strategyAccountService,realStrategyDao,realStrategyService,vUCUtil,freedomainDao,freedomainService,freeAccountDao,freeAccountService,userGroupDao,userGroupService,lbsDao,lbsService,realStrategyLogDao,realStrategyLogService,strategyScheduleService,strategyStatisticsDao,strategyStatisticsService,agentUnitDao,agentUnitService,strategyBizDao,strategyBizService,statSummaryDao,statSummaryService,strategyBillDao,strategyBillService,companyDao,companyService,accountBillDao,accountBillService,accountStrategyDao,accountStrategyService,accountBillDetailDao,whiteListService,whiteListDao,tpvService,searchIEService,searchIEDao,channelService,channelDao,ifreeChannelService,ifreeChannelDao,channelOperatorDao,channelOperatorService,platformDao,platformService,wgListCodeDao,wgListCodeService,iInterfaceDeployDao,interfaceDelpoyService,interfaceLogInfoDao,interfaceLogInfoService,userGroupFinderDao,userGroupFinderService,purseDao,purseService,purseOperateDao,purseOperateService,strategyRecycleDao,strategyRecycleService,strategyCheckDao,strategyCheckService,topLevelDomainDao,topLevelDomainService,twoLevelDomainDao,twoLevelDomainService,channelRelationService,channelRelationDao,strategyRelationService,strategyRelationDao,strategyDomainDao,strategyDomainService,pushDetailDao,pushDetailService,childStrategyDao,childStrategyService,urlCheckDao,urlCheckService,adminPurview,adminAction,adminlogAction,adminlogPurview,purviewAction,purviewPurview,classAction,classPurview,utilAction,utilPurview,roleAction,rolePurview,odsAccountAction,odsAccountPurview,strategyAction,strategyPurview,strategyCopyAction,strategyCopyPurview,kcGroupAction,kcGroupPurview,advFormAction,advFormPurview,domainPurview,domainAction,realStragegyPurview,realStragegyAction,userGroupPurview,userGroupAction,userGroupDetailPurview,userGroupDetailAction,strategyStatisticsPurview,strategyStatisticsAction,agentUnitPurview,agentUnitAction,lbsPurview,lbsAction,strategyBillPurview,strategyBillAction,companyPurview,companyAction,accountBillPurview,accountBillAction,whiteListPurview,whiteListAction,dbPurview,dbAction,customerPurview,customerAction,tpvPurview,tpvAction,searchIEPurview,searchIEAction,channelPurview,channelAction,channelOperatorPurview,channelOperatorAction,sendUserPurview,sendUserAction,interfaceDeployPurview,interfaceDeployAction,interfaceLogInfoPurview,interfaceLogInfoAction,pursePurview,purseAction,purseOperatePurview,purseOperateAction,strategyRecyclePurview,strategyRecycleAction,strategyCheckPurview,strategyCheckAction,topLevelDomainPurview,topLevelDomainAction,twoLevelDomainPurview,twoLevelDomainAction,pushDetailPurview,pushDetailAction,childStrategyPurview,childStrategyAction,urlCheckPurview,urlCheckAction,unsubscribeSpring,gameThroughTrainSpring,domainTreeActionSpring,jdbcBaseDao,systemJdbcDao,kcAccountJdbcDao,kcOdsAccountJdbcDao,odsAccountJdbcDao,strategyAccountJdbcDao,scheduleBridgeJdbcDao,sumOfOutboundJdbcDao,sumOfOutboundService,vucUtilService,dbFactory,scheduler,stopStrategyQuartz,stopStrategyQuartzTrigger,UpdateStrategyScheduleQuartz,UpdateStrategyScheduleQuartzTrigger,TBalanceStatisticsQuartz,AccountBillQuartzTrigger,OdsAccountQuartz,OdsAccountQuartzTrigger,PvAndHitsQuartz,PvAndHitsQuartzTrigger,tagsQuartz,tagsQuartzTrigger,UCFileQuartz,UCFileQuartzTrigger,ods2txtQuartz,ods2txtQuartzTrigger,policyTxtClass,PolicyTxtQuartz,PolicyTxtQuartzTrigger,exportExeclReportQuartz,exportExeclReportTrigger,expCsvFileQuartz,expCsvFileQuartzTrigger,UpdatePushCountQuartz,UpdatePushCountTrigger,CloudQuartz,CloudQuartzTrigger,UpdateCustomerQuartz,UpdateCustomerQuartzTrigger,reCreateSeqQuartz,reCreateSeqQuartzTrigger,deleteStrategyQuartz,deleteStrategyQuartzTrigger,xfire.customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider,strategyKeyInServiceImpl,strategyKeyInService,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,todsInfoServiceImpl,todsInfoService,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,webService,freeChannelServiceImpl,freeChannelService,accountBalanceServiceImpl,accountBalanceService,updateBalanceServiceImpl,updateBalanceService,wgListServiceImpl,wgListService,channelInfoSynchServiceImpl,channelInfoSynchService,thirdPartyUserGroupServiceImpl,thirdPartyUserGroupService,domainClassServiceImpl,domainClassService,statisticsServiceImpl,statisticsService,testService,iTestService,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,interfaceAceptBeanPointCut,interfaceAceptBean,org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer#0,dataSource,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,sessionFactory,transactionManager,hibernateTemplate,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,jdbcTemplate,JdbctransactionManager]; root of factory hierarchy
[ERROR] 2016-01-02 14:12:21,640 org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215) 2672 -Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDao' defined in ServletContext resource [/WEB-INF/applicationContext_dao.xml]: Cannot resolve reference to bean 'hibernateTemplate' while setting bean property 'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 40 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 53 more
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
... 64 more
一月 02, 2016 2:12:21 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDao' defined in ServletContext resource [/WEB-INF/applicationContext_dao.xml]: Cannot resolve reference to bean 'hibernateTemplate' while setting bean property 'hibernateTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 40 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 53 more
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'username' threw exception; nested exception is java.lang.NullPointerException
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'password' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
... 64 more

一月 02, 2016 2:12:21 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
一月 02, 2016 2:12:21 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/mynewdpi] startup failed due to previous errors
一月 02, 2016 2:12:21 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
一月 02, 2016 2:12:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8081"]
一月 02, 2016 2:12:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
一月 02, 2016 2:12:21 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4237 ms

问题没有解决,没有办法,只是将连接池换为cp30,以下是配置信息。

jdbc.properties

#hibernate.connection.provider_class=com.jolbox.bonecp.BoneCPDataSource
#hibernate.connection.provider_class=com.jolbox.bonecp.provider.BoneCPConnectionProvider
# c3p0
hibernate.connection.provider_class=com.mchange.v2.c3p0.ComboPooledDataSource
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
hibernate.connection.url=jdbc\:oracle\:thin\:@localhost\:1521\:myorcl
hibernate.connection.username=mynewdpi
hibernate.connection.password=root

applicationContext.xml

    <!--配置c3p0连接池 -->
<bean id="dataSource" class="${hibernate.connection.provider_class}" ><!-- destroy-method="close" -->
<property name="driverClass" value="${hibernate.connection.driver_class}" />
<property name="jdbcUrl" value="${hibernate.connection.url}" />
<property name="user" value="mynewdpi"/><!-- BoneCP是 username -->
<property name="password" value="root"/>
</bean>

解决方法待续..

上一篇:CSS3 box-shadow快速教程


下一篇:mybatis 在xml文件中获取当前时间的sql