Jump to content

Recommended Posts

Posted

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 reportatcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$FillResultListener.reportFillError(EngineServiceImpl.java:1278)atnet.sf.jasperreports.engine.fill.BaseFillHandle.notifyError(BaseFillHandle.java:210)atnet.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:134)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:902)atnet.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:858)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1747)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1102)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1031)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:924)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.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 closedatsun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:178)atsun.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)atnet.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:429)atnet.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:399)atnet.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:612)atnet.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573)atnet.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurer.measure(JdkGlyphFixTextMeasurer.java:141)atnet.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672)atnet.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186)atnet.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)atnet.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)atnet.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:256)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)atnet.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:555)atnet.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)... 10 moreCaused by: java.io.IOException: Stream closedatjava.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)atsun.util.locale.provider.RuleBasedBreakIterator.readFile(RuleBasedBreakIterator.java:462)atsun.util.locale.provider.RuleBasedBreakIterator.readTables(RuleBasedBreakIterator.java:375)atsun.util.locale.provider.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:321)atsun.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 closedatsun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:178)atsun.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)atnet.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:429)atnet.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:399)atnet.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:612)atnet.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573)atnet.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurer.measure(JdkGlyphFixTextMeasurer.java:141)atnet.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672)atnet.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186)atnet.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)atnet.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)atnet.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:256)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)atnet.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:555)atnet.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:902)atnet.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:858)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1747)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1102)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1031)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:924)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)Caused by: java.io.IOException: Stream closedatjava.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)atsun.util.locale.provider.RuleBasedBreakIterator.readFile(RuleBasedBreakIterator.java:462)atsun.util.locale.provider.RuleBasedBreakIterator.readTables(RuleBasedBreakIterator.java:375)atsun.util.locale.provider.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:321)atsun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:169)... 32 more                                                                                                                                                                                                                                                                    Error Message                                                 java.io.IOException: Stream closed                                                                                                                                                                                                                                                                         Error Trace                                                  java.io.IOException:Stream closedatjava.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)atsun.util.locale.provider.RuleBasedBreakIterator.readFile(RuleBasedBreakIterator.java:462)atsun.util.locale.provider.RuleBasedBreakIterator.readTables(RuleBasedBreakIterator.java:375)atsun.util.locale.provider.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:321)atsun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:169)atsun.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)atnet.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:429)atnet.sf.jasperreports.engine.fill.SimpleTextLineWrapper.startParagraph(SimpleTextLineWrapper.java:399)atnet.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:612)atnet.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:573)atnet.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurer.measure(JdkGlyphFixTextMeasurer.java:141)atnet.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:672)atnet.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:186)atnet.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)atnet.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)atnet.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:435)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:395)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:256)atnet.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)atnet.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:555)atnet.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:902)atnet.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:858)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1747)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1102)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1031)atcom.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:924)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)                                                                                                                                                                                                                                                              [/code]

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

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.

Posted

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

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...