tag:jbilling.tenderapp.com,2012-10-15:/discussions/problems/639-error-while-downloading-invoice-as-pdfjBilling: Discussion 2017-09-27T14:31:10Ztag:jbilling.tenderapp.com,2012-10-15:Comment/401422552016-06-18T09:20:17Z2016-06-18T09:20:18Zerror while downloading invoice as pdf<div><p>I am using jbilling-community-4.1.1 .It is not community from
source.<br>
when i try to download invoice as pdf there is an error:</p>
<p>There has been an internal server error:
uuid=995ad39b-2b5f-4081-b07c-6cdd2064bf25,
message=com.sapienter.jbilling.common.SessionInternalError:
java.lang.NullPointerException</p></div>himanitag:jbilling.tenderapp.com,2012-10-15:Comment/401422552016-06-23T12:22:37Z2016-06-23T12:22:37Zerror while downloading invoice as pdf<div><p>Hello himani,</p>
<p>Can you me give jbilling.log file present under bin/logs/ folder
?<br>
I want to verify the logs for the download pdf error.</p>
<p>Thanks,<br>
jBilling Technical Support Team</p></div>Technical Supporttag:jbilling.tenderapp.com,2012-10-15:Comment/401422552017-09-27T14:31:09Z2017-09-27T14:31:10Zerror while downloading invoice as pdf<div><p>Hello, I'm getting the same error, please find the log extract below:</p>
<p>2017-09-27 10:24:22,315 2475662 ERROR <a>com.sapienter.jbilling.server.notification.NotificationBL</a> Exception generating paper invoice<br>
java.lang.ArrayIndexOutOfBoundsException: 0<br>
at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75) at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93) at sun.font.Font2D.getFontMetrics(Font2D.java:415) at java.awt.Font.defaultLineMetrics(Font.java:2176) at java.awt.Font.getLineMetrics(Font.java:2246) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.determineLeading(SimpleTextLineWrapper.java:391) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.getGeneralFontInfo(SimpleTextLineWrapper.java:343) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.createFontInfo(SimpleTextLineWrapper.java:279) at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.start(SimpleTextLineWrapper.java:241) at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:537) at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:623)</p>
<p>[...]</p>
<p>2017-09-27 10:24:22,344 2475691 FATAL <a>com.sapienter.jbilling</a> Internal error: null<br>
java.lang.NullPointerException<br>
at net.sf.jasperreports.engine.JRAbstractExporter.ensureInput(JRAbstractExporter.java:692) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:504) at net.sf.jasperreports.engine.JasperExportManager.exportToPdf(JasperExportManager.java:219) at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:544) at com.sapienter.jbilling.server.notification.NotificationBL.generatePaperInvoiceAsStream(NotificationBL.java:847) at com.sapienter.jbilling.server.pluggableTask.PaperInvoiceNotificationTask.getPDF(PaperInvoiceNotificationTask.java:170) at com.sapienter.jbilling.server.invoice.InvoiceSessionBean.getPDFInvoice(InvoiceSessionBean.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)</p></div>Krzysztof Sam