struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [09/50] [abbrv] struts git commit: Update JasperReportsResult.java
Date Fri, 15 Jul 2016 13:18:36 GMT
Update JasperReportsResult.java


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

Branch: refs/heads/master
Commit: bccf099c0470925bb0d971a76915839dfdfef62d
Parents: 8966787
Author: victor sosa <victorsosa@users.noreply.github.com>
Authored: Mon Jan 4 12:23:44 2016 -0400
Committer: Lukasz Lenart <lukasz.lenart@gmail.com>
Committed: Tue Jan 19 16:18:00 2016 +0100

----------------------------------------------------------------------
 .../struts2/views/jasperreports/JasperReportsResult.java       | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/bccf099c/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 e0ea121..e356506 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,12 +385,6 @@ 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 {
-            try {
-                conn.close();
-            } catch (Exception e) {
-                LOG.warn("Could not close db connection properly", e);
-            }
         }
 
         response.setContentLength(output.size());


Mime
View raw message