struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [02/50] [abbrv] struts git commit: Patch WW-3462
Date Fri, 15 Jul 2016 13:18:29 GMT
Patch WW-3462

connection open after report generation

Now the connection is close after been used.


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/94207898
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/94207898
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/94207898

Branch: refs/heads/master
Commit: 9420789862ffe073b05a5028aa792d160e334918
Parents: 8d4bb89
Author: Victor Sosa <victornsosa@gmail.com>
Authored: Sun Jan 3 07:34:00 2016 -0400
Committer: Lukasz Lenart <lukasz.lenart@gmail.com>
Committed: Tue Jan 19 16:17:09 2016 +0100

----------------------------------------------------------------------
 .../apache/struts2/views/jasperreports/JasperReportsResult.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/94207898/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
----------------------------------------------------------------------
diff --git a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
index e356506..921a010 100644
--- a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
+++ b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
@@ -385,6 +385,8 @@ public class JasperReportsResult extends StrutsResultSupport implements
JasperRe
         } catch (JRException e) {
             LOG.error("Error producing {} report for uri {}", format, systemId, e);
             throw new ServletException(e.getMessage(), e);
+        } finally {
+            conn.close();
         }
 
         response.setContentLength(output.size());


Mime
View raw message