error while downloading invoice as pdf
I am using jbilling-community-4.1.1 .It is not community from source.
when i try to download invoice as pdf there is an error:
There has been an internal server error: uuid=995ad39b-2b5f-4081-b07c-6cdd2064bf25, message=com.sapienter.jbilling.common.SessionInternalError: java.lang.NullPointerException
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Technical Suppo... on Jun 23, 2016 @ 12:22 PM
Hello himani,
Can you me give jbilling.log file present under bin/logs/ folder ?
I want to verify the logs for the download pdf error.
Thanks,
jBilling Technical Support Team
2 Posted by Krzysztof Sam on Sep 27, 2017 @ 02:31 PM
Hello, I'm getting the same error, please find the log extract below:
2017-09-27 10:24:22,315 2475662 ERROR [com.sapienter.jbilling.server.notification.NotificationBL] (http-nio-8080-exec-3:) Exception generating paper invoice
java.lang.ArrayIndexOutOfBoundsException: 0
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)
[...]
2017-09-27 10:24:22,344 2475691 FATAL [com.sapienter.jbilling] (http-nio-8080-exec-3:) Internal error: null
java.lang.NullPointerException
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)