2025-06-30 07:35:44,595 ERROR org.apache.struts.actions.DispatchAction - Dispatch[/vlm/VlmRvlAppln] to method 'next' returned an exception -
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor5616.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.novacitynets.afx.core.web.AppDispatchAction.execute(AppDispatchAction.java:57)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelperServletServiceAction.run(StubSecurityHelper.java:227)atweblServletInvocationAction.run(WebAppServletContext.java:3229)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.lang.OutOfMemoryError: Java heap space
2025-06-30 07:35:44,596 ERROR bn.gov.ltd.spd.cm.web.CmExceptionHandler - Java heap space -
javax.servlet.ServletException: Java heap space
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:294)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
at com.novacitynets.afx.core.web.AppDispatchAction.execute(AppDispatchAction.java:57)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelperServletInvocationAction.run(WebAppServletContext.java:3229)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Assistant
Your log shows a java.lang.OutOfMemoryError: Java heap space error, which is a critical JVM error indicating that your application has run out of memory in the Java heap. This is not a typical application exception—it means the JVM could not allocate enough memory for objects, and the application cannot continue processing as normal.
What the Log Tells Us
The error occurs during a Struts DispatchAction method call (next).
The root cause is java.lang.OutOfMemoryError: Java heap space.
This is followed by a ServletException caused by the OOM error.
The error propagates up through your Struts, Spring, and WebLogic stack.
Common Causes
Insufficient Heap Size
The JVM does not have enough memory allocated to handle the application's workload.
Memory Leak
The application is holding onto objects and not releasing them, causing the heap to fill up over time.
Large Data Processing
The application is trying to load/process a very large amount of data in memory at once (e.g., large file, huge database result set, etc.).
Improper Object Caching
Unbounded caches or collections growing without limit.
How to Fix
1. Increase JVM Heap Size
Edit your WebLogic server startup script (or domain config) to increase the heap size.
For example, add or modify these parameters: