java.lang.OutOfMemoryError: Requested array size exceeds VM limit

JFrog JIRA | Ariel Seftel | 5 months ago
  1. 0

    In case that you have a lot of permission targets that each one includes a few groups, once you browse to the Admin --> Security --> Users page the page won't load and you will get the below exception: {code} Jun 28, 2016 5:44:37 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException SEVERE: The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container java.lang.OutOfMemoryError: Requested array size exceeds VM limit at java.util.Arrays.copyOf(Arrays.java:3332) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421) at java.lang.StringBuilder.append(StringBuilder.java:136) at java.lang.StringBuilder.append(StringBuilder.java:131) at java.util.AbstractCollection.toString(AbstractCollection.java:462) at org.artifactory.rest.common.service.ArtifactoryRestResponse.getObject(ArtifactoryRestResponse.java:129) at org.artifactory.rest.common.service.ArtifactoryRestResponse.getEntity(ArtifactoryRestResponse.java:108) at org.artifactory.rest.common.util.ResponseHandler.buildJerseyResponse(ResponseHandler.java:38) at org.artifactory.rest.common.service.ArtifactoryRestResponse.buildResponse(ArtifactoryRestResponse.java:196) at org.artifactory.rest.common.service.ServiceExecutor.process(ServiceExecutor.java:40) at org.artifactory.rest.common.resource.BaseResource.runService(BaseResource.java:127) at org.artifactory.ui.rest.resource.admin.security.user.UserResource.getUser(UserResource.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) {code}

    JFrog JIRA | 5 months ago | Ariel Seftel
    java.lang.OutOfMemoryError: Requested array size exceeds VM limit
  2. 0

    OutOfMemoryError what to increase and how?

    Stack Overflow | 7 years ago | Pentium10
    java.lang.OutOfMemoryError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Odd observation during debugging

    velocity-user | 4 years ago | Christopher Schultz
    java.lang.OutOfMemoryError: Java heap space
  5. 0

    The ReflectionToStringBuilder.toString() is running out of memory for tables/objects that have One-To-Many, Many-To-One, and Many-To-Many relationships with only a few records. I tried compressing the project tree, but it is 14MBs. Is there another way I can get it to you? The _TLC.mwb is the MySQL Workbench file that show the database ERD. Jul 01, 2014 7:28:58 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:2694) at java.lang.String.<init>(String.java:203) at java.lang.StringBuilder.toString(StringBuilder.java:405) at java.util.AbstractCollection.toString(AbstractCollection.java:452) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Quarter_Roo_ToString.ajc$interMethod$com_app_myschool_model_Quarter_Roo_ToString$com_app_myschool_model_Quarter$toString(Quarter_Roo_ToString.aj:13) at com.app.myschool.model.Quarter.toString(Quarter.java:1) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuilder.append(StringBuilder.java:128) at java.util.AbstractCollection.toString(AbstractCollection.java:450) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Student_Roo_ToString.ajc$interMethod$com_app_myschool_model_Student_Roo_ToString$com_app_myschool_model_Student$toString(Student_Roo_ToString.aj:13) Jul 01, 2014 7:28:58 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:2694) at java.lang.String.<init>(String.java:203) at java.lang.StringBuilder.toString(StringBuilder.java:405) at java.util.AbstractCollection.toString(AbstractCollection.java:452) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Quarter_Roo_ToString.ajc$interMethod$com_app_myschool_model_Quarter_Roo_ToString$com_app_myschool_model_Quarter$toString(Quarter_Roo_ToString.aj:13) at com.app.myschool.model.Quarter.toString(Quarter.java:1) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuilder.append(StringBuilder.java:128) at java.util.AbstractCollection.toString(AbstractCollection.java:450) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Student_Roo_ToString.ajc$interMethod$com_app_myschool_model_Student_Roo_ToString$com_app_myschool_model_Student$toString(Student_Roo_ToString.aj:13) 2014-07-01 19:28:58,764 [tomcat-http--7] DEBUG org.springframework.web.servlet.DispatcherServlet - Could not complete request org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/default.jspx'. at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:692) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321) at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:124) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.tiles.util.TilesIOException: ServletException including path '/WEB-INF/layouts/default.jspx'. at org.apache.tiles.servlet.context.ServletUtil.wrapServletException(ServletUtil.java:241) at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:243) at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:222) at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44) at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:690) ... 67 more Caused by: org.apache.tiles.util.TilesIOException: JSPException including path '/WEB-INF/views/quarters/update.jspx'. at org.apache.tiles.servlet.context.ServletUtil.wrapServletException(ServletUtil.java:241) at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:105) at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96) at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44) at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106) at org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76) at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:336) at org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:210) at org.apache.tiles.template.InsertAttributeModel.end(InsertAttributeModel.java:126) at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:311) at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspx_meth_tiles_005finsertAttribute_005f2(default_jspx.java:234) at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspService(default_jspx.java:96) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:241) ... 72 more Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: java.lang.OutOfMemoryError: Java heap space at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:908) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:841) at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx._jspService(update_jspx.java:84) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954) at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:684) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:678) at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103) ... 97 more Caused by: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: java.lang.OutOfMemoryError: Java heap space at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx$Helper.invoke(update_jspx.java:594) at org.apache.jsp.tag.webform.update_tagx$Helper.invoke0(update_tagx.java:736) at org.apache.jsp.tag.webform.update_tagx$Helper.invoke(update_tagx.java:782) at org.apache.jsp.tag.webutil.panel_tagx._jspx_meth_c_005fif_005f0(panel_tagx.java:193) at org.apache.jsp.tag.webutil.panel_tagx.doTag(panel_tagx.java:139) at org.apache.jsp.tag.webform.update_tagx.doTag(update_tagx.java:258) at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx._jspx_meth_form_005fupdate_005f0(update_jspx.java:111) at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx._jspService(update_jspx.java:76) ... 112 more Caused by: javax.servlet.jsp.JspException: java.lang.OutOfMemoryError: Java heap space at org.apache.jsp.tag.webform.fields.select_tagx.doTag(select_tagx.java:569) at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx._jspx_meth_field_005fselect_005f0(update_jspx.java:185) at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx.access$2(update_jspx.java:164) at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx$Helper.invoke0(update_jspx.java:540) at org.apache.jsp.WEB_002dINF.views.quarters.update_jspx$Helper.invoke(update_jspx.java:586) ... 119 more Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:2694) at java.lang.String.<init>(String.java:203) at java.lang.StringBuilder.toString(StringBuilder.java:405) at java.util.AbstractCollection.toString(AbstractCollection.java:452) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Quarter_Roo_ToString.ajc$interMethod$com_app_myschool_model_Quarter_Roo_ToString$com_app_myschool_model_Quarter$toString(Quarter_Roo_ToString.aj:13) at com.app.myschool.model.Quarter.toString(Quarter.java:1) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuilder.append(StringBuilder.java:128) at java.util.AbstractCollection.toString(AbstractCollection.java:450) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Student_Roo_ToString.ajc$interMethod$com_app_myschool_model_Student_Roo_ToString$com_app_myschool_model_Student$toString(Student_Roo_ToString.aj:13) 2014-07-01 19:28:58,768 [tomcat-http--7] DEBUG org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter - Closing JPA EntityManager in OpenEntityManagerInViewFilter 2014-07-01 19:28:58,768 [tomcat-http--7] DEBUG org.springframework.orm.jpa.EntityManagerFactoryUtils - Closing JPA EntityManager 2014-07-01 19:28:58,768 [tomcat-http--7] DEBUG org.hibernate.engine.jdbc.internal.LogicalConnectionImpl - Releasing JDBC connection 2014-07-01 19:28:58,769 [tomcat-http--7] DEBUG org.hibernate.engine.jdbc.internal.LogicalConnectionImpl - Released JDBC connection 2014-07-01 19:28:58,769 [tomcat-http--7] DEBUG org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler - HHH000163: Logical connection releasing its physical connection 2014-07-01 19:28:58,770 [tomcat-http--7] DEBUG org.springframework.security.web.context.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed Jul 01, 2014 7:28:58 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [MySchool] in context with path [/MySchool] threw exception [Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/default.jspx'.] with root cause java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:2694) at java.lang.String.<init>(String.java:203) at java.lang.StringBuilder.toString(StringBuilder.java:405) at java.util.AbstractCollection.toString(AbstractCollection.java:452) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Quarter_Roo_ToString.ajc$interMethod$com_app_myschool_model_Quarter_Roo_ToString$com_app_myschool_model_Quarter$toString(Quarter_Roo_ToString.aj:13) at com.app.myschool.model.Quarter.toString(Quarter.java:1) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuilder.append(StringBuilder.java:128) at java.util.AbstractCollection.toString(AbstractCollection.java:450) at org.hibernate.collection.internal.PersistentSet.toString(PersistentSet.java:327) at java.lang.String.valueOf(String.java:2854) at java.lang.StringBuffer.append(StringBuffer.java:232) at org.apache.commons.lang3.builder.ToStringStyle.appendDetail(ToStringStyle.java:598) at org.apache.commons.lang3.builder.ToStringStyle.appendInternal(ToStringStyle.java:473) at org.apache.commons.lang3.builder.ToStringStyle.append(ToStringStyle.java:436) at org.apache.commons.lang3.builder.ToStringBuilder.append(ToStringBuilder.java:848) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:522) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:683) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:282) at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:145) at com.app.myschool.model.Student_Roo_ToString.ajc$interMethod$com_app_myschool_model_Student_Roo_ToString$com_app_myschool_model_Student$toString(Student_Roo_ToString.aj:13) 2014-07-01 19:28:58,771 [tomcat-http--7] DEBUG org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'MySchool' processing GET request for [/MySchool/uncaughtException] 2014-07-01 19:28:58,771 [tomcat-http--7] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Looking up handler method for path /uncaughtException 2014-07-01 19:28:58,799 [tomcat-http--7] DEBUG org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Did not find handler method for [/uncaughtException] 2014-07-01 19:28:58,799 [tomcat-http--7] DEBUG org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/uncaughtException] to HandlerExecutionChain with handler [org.springframework.web.servlet.mvc.ParameterizableViewController@6697520] and 1 interceptor 2014-07-01 19:28:58,800 [tomcat-http--7] DEBUG org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/MySchool/uncaughtException] is: -1 2014-07-01 19:28:58,800 [tomcat-http--7] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking afterPropertiesSet() on bean with name 'uncaughtException' 2014-07-01 19:28:58,800 [tomcat-http--7] DEBUG org.springframework.web.servlet.DispatcherServlet - Rendering view [org.springframework.web.servlet.view.tiles2.TilesView: name 'uncaughtException'; URL [uncaughtException]] in DispatcherServlet with name 'MySchool' 2014-07-01 19:28:58,800 [tomcat-http--7] DEBUG org.springframework.web.servlet.view.tiles2.TilesView - Added model object 'id' of type [java.lang.Long] to request in view with name 'uncaughtException' 2014-07-01 19:28:58,800 [tomcat-http--7] DEBUG org.apache.tiles.impl.BasicTilesContainer - Render request recieved for definition 'uncaughtException' 2014-07-01 19:28:58,883 [tomcat-http--7] DEBUG org.springframework.web.servlet.DispatcherServlet - Successfully completed request

    Spring JIRA | 2 years ago | Denis Putnam
    java.lang.OutOfMemoryError: Java heap space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Requested array size exceeds VM limit

      at java.util.Arrays.copyOf()
    2. Java RT
      AbstractCollection.toString
      1. java.util.Arrays.copyOf(Arrays.java:3332)
      2. java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
      3. java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
      4. java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421)
      5. java.lang.StringBuilder.append(StringBuilder.java:136)
      6. java.lang.StringBuilder.append(StringBuilder.java:131)
      7. java.util.AbstractCollection.toString(AbstractCollection.java:462)
      7 frames
    3. org.artifactory.rest
      BaseResource.runService
      1. org.artifactory.rest.common.service.ArtifactoryRestResponse.getObject(ArtifactoryRestResponse.java:129)
      2. org.artifactory.rest.common.service.ArtifactoryRestResponse.getEntity(ArtifactoryRestResponse.java:108)
      3. org.artifactory.rest.common.util.ResponseHandler.buildJerseyResponse(ResponseHandler.java:38)
      4. org.artifactory.rest.common.service.ArtifactoryRestResponse.buildResponse(ArtifactoryRestResponse.java:196)
      5. org.artifactory.rest.common.service.ServiceExecutor.process(ServiceExecutor.java:40)
      6. org.artifactory.rest.common.resource.BaseResource.runService(BaseResource.java:127)
      6 frames
    4. org.artifactory.ui
      UserResource.getUser
      1. org.artifactory.ui.rest.resource.admin.security.user.UserResource.getUser(UserResource.java:116)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      2. com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      3. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      4. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      5. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      6. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      7. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      8. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      9. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
      10. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
      11. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
      12. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
      12 frames
    7. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
      2 frames