FileNotFoundException after Rendering
FileNotFoundException after Rendering
Hello,
after I use rendering in my application I get Filenotfound Exception, it is a Restservice with json data in the mrt.file as pathdata, I created the mrt File using the designer fx for Java
report = StiSerializeManager.deserializeReport(new File("/Users/me/Desktop/report.mrt"));
report.Render();
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: http:/dev:8888/server/api.php/fh/subs (No such file or directory)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.connect(StiJsonDatabase.java:98)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.connect(StiJsonDatabase.java:86)
at com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource.connect(StiDataStoreSource.java:92)
at com.stimulsoft.report.dictionary.dataSources.StiDataSourcesCollection.connect(StiDataSourcesCollection.java:82)
at com.stimulsoft.report.dictionary.StiDictionary.connect(StiDictionary.java:1216)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.ConnectToData(StiRenderProviderV2.java:370)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:124)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1941)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1842)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1777)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1767)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1752)
at com.mO.Main.main(Main.java:37)
Caused by: java.io.FileNotFoundException: http:/dev:8888/server/api.php/fh/subs (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.getJSONObject(StiJsonDatabase.java:118)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.connect(StiJsonDatabase.java:92)
... 13 more
after I use rendering in my application I get Filenotfound Exception, it is a Restservice with json data in the mrt.file as pathdata, I created the mrt File using the designer fx for Java
report = StiSerializeManager.deserializeReport(new File("/Users/me/Desktop/report.mrt"));
report.Render();
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: http:/dev:8888/server/api.php/fh/subs (No such file or directory)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.connect(StiJsonDatabase.java:98)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.connect(StiJsonDatabase.java:86)
at com.stimulsoft.report.dictionary.dataSources.StiDataStoreSource.connect(StiDataStoreSource.java:92)
at com.stimulsoft.report.dictionary.dataSources.StiDataSourcesCollection.connect(StiDataSourcesCollection.java:82)
at com.stimulsoft.report.dictionary.StiDictionary.connect(StiDictionary.java:1216)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.ConnectToData(StiRenderProviderV2.java:370)
at com.stimulsoft.report.engine.engineV2.StiRenderProviderV2.Render(StiRenderProviderV2.java:124)
at com.stimulsoft.report.engine.engineV2.builders.StiReportV2Builder.RenderSingleReport(StiReportV2Builder.java:64)
at com.stimulsoft.report.StiReport.RenderReport(StiReport.java:1941)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1842)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1777)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1767)
at com.stimulsoft.report.StiReport.Render(StiReport.java:1752)
at com.mO.Main.main(Main.java:37)
Caused by: java.io.FileNotFoundException: http:/dev:8888/server/api.php/fh/subs (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.getJSONObject(StiJsonDatabase.java:118)
at com.stimulsoft.report.dictionary.databases.StiJsonDatabase.connect(StiJsonDatabase.java:92)
... 13 more
Re: FileNotFoundException after Rendering
Hello.
We implement support URL path for JSON database in new version 2015.3.1
We implement support URL path for JSON database in new version 2015.3.1
Re: FileNotFoundException after Rendering
Hello.
New version will available today.
New version will available today.
Re: FileNotFoundException after Rendering
Hello.
Yes, our next build will be available later today.
Thank you.
Yes, our next build will be available later today.
Thank you.
Re: FileNotFoundException after Rendering
Hello Stimulsoft,
Thank you for the new version. The rendering is functioning now.
I have another Problem. When I want to export the rendered report, I get an NullPointerException
and with reports without images and charts I get java.lang.ClassCastException: sun.font.CFont cannot be cast to sun.font.CompositeFont
Is there a Problem with the ExportPdf Method?
I am using a Macbook.
with best regards
Loki
Thank you for the new version. The rendering is functioning now.
I have another Problem. When I want to export the rendered report, I get an NullPointerException
Code: Select all
com.stimulsoft.base.exception.StiException: Error export PDF
at com.stimulsoft.report.export.service.StiPdfExportService.exportPdf(StiPdfExportService.java:5234)
at com.stimulsoft.report.export.service.StiPdfExportService.export(StiPdfExportService.java:5217)
at com.stimulsoft.report.StiExportManager.export(StiExportManager.java:203)
at com.stimulsoft.report.StiExportManager.exportPdf(StiExportManager.java:44)
at com.stimulsoft.report.StiExportManager.exportPdf(StiExportManager.java:39)
at com.report.reportToPDF.export(reportToPDF.java:40)
Caused by: java.lang.NullPointerException
at com.stimulsoft.report.chart.core.styles.StiCustomStyleCoreXF.getReportStyle(StiCustomStyleCoreXF.java:82)
at com.stimulsoft.report.chart.core.styles.StiCustomStyleCoreXF.getStyleColors(StiCustomStyleCoreXF.java:57)
at com.stimulsoft.report.chart.core.styles.StiStyleCoreXF.GetColors(StiStyleCoreXF.java:162)
at com.stimulsoft.report.chart.core.styles.StiStyleCoreXF.GetColorByIndex(StiStyleCoreXF.java:192)
at com.stimulsoft.report.chart.core.series.StiSeriesCoreXF.GetSeriesBrush(StiSeriesCoreXF.java:165)
at com.stimulsoft.report.chart.core.series.pie.StiPieSeriesCoreXF.GetSeriesBrush(StiPieSeriesCoreXF.java:795)
at com.stimulsoft.report.chart.core.series.pie.StiPieSeriesCoreXF.RenderSeries(StiPieSeriesCoreXF.java:589)
at com.stimulsoft.report.chart.core.area.pie.StiPieAreaCoreXF.RenderSeries(StiPieAreaCoreXF.java:81)
at com.stimulsoft.report.chart.core.area.pie.StiPieAreaCoreXF.Render(StiPieAreaCoreXF.java:57)
at com.stimulsoft.report.chart.core.StiChartCoreXF.Render(StiChartCoreXF.java:163)
at com.stimulsoft.report.painters.components.StiChartPainter.drawChart(StiChartPainter.java:62)
at com.stimulsoft.report.painters.components.StiChartPainter.paintChart(StiChartPainter.java:80)
at com.stimulsoft.report.painters.components.StiChartPainter.paint(StiChartPainter.java:102)
at com.stimulsoft.report.painters.StiPainter.getImage(StiPainter.java:175)
at com.stimulsoft.report.components.StiComponent.getImage(StiComponent.java:2385)
at com.stimulsoft.report.export.service.StiPdfExportService.exportPdfException(StiPdfExportService.java:5576)
at com.stimulsoft.report.export.service.StiPdfExportService.exportPdf(StiPdfExportService.java:5232)
Is there a Problem with the ExportPdf Method?
I am using a Macbook.
with best regards
Loki
Re: FileNotFoundException after Rendering
Hello.
We made fixes, you can download new libs & try it (link in private message).
To avoid java.lang.ClassCastException due to Mac restrictions please export pdf without embbeded fonts.
We made fixes, you can download new libs & try it (link in private message).
To avoid java.lang.ClassCastException due to Mac restrictions please export pdf without embbeded fonts.
Re: FileNotFoundException after Rendering
Hello,
Thank you very much it is working.
my pie charts are after exporting without color, is that because I set embedded fonts to false?
with best regards
Loki
Thank you very much it is working.
my pie charts are after exporting without color, is that because I set embedded fonts to false?
with best regards
Loki
Re: FileNotFoundException after Rendering
Hello.
Can you attach your PDF & mdc(rendered report) (or report if it don't need DB) to analize?
Can you attach your PDF & mdc(rendered report) (or report if it don't need DB) to analize?
Re: FileNotFoundException after Rendering
Hello.
We can't reproduce your problem, can you describe with MAC OS version you use, with what properties you export to PDF?
We can't reproduce your problem, can you describe with MAC OS version you use, with what properties you export to PDF?
Re: FileNotFoundException after Rendering
Hello
My MAC OS version is OS X El Capitan Version 10.11.2
my properties are:
My MAC OS version is OS X El Capitan Version 10.11.2
my properties are:
Code: Select all
report = StiSerializeManager.deserializeReport(input);
StiFileSaveDialog stiFileChooser = new StiFileSaveDialog(format, report, report.getReportAlias());
int chooserResult = stiFileChooser.showSaveDialog(stiFileChooser);
if(chooserResult == JFileChooser.APPROVE_OPTION){
FileOutputStream output = null;
try {
output = new FileOutputStream(stiFileChooser.getFile());
StiPdfExportSettings pdfset = new StiPdfExportSettings();
pdfset.setEmbeddedFonts(false);
StiExportManager.exportPdf(report, pdfset, output);