求助! 启动服务器报错!100分!!!!!!!!

关山万里 2016-05-05 10:06:18
环境 springmvc+spring+mybatis+maven


2016-05-05 10:13:37,748 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,752 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,755 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgChangeInfoDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgChangeInfoDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,762 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgChangeInfoDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgChangeInfoDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,768 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgChangeInfoDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgChangeInfoDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,771 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,776 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,779 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgChangeInfoDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgChangeInfoDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,785 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgChangeInfoDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgChangeInfoDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,789 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgChangeInfoDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgChangeInfoDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,804 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:13:37,806 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orgInfoDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgInfoDao.class]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'sqlSessionFactory' threw exception; nested exception is java.lang.StackOverflowError
...全文
275 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
LS1firesoar 2016-05-06
  • 打赏
  • 举报
回复
 
Failed to instantiate [com.alibaba.druid.pool.DruidDataSource]: Constructor threw exception; nested exception is java.lang.StackOverflowError
初始化datasource的时候出现的栈溢出 仔细检查下。 试试:-Xms1024M -Xmx1024M 这2个值设置成一样 最好
LS1firesoar 2016-05-06
  • 打赏
  • 举报
回复
-XX:PermSize=128M -XX:MaxPermSize=128m 永久代 你是否设置的太大了 你也要试试 对应的2个值 都设置成一样的。避免 虚拟机经常的扩展内存
关山万里 2016-05-05
  • 打赏
  • 举报
回复
现在问题定位到了,直接Run运行的话没有问题,DUBUG就有问题,怎么办
奄灬苟且偷生 2016-05-05
  • 打赏
  • 举报
回复
你配置的内存越高,就是说编译的时候会先将代码放到内存中,然后再写到硬盘里,一直重复这个动作直到编译结束 项目要是很大的话,你要分配给他更大的内存,和栈的大小,要不总会出现溢出的情况
关山万里 2016-05-05
  • 打赏
  • 举报
回复


还是不行,我这太郁闷了,有时候能起来有时候起不来,起服务器正常需要30秒,有时候就这样一直刷错误信息刷1分多钟,然后起不来,为什么啊
关山万里 2016-05-05
  • 打赏
  • 举报
回复
引用 4 楼 bree06 的回复:
java.lang.StackOverflowError内存溢出了.看一下JVM分配的内存多大,实际使用内存多大
感谢!刚才做了修改,加上了:-Xms256M -Xmx512M -XX:PermSize=256m -XX:MaxPermSize=512m 现在服务器可以启动,但是以下错误信息依然回出现,以前是没有这些的

2016-05-05 10:25:15,653 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - Loading properties file from class path resource [jdbc.properties]
2016-05-05 10:25:16,005 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentLoginDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/ecp/dao/AgentLoginDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Initialization of bean failed; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Initialization of bean failed; nested exception is java.lang.StackOverflowError
2016-05-05 10:25:16,038 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.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 file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\jdbc.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.druid.pool.DruidDataSource]: Constructor threw exception; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.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 file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\jdbc.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.druid.pool.DruidDataSource]: Constructor threw exception; nested exception is java.lang.StackOverflowError
bree06 2016-05-05
  • 打赏
  • 举报
回复
java.lang.StackOverflowError内存溢出了.看一下JVM分配的内存多大,实际使用内存多大
关山万里 2016-05-05
  • 打赏
  • 举报
回复
对了,还有就是用的dubbo
关山万里 2016-05-05
  • 打赏
  • 举报
回复
谁知道分怎么加啊! 忘了改了
关山万里 2016-05-05
  • 打赏
  • 举报
回复

2016-05-05 10:14:22,394 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\dubbo-provider.xml]
2016-05-05 10:14:22,425 INFO [com.alibaba.dubbo.common.logger.LoggerFactory] - using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter
2016-05-05 10:14:22,527 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\jdbc.xml]
2016-05-05 10:14:22,537 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]
2016-05-05 10:14:22,546 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\property.xml]
2016-05-05 10:14:22,552 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\redis.xml]
2016-05-05 10:14:22,560 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\transation.xml]
2016-05-05 10:14:22,995 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - Loading properties file from class path resource [jdbc.properties]
2016-05-05 10:14:23,341 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentLoginDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/ecp/dao/AgentLoginDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Initialization of bean failed; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Initialization of bean failed; nested exception is java.lang.StackOverflowError
2016-05-05 10:14:23,435 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:14:23,463 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orgStatusDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/core/dao/teamManage/OrgStatusDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.StackOverflowError
2016-05-05 10:14:23,474 WARN [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentLoginDao' defined in URL [jar:file:/D:/myworkspace1/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PF_PAS/WEB-INF/lib/PF_DPI-0.0.1-SNAPSHOT.jar!/com/pearflowers/ecp/dao/AgentLoginDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\myworkspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PF_PAS\WEB-INF\classes\spring\mybatis.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.StackOverflowError

关山万里 2016-05-05
  • 打赏
  • 举报
回复
以前项目好好的,但是有一个组和我们并行开发,昨天合并版本,然后就这样了,弄了一整天没好!!!
tianfang 2016-05-05
  • 打赏
  • 举报
回复
我估计,你们两个组编译方法不一样,一个用maven,一个用eclipse导致的,也可能是jdk版本差异引起的 https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html maven 编译参数 debug缺省是true,这个也可能是原因
DNS 服务器程序 实验报告 系统和运行环境描述 Windows7 操作系统平台,VS2010 编程环境。 使用 C/C++编写 dns 中继服务器。 系统功能设计 设计 DNS 服务器程序,读入 域名-IP 地址 对照表,当客户端查询域名对应的 IP 地址时,用域名检索该对照表,有三种检索结果: (1)检索结果为 ip 地址 0.0.0.0,则向客户端返回 域名不存在 的报错消息 (不良网站拦截功能) (2)检索结果为普通 IP 地址,则向客户返回这个地址(服务器功能) (3)表中未检到该域名,则向因特网 DNS 服务器发出查询,并将结果返给客户 端(中继功能) 。 需要考虑的问题: (1)多客户端并发 允许多个客户端(可能会位于不同的多个计算机)的并发查询,即:允许第一个 查询尚未得到答案前就启动处理另外一个客户端查询请求(DNS 协议头中 ID 字 段的作用) 超时处理 (2)由于 UDP 的不可靠性,考虑求助外部 DNS 服务器(中继)却不能得到应答 或者收到迟到应答的情形。 主要数据结构 主要的全局的数据结构定义在 dns.h 的头文件中。 struct req_inform{ struct sockaddr_in cli_addr; unsigned short id; };//id和 cli_addr 唯一标识一个DNS请求 该结构唯一标示了一个来自客户端的 dns 请求。 map url_ip_table; 用来构建本地存储的 url_ip_table.txt 中域名和 IP 的映射。 map req_cache[cache_num]; 这一个 map 映射,把客户端 dns 请求映射到一个 unsigned short 上面,用它来 存储 id 转换表。另外和 id 转换表相关的参数是如下: #define cache_num 3 #define cache_size 1000 int cur_cache=0; int idThen_max=cache_num*cache_size; int idThen=0; cache_num 指定了 id 转换表的个数,cache_size 是每个 id 转换表的大小, cur_cache 指向是当前正在装入的 id 转换表, idThen 是一个从 0 到 0xFFFF 一直 循环的被映射到的 id 号。 这个设计的作用是代替了时间戳,而且可以根据实际情况来指定 id 转换表缓存 的大小。 具体流程是: 生成 id 转换的 item(idThen,struct req_inform 的一个变量) 把 id 转换的 item 加入到 req_cache[cur_cache]中 如果 req_cache[cur_cache]已经达到 cache_size{ cur_cache 指向下一个 id 转换表,并将其清空 } idThen 加 1 具体实现在 dns_fuc.cpp 的 ask_next_server 函数中。 int sockfd; struct sockaddr_in ser_addr,nser_addr; sockfd 是一个绑定到 ser_addr(dns 服务器本机 53 号端口)的一个 socket 描述 符,用它来进行 udp 报文传输。 ser_addr 初始化为本地 53 号端口的地址, nser_addr 是上级服务器的 53 号端口 (中继功能时使用) 。 const char * nx_ip="211.68.71.4";//保存上级服务器的 ip const char * file_name="C:/Users/Administrator/Desktop/dns/dns/url_ip_table.txt"; //保存 url_ip_table.txt 的路径 struct dns_ans_add{ unsigned short url_pointer; unsigned short type; unsigned short clas_s; unsigned short time1; unsigned short time2; unsigned short sourse_size; unsigned int sourse; }; 这个是与 dns 请求相比 dns 响应追加部。 模块划 int get_url_ip_table( map& table); 用来从文件中读入 url_ip_table。 int init(); 用来初始化 ser_addr、nser_addr、sockfd,以及对 sockfd 绑定

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧