日期:2014-05-20  浏览次数:20876 次

spring无限循环注入导致内存溢出
2013-05-03 11:30:26,011 [// -  - ] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'crmTaskController'
2013-05-03 11:30:26,012 [// -  - ] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'crmTaskController'
2013-05-03 11:30:33.173:WARN::failed springmvc: java.lang.OutOfMemoryError: Java heap space
2013-05-03 11:30:33.188:WARN::failed org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1adf08f{/,E:\workspace\crm\webroot}: java.lang.OutOfMemoryError: Java heap space
2013-05-03 11:30:33.189:WARN::failed ContextHandlerCollection@e32b8e: java.lang.OutOfMemoryError: Java heap space
2013-05-03 11:30:33.190:WARN::failed HandlerCollection@40a746: java.lang.OutOfMemoryError: Java heap space
2013-05-03 11:30:33.191:WARN::Error starting handlers
java.lang.OutOfMemoryError: Java heap space
at java.lang.Class.copyMethods(Class.java:2745)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.buildAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:342)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.findAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:315)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(AutowiredAnnotationBeanPostProcessor.java:214)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:798)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:493)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)