You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@struts.apache.org by "Senrian (via GitHub)" <gi...@apache.org> on 2026/03/03 22:03:29 UTC
[PR] [fix] Replace printStackTrace() with System.err in CompileReport [struts]
Senrian opened a new pull request, #1606:
URL: https://github.com/apache/struts/pull/1606
## Description
Replace `e.printStackTrace()` with `System.err.println()` to properly log errors to stderr without stack trace noise in CLI tools.
## Changes
- `plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/CompileReport.java`: Replace `e.printStackTrace()` with `System.err.println()` for cleaner error output
## Why
Using `printStackTrace()` in production code is considered bad practice as it writes directly to stderr without proper logging framework integration. This change uses `System.err.println()` which is more appropriate for CLI tools.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [fix] Replace printStackTrace() with System.err in CompileReport [struts]
Posted by "lukaszlenart (via GitHub)" <gi...@apache.org>.
lukaszlenart commented on PR #1606:
URL: https://github.com/apache/struts/pull/1606#issuecomment-3995458848
Could you create a JIRA ticket?
https://issues.apache.org/jira/projects/WW/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [fix] Replace printStackTrace() with System.err in CompileReport [struts]
Posted by "lukaszlenart (via GitHub)" <gi...@apache.org>.
lukaszlenart commented on PR #1606:
URL: https://github.com/apache/struts/pull/1606#issuecomment-3997619314
Hm... but this `Bump org.apache.velocity:velocity-engine-core from 2.3 to 2.4.1` which isn't related to the change and it was included in 7.0.3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [fix] Replace printStackTrace() with System.err in CompileReport [struts]
Posted by "Senrian (via GitHub)" <gi...@apache.org>.
Senrian commented on PR #1606:
URL: https://github.com/apache/struts/pull/1606#issuecomment-3997587015
Sorry for the confusion - this PR is indeed a code cleanup (replacing printStackTrace with System.err), not related to file upload. I created a new JIRA ticket for this code cleanup: https://issues.apache.org/jira/browse/WW-5507
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] WW-5617 Replace printStackTrace() with System.err in CompileReport [struts]
Posted by "lukaszlenart (via GitHub)" <gi...@apache.org>.
lukaszlenart merged PR #1606:
URL: https://github.com/apache/struts/pull/1606
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [fix] Replace printStackTrace() with System.err in CompileReport [struts]
Posted by "Senrian (via GitHub)" <gi...@apache.org>.
Senrian commented on PR #1606:
URL: https://github.com/apache/struts/pull/1606#issuecomment-3997421057
Created JIRA ticket: https://issues.apache.org/jira/browse/WW-5506
This is a simple code cleanup replacing printStackTrace() with System.err for better logging practice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [fix] Replace printStackTrace() with System.err in CompileReport [struts]
Posted by "lukaszlenart (via GitHub)" <gi...@apache.org>.
lukaszlenart commented on PR #1606:
URL: https://github.com/apache/struts/pull/1606#issuecomment-3997457135
@Senrian but the ticket is about file upload issue and not related to Jasper Reports changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@struts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org