Error filling report

0

Hi,

I have 2 identical jasper reports servers. The same report (with subreport) deployed on both. On first server - it works. On second one, I'm getting exception:

..insert your code here..
                                The server has encountered an error. Please excuse the inconvenience.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                                                 Error Message
                                                 Error filling report
 
 
 
 
 
                                                  Error Trace
                                                  com.jaspersoft.jasperserver.api.JSException:
Error filling report
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$FillResultListener.reportFillError(EngineServiceImpl.java:1278)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle.notifyError(BaseFillHandle.java:210)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:134)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:902)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:858)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1747)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1102)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1031)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:924)
 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InternalError: java.io.IOException: Stream closed
at
sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:178)
 
at
sun.util.locale.provider.BreakIteratorProviderImpl.getLineInstance(BreakIteratorProviderImpl.java:106)
 
at java.text.BreakIterator.createBreakInstance(BreakIterator.java:571)
at java.text.BreakIterator.createBreakInstance(BreakIterator.java:553)
at java.text.BreakIterator.getBreakInstance(BreakIterator.java:544)
at java.text.BreakIterator.getLineInstance(BreakIterator.java:483)
at java.text.BreakIterator.getLineInstance(BreakIterator.java:470)
at
net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:429)
 
at
net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:399)
 
at
net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:612)
 
at
net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573)
 
at
net.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurer.measure(JdkGlyphFixTextMeasurer.java:141)
 
at
net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672)
 
at
net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186)
 
at
net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)
 
at
net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)
at
net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:256)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)
 
at
net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:555)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)
 
... 10 more
Caused by: java.io.IOException: Stream closed
at
java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:159)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at
sun.util.locale.provider.RuleBasedBreakIterator.readFile(RuleBasedBreakIterator.java:462)
 
at
sun.util.locale.provider.RuleBasedBreakIterator.readTables(RuleBasedBreakIterator.java:375)
 
at
sun.util.locale.provider.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:321)
 
at
sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:169)
 
... 32 more
 
 
 
 
 
 
                                                 Error Message
                                                 java.lang.InternalError: java.io.IOException: Stream closed
 
 
 
 
 
                                                  Error Trace
                                                  java.lang.InternalError:
java.io.IOException: Stream closed
at
sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:178)
 
at
sun.util.locale.provider.BreakIteratorProviderImpl.getLineInstance(BreakIteratorProviderImpl.java:106)
 
at java.text.BreakIterator.createBreakInstance(BreakIterator.java:571)
at java.text.BreakIterator.createBreakInstance(BreakIterator.java:553)
at java.text.BreakIterator.getBreakInstance(BreakIterator.java:544)
at java.text.BreakIterator.getLineInstance(BreakIterator.java:483)
at java.text.BreakIterator.getLineInstance(BreakIterator.java:470)
at
net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:429)
 
at
net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:399)
 
at
net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:612)
 
at
net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573)
 
at
net.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurer.measure(JdkGlyphFixTextMeasurer.java:141)
 
at
net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672)
 
at
net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186)
 
at
net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)
 
at
net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)
at
net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:256)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)
 
at
net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:555)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:902)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:858)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1747)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1102)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1031)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:924)
 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Stream closed
at
java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:159)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at
sun.util.locale.provider.RuleBasedBreakIterator.readFile(RuleBasedBreakIterator.java:462)
 
at
sun.util.locale.provider.RuleBasedBreakIterator.readTables(RuleBasedBreakIterator.java:375)
 
at
sun.util.locale.provider.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:321)
 
at
sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:169)
 
... 32 more
 
 
 
 
 
 
                                                 Error Message
                                                 java.io.IOException: Stream closed
 
 
 
 
 
                                                  Error Trace
                                                  java.io.IOException:
Stream closed
at
java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:159)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at
sun.util.locale.provider.RuleBasedBreakIterator.readFile(RuleBasedBreakIterator.java:462)
 
at
sun.util.locale.provider.RuleBasedBreakIterator.readTables(RuleBasedBreakIterator.java:375)
 
at
sun.util.locale.provider.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:321)
 
at
sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:169)
 
at
sun.util.locale.provider.BreakIteratorProviderImpl.getLineInstance(BreakIteratorProviderImpl.java:106)
 
at java.text.BreakIterator.createBreakInstance(BreakIterator.java:571)
at java.text.BreakIterator.createBreakInstance(BreakIterator.java:553)
at java.text.BreakIterator.getBreakInstance(BreakIterator.java:544)
at java.text.BreakIterator.getLineInstance(BreakIterator.java:483)
at java.text.BreakIterator.getLineInstance(BreakIterator.java:470)
at
net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:429)
 
at
net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:399)
 
at
net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:612)
 
at
net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573)
 
at
net.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurer.measure(JdkGlyphFixTextMeasurer.java:141)
 
at
net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672)
 
at
net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186)
 
at
net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)
 
at
net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)
at
net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:256)
 
at
net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)
 
at
net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:555)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:902)
 
at
net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:858)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1747)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1102)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1031)
 
at
com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:924)
 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 
at java.lang.Thread.run(Thread.java:745)
 
 
 
 
 
 
 
 
 
 
 
 
 

Do you have any ideas what's wrong? I have also other reports (without subreports) on the same server and they works fine.

emsoft1's picture
Joined: May 20 2016 - 1:04am
Last seen: 3 years 3 months ago

Jasper is installed as tomcat webapp, directory /usr/share/tomcat/webapps/jasperserver. Which directory persmissions should I check and what permissions are valid?

emsoft1 - 3 years 3 months ago

1 Answer:

0

Check the file permission. Do you have anything on the file system instead of in the JasperReports Server repository? If so, check the permission on the file system.

hozawa's picture
46767
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 months 1 week ago
Feedback