java.lang.ClassCastException: java.lang.OutOfMemoryError

Sakai JIRA | Flávio Botelho | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The issue can be traced to the org.dspace.app.webui.servlet.admin.EPersonListServlet class where users are being searched without limit/offset... Stack trace found on log: java.lang.OutOfMemoryError: Java heap space 2009-07-20 14:28:47,854 WARN org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=1F8645BF75793D48515BCEE4BD1051F3:internal_error:-- URL Was: http://bdjur.stj.gov.br/jspui/tools/eperson-list?multiple=false -- Referer: null -- Method: GET -- Parameters were: -- multiple: "false" Cookies -> Cookie: name=JSESSIONID value=1F8645BF75793D48515BCEE4BD1051F3 domain=null maxAge=-1 path=null Cookie: name=__utma value=186881130.841653692.1244813221.1244813221.1244813221.1 domain=null maxAge=-1 path=null Cookie: name=__utmz value=186881130.1244813221.1.1.utmccn domain=null maxAge=-1 path=null java.lang.OutOfMemoryError: Java heap space 2009-07-20 14:28:47,854 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspui].[internal-error] @ Servlet.service() for servlet internal-error threw exception java.lang.ClassCastException: java.lang.OutOfMemoryError at org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalErrorServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:213) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595)

    Sakai JIRA | 8 years ago | Flávio Botelho
    java.lang.ClassCastException: java.lang.OutOfMemoryError
  2. 0

    The issue can be traced to the org.dspace.app.webui.servlet.admin.EPersonListServlet class where users are being searched without limit/offset... Stack trace found on log: java.lang.OutOfMemoryError: Java heap space 2009-07-20 14:28:47,854 WARN org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=1F8645BF75793D48515BCEE4BD1051F3:internal_error:-- URL Was: http://bdjur.stj.gov.br/jspui/tools/eperson-list?multiple=false -- Referer: null -- Method: GET -- Parameters were: -- multiple: "false" Cookies -> Cookie: name=JSESSIONID value=1F8645BF75793D48515BCEE4BD1051F3 domain=null maxAge=-1 path=null Cookie: name=__utma value=186881130.841653692.1244813221.1244813221.1244813221.1 domain=null maxAge=-1 path=null Cookie: name=__utmz value=186881130.1244813221.1.1.utmccn domain=null maxAge=-1 path=null java.lang.OutOfMemoryError: Java heap space 2009-07-20 14:28:47,854 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspui].[internal-error] @ Servlet.service() for servlet internal-error threw exception java.lang.ClassCastException: java.lang.OutOfMemoryError at org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalErrorServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:213) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595)

    Sakai JIRA | 8 years ago | Flávio Botelho
    java.lang.ClassCastException: java.lang.OutOfMemoryError

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.OutOfMemoryError

      at org.dspace.app.webui.servlet.InternalErrorServlet.doGet()
    2. org.dspace.app
      InternalErrorServlet.doGet
      1. org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalErrorServlet.java:86)
      1 frame
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2 frames
    4. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      7. org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364)
      8. org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:213)
      9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
      10. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      11. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      12. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      12 frames
    5. Embedded GlassFish Web
      ChannelSocket$SocketConnection.runIt
      1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
      2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
      3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
      4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
      5. org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
      5 frames
    6. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame