Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-2480

Uploading 7Mb file results in web/app server out of memory error (default Tomcat installation)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • r2.06.01 (m13 - rc2)
    • r2.06.03 (m13 - rc4)
    • None
    • None
    • Tomcat, 32 bits java

    Description

      In my case I got an error from Tomcat when uploading 7MB zip file:

      HTTP Status 500 -

      type Exception report

      description The server encountered an internal error () that prevented it from fulfilling this request.

      javax.servlet.ServletException: Filter execution threw an exception
      org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)

      root cause

      java.lang.OutOfMemoryError: Java heap space

      Two suggestions:
      CMS should make sure that we do not upload files that are too large or give a proper error message.
      CMS should be able to handle 7Mb files in a default environment.

      Stacktrace:
      07.05.2009 16:43:17 ERROR [org.apache.catalina.core.StandardWrapperValve.invoke(
      ):253] Servlet.service() for servlet default threw exception
      java.lang.OutOfMemoryError: Java heap space
      at java.lang.StringCoding$CharsetSD.decode(StringCoding.java:183)
      at java.lang.StringCoding.decode(StringCoding.java:228)
      at java.lang.String.<init>(String.java:405)
      at java.lang.String.<init>(String.java:433)
      at org.apache.jackrabbit.spi.commons.value.QValueFactoryImpl$BinaryQValu
      e.getString(QValueFactoryImpl.java:702)
      at org.apache.jackrabbit.spi.commons.value.QValueValue.getString(QValueV
      alue.java:142)
      at org.hippoecm.frontend.model.properties.JcrPropertyValueModel.getObjec
      t(JcrPropertyValueModel.java:173)
      at org.hippoecm.frontend.JcrObservationManager$NodeCache.process(JcrObse
      rvationManager.java:139)
      at org.hippoecm.frontend.JcrObservationManager$NodeCache.<init>(JcrObser
      vationManager.java:122)
      at org.hippoecm.frontend.JcrObservationManager$JcrListener.process(JcrOb
      servationManager.java:441)
      at org.hippoecm.frontend.JcrObservationManager.processEvents(JcrObservat
      ionManager.java:666)
      at org.hippoecm.frontend.Home.update(Home.java:125)
      at org.hippoecm.frontend.Main$6.processEvents(Main.java:278)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.j
      ava:1175)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
      355)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
      va:200)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:188)
      at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(Co
      ncurrentLoginFilter.java:54)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:172)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:174)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :875)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
      rocessConnection(Http11BaseProtocol.java:665)

      Attachments

        Issue Links

          Activity

            People

              berry van halderen Berry van Halderen (Inactive)
              swesten Stephan Westen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: