Jump to content
We've recently updated our Privacy Statement, available here ×

"No space left on device" caused by the size of my subreports?


kburns

Recommended Posts

This seems like a serious issue, so I figure it deserves it's own thread.

I have created a report with 3 sub-reports each separated with a page break. When I run it through jasper server, it takes a very long time to return. Eventually it gives the following error after completely filling up the machine with temp data and crashing the server. Because this effects our production server it is a very serious issue.

--

Oh my!
The server has encountered an error. Please excuse the inconvenience.

Error Message
net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: No space left on device

Error Trace
net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: No space left on device at net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer.writeData(JRAbstractLRUVirtualizer.java:578) at net.sf.jasperreports.engine.fill.JRFileVirtualizer.pageOut(JRFileVirtualizer.java:122) at net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer.virtualizeData(JRAbstractLRUVirtualizer.java:531) at...


--

Previously I had this problem with a report containing 2 sub-reports separated by a single page break. The solution was in changing the size of the sub-reports in the main one by making them very large in width and very short in height.

Has anyone else come across this problem?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I fixed this problem by stacking my subreports and page breaks on top of each other in the main.jrxml leaving not a pixel of space between them.

[subreport 1]
[page break]
[subreport 2]
[page break]
[subreport 3]

Clearly this is a bug that needs to be dealt with, but more importantly we need better error messages. 

"net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: No space left on device"

^ makes no sense.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...