[英]jboss 7 java.lang.OutOfMemoryError: Java heap space
salem, 塞勒姆
I work with jboss 7 , spring ,hibernate, 我与jboss 7一起工作,春季,休眠,
under eclipse I make this config in order to increase the memory : 在eclipse下,我进行此配置以增加内存:
-Xms1024M -Xms1024M
this is the config of VM arguments 这是VM参数的配置
-server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true "-Dorg.jboss.boot.log.file=C:/test/jboss-as-7.1.1.Final/standalone/log/boot.log" "-Dlogging.configuration=file:/C:/test/jboss-as-7.1.1.Final/standalone/configuration/logging.properties" "-Djboss.home.dir=C:/test/jboss-as-7.1.1.Final" -Xms1024M
and when I work in my application I have this error : 当我在应用程序中工作时,出现此错误:
I have a message which repeats : 我有一条重复的消息:
11:08:35,098 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer' 11:08:35,098错误[org.directwebremoting.impl.DefaultConverterManager](http-localhost-127.0.0.1-8080-6)找不到用于org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer的转换器
11:08:35,098 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,109 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,129 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,136 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,143 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,182 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,193 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,197 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,215 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,224 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,234 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,242 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,264 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,272 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,300 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:35,360 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:37,182 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:37,216 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:37,293 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:37,416 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:39,309 ERROR [org.directwebremoting.impl.DefaultConverterManager] (http-localhost-127.0.0.1-8080-6) No converter found for 'org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer'
11:08:58,234 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TaifLicensing].[dwr-invoker]] (http-localhost-127.0.0.1-8080-6) "Servlet.service()" pour la servlet dwr-invoker a généré une exception: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882) [rt.jar:1.6.0_25]
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) [rt.jar:1.6.0_25]
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) [rt.jar:1.6.0_25]
at java.lang.StringBuffer.append(StringBuffer.java:224) [rt.jar:1.6.0_25]
at org.directwebremoting.extend.ArrayOutboundVariable.getAssignCode(ArrayOutboundVariable.java:101) [dwr.jar:]
at org.directwebremoting.extend.ScriptBufferUtil.createOutput(ScriptBufferUtil.java:95) [dwr.jar:]
at org.directwebremoting.dwrp.BaseCallHandler$CallScriptConduit.addScript(BaseCallHandler.java:485) [dwr.jar:]
at org.directwebremoting.dwrp.BaseCallHandler.marshallOutbound(BaseCallHandler.java:345) [dwr.jar:]
at org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:105) [dwr.jar:]
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120) [dwr.jar:]
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141) [dwr.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:150) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183) [spring-security-web-3.2.0.M1.jar:3.2.0.M1]
It looks like you are trying to retrieve an object with a circular relationship, that's why you are getting so many JavassistLazyInitializer
exception messages. 看起来您正在尝试检索具有循环关系的对象,这就是为什么您收到如此多
JavassistLazyInitializer
异常消息的原因。 Hibernate will just continue going in circles trying to create your nested objects until you run out of heap space. Hibernate只会继续尝试创建嵌套对象,直到堆空间用完为止。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.