Author: julien_viet
Date: 2009-10-30 11:47:22 -0400 (Fri, 30 Oct 2009)
New Revision: 462
Modified:
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java
Log:
- close the stream when the portlet has finished the rendering
Modified:
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java
===================================================================
---
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java 2009-10-30
15:38:54 UTC (rev 461)
+++
portal/branches/performance/webui/core/src/main/java/org/exoplatform/webui/application/portlet/PortletApplication.java 2009-10-30
15:47:22 UTC (rev 462)
@@ -20,6 +20,7 @@
package org.exoplatform.webui.application.portlet;
import org.exoplatform.commons.utils.PortalPrinter;
+import org.exoplatform.commons.utils.Safe;
import org.exoplatform.resolver.ApplicationResourceResolver;
import org.exoplatform.resolver.PortletResourceResolver;
import org.exoplatform.services.log.ExoLogger;
@@ -246,6 +247,11 @@
}
finally
{
+
+ // Close the writer
+ Safe.close(context.getWriter());
+
+ //
try
{
for (ApplicationLifecycle<RequestContext> lifecycle :
getApplicationLifecycle())