Error while trying to export to pdf
2 September, 2013
Hi,
I've just had the following error come up when trying to export a report to pdf:
[code]
Error: org.xml.sax.SAXParseException; lineNumber: 280; columnNumber: 45; The entity "nbsp" was referenced, but not declared.
At:
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
com.hof.mi.export.PdfExporter.export(PdfExporter.java:263)
com.hof.mi.process.MIReportProcess.exportPdf(MIReportProcess.java:20665)
com.hof.mi.web.action.MIReportPreviewAction.execute(MIReportPreviewAction.java:670)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:722)
[/code]
I had created a report which was 4-5 fields, a criteria around a date (for the application date within the last 4 weeks - predefined period filter) and I had been experimenting with the header-footer functionality. I had loaded a jpg image and had been able to load it into one of the header slots.
But, nothing appeared on the screen when I clicked Save. So I thought it must appear when you export the report. But when I click to export in landscape pdf I get the above error.
Application details are shown in the following image:
Any ideas what might be causing this?
Thanks
Brendon
I've just had the following error come up when trying to export a report to pdf:
[code]
Error: org.xml.sax.SAXParseException; lineNumber: 280; columnNumber: 45; The entity "nbsp" was referenced, but not declared.
At:
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
com.hof.mi.export.PdfExporter.export(PdfExporter.java:263)
com.hof.mi.process.MIReportProcess.exportPdf(MIReportProcess.java:20665)
com.hof.mi.web.action.MIReportPreviewAction.execute(MIReportPreviewAction.java:670)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:722)
[/code]
I had created a report which was 4-5 fields, a criteria around a date (for the application date within the last 4 weeks - predefined period filter) and I had been experimenting with the header-footer functionality. I had loaded a jpg image and had been able to load it into one of the header slots.
But, nothing appeared on the screen when I clicked Save. So I thought it must appear when you export the report. But when I click to export in landscape pdf I get the above error.
Application details are shown in the following image:
Any ideas what might be causing this?
Thanks
Brendon
Hi Brendon,
You are correct that the image in the header only shows in exports.
From the error we can't tell at this stage whether the problem lies in the YF code or perhaps a more recent parser library might fix the problem.
I've been trying to replicate this issue (that way I could test the parser library theory) but so far unable to. I assumed that perhaps the jpg in the header caused the problem but that was wrong. So it looks like something else in the report caused the error. Are you able to attach an XML export of the report in question so that we can have a look at it?
regards,
Dave
You are correct that the image in the header only shows in exports.
From the error we can't tell at this stage whether the problem lies in the YF code or perhaps a more recent parser library might fix the problem.
I've been trying to replicate this issue (that way I could test the parser library theory) but so far unable to. I assumed that perhaps the jpg in the header caused the problem but that was wrong. So it looks like something else in the report caused the error. Are you able to attach an XML export of the report in question so that we can have a look at it?
regards,
Dave
Hi Dave,
I've emailed the xml file to support@yellowfin and have included the two images as part of the export.
Thanks
Brendon
I've emailed the xml file to support@yellowfin and have included the two images as part of the export.
Thanks
Brendon
thanks Brendon, unfortunately there wasn't anything obviously wrong with the report, but luckily the developer who is our PDF expert will be at work tomorrow so I'll be able to get her insight on this issue and then get back to you.
Regards,
Dave
Regards,
Dave
Hi Brendon,
could you please turn DEBUG logging on and try and export the report again and then send us the results?
Regards,
Dave
could you please turn DEBUG logging on and try and export the report again and then send us the results?
Regards,
Dave