error while downloading invoice as pdf

himani's Avatar


18 Jun, 2016 09:20 AM

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

  1. Support Staff 1 Posted by Technical Suppo... on 23 Jun, 2016 12:22 PM

    Technical Support's Avatar

    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.

    jBilling Technical Support Team

  2. 2 Posted by Krzysztof Sam on 27 Sep, 2017 02:31 PM

    Krzysztof Sam's Avatar

    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(
            at sun.font.CompositeStrike.getFontMetrics(
            at sun.font.Font2D.getFontMetrics(
            at java.awt.Font.defaultLineMetrics(
            at java.awt.Font.getLineMetrics(
            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.determineLeading(
            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.getGeneralFontInfo(
            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.createFontInfo(
            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.start(
            at net.sf.jasperreports.engine.fill.TextMeasurer.measure(
            at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(


    2017-09-27 10:24:22,344 2475691 FATAL [com.sapienter.jbilling] (http-nio-8080-exec-3:) Internal error: null
            at net.sf.jasperreports.engine.JRAbstractExporter.ensureInput(
            at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(
            at net.sf.jasperreports.engine.JasperExportManager.exportToPdf(
            at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(
            at com.sapienter.jbilling.server.notification.NotificationBL.generatePaperInvoiceAsStream(
            at com.sapienter.jbilling.server.pluggableTask.PaperInvoiceNotificationTask.getPDF(
            at com.sapienter.jbilling.server.invoice.InvoiceSessionBean.getPDFInvoice(
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(
            at java.lang.reflect.Method.invoke(

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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

Recent Discussions

20 Mar, 2018 12:40 PM
15 Mar, 2018 08:23 AM
26 Feb, 2018 11:19 AM
07 Feb, 2018 02:33 AM
07 Feb, 2018 02:31 AM


07 Feb, 2018 02:30 AM
25 Jan, 2018 03:48 PM
12 Jan, 2018 02:45 PM
12 Jan, 2018 04:48 AM
30 Dec, 2017 05:39 AM
15 Dec, 2017 12:58 PM