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

Interrupted while locking virtualization context #223

Open
SATISHEEEK opened this issue Sep 30, 2021 · 1 comment
Open

Interrupted while locking virtualization context #223

SATISHEEEK opened this issue Sep 30, 2021 · 1 comment

Comments

@SATISHEEEK
Copy link

SATISHEEEK commented Sep 30, 2021

Dear JasperReports devs,
I have been using your library in my projects for a long time, but now I am facing a very unique issue.

We're generating a report with a huge dataset and semi-difficult report design. (Design itself isn't complicated, but it's made of 10 subreports).
We're using SwapFile virtualizer that works fine.

But on Openshift environment for XLS output we're getting the following error:

net.sf.jasperreports.engine.JRRuntimeException: Interrupted while locking virtualization context. 	 
	at net.sf.jasperreports.engine.fill.JRVirtualizationContext.lock(JRVirtualizationContext.java:616) 
	at net.sf.jasperreports.engine.base.ElementsBlock.lockContext(ElementsBlock.java:112) 
	at net.sf.jasperreports.engine.base.ElementsBlock.get(ElementsBlock.java:157) 
	at net.sf.jasperreports.engine.base.VirtualizableElementList.get(VirtualizableElementList.java:95) 
	at net.sf.jasperreports.engine.base.VirtualizableElementList.get(VirtualizableElementList.java:42) 
	at net.sf.jasperreports.engine.export.JRGridLayout.getElement(JRGridLayout.java:197) 
	at net.sf.jasperreports.engine.export.JRGridLayout.getElement(JRGridLayout.java:201) 
	at net.sf.jasperreports.engine.export.JRGridLayout.getElement(JRGridLayout.java:201) 
	at net.sf.jasperreports.engine.export.JRGridLayout.getElement(JRGridLayout.java:201) 
	at net.sf.jasperreports.engine.export.ElementGridCell.getElement(ElementGridCell.java:83) 
	at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportPage(JRXlsAbstractExporter.java:1183) 
	at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReportToStream(JRXlsAbstractExporter.java:1031) 
	at net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReport(JRXlsAbstractExporter.java:879)

Some details to this issue:

  • PDF output works fine, its happening only for excel
  • Swapfile has almost 200 MB's, final XLS file has 104 MB
  • Code works on our docker dev machines but crashes in OS env
  • The lock is always interrupted after 15 minutes exactly.

There is only 1 relevant source on google

Virtualizer & Swapfile settings:

  • JRSwapFileVirtualizer(100, swapFile, true);
  • JRSwapFile(System.getProperty("java.io.tmpdir"), 4096, 2048);

..I was able to find this FIXME comment in the method that produces the exception
https://github.com/TIBCOSoftware/jasperreports/blob/6.11.0/jasperreports/src/net/sf/jasperreports/engine/base/ElementsBlock.java : 102

We tried almost everything already. From the openshift configuration, to report design changes and we're slowly running out of ideas.

Do you, please, have any experience with this kind of issue?
Used library: 6.11.0 (We tried the newest version and didn't work either)

@teodord @dadza @shertage @mnarcis
Thank you for any kind of information.

Kind Regards,
Jan

@SATISHEEEK SATISHEEEK reopened this Oct 4, 2021
@SATISHEEEK
Copy link
Author

Hi All,
we figured out, that the error is probably not code-related.
But some configuration is killing our report-thread after 15 minutes. We suspected http://jasperreports.sourceforge.net/api/net/sf/jasperreports/chrome/Chrome.html#PROPERTY_IDLE_TIMEOUT ,
but changing it doesn't make difference...

Anyone from your team with some ideas?

Thanks in advance.

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

1 participant