Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How we can change the default file creation path #479

Open
shinurag opened this issue Sep 12, 2024 · 2 comments
Open

How we can change the default file creation path #479

shinurag opened this issue Sep 12, 2024 · 2 comments

Comments

@shinurag
Copy link

Could you please let me know how to change the temporary file creation location to a different folder path for the following line of execution?

jPrintFile = JasperFillManager.fillReport(jReport, params, jrbcds);
// jReport : JasperReport
// params: HashMap<String, Object> params = new HashMap<>();
// jrbcds: JRBeanCollectionDataSource

@teodord
Copy link
Collaborator

teodord commented Sep 13, 2024

Which temporary files are we talking about and why would their location be important to worth changing?

Thank you,
Teodor

@shinurag
Copy link
Author

shinurag commented Sep 17, 2024

I developed a JAR file for generating PDF files, but the process terminated at
jPrintFile = JasperFillManager.fillReport(jReport, params, jrbcds); While this JAR file functions correctly in the lower environment, it only works intermittently in production, where it often fails. To address this, we plan to change the file creation folder to determine if it resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants