Skip to Content
0

NullPointerException generating PDF report on Linux using JRC

Oct 20, 2016 at 01:43 PM

202

avatar image
Former Member

Hi there, I've managed to get a Crystal Report generated and exported to PDF using Eclipse and JRC on my Windows workstation.

But now when deploying to Ubuntu Linux I get the following NullPointerException for which I have no idea of what the problem could be.

I thought that maybe the issue could be with the Arial font, but when listing the AWT fonts, Arial is definitely available.

I came across some Archived discussions on this same issue, but none with a clear answer.

Listing of available fonts:

Andale Mono (Andale Mono) Andale Mono
Arial (Arial) Arial
Arial Black (Arial Black) Arial Black
Arial Bold (Arial Bold) Arial
Arial Bold Italic (Arial Bold Italic) Arial
Arial Italic (Arial Italic) Arial
Century Schoolbook L Bold (Century Schoolbook L Bold) Century Schoolbook L
Century Schoolbook L Bold Italic (Century Schoolbook L Bold Italic) Century Schoolbook L
Century Schoolbook L Italic (Century Schoolbook L Italic) Century Schoolbook L
Century Schoolbook L Roman (Century Schoolbook L Roman) Century Schoolbook L
Comic Sans MS (Comic Sans MS) Comic Sans MS
Comic Sans MS Bold (Comic Sans MS Bold) Comic Sans MS
Courier New (Courier New) Courier New
Courier New Bold (Courier New Bold) Courier New
Courier New Bold Italic (Courier New Bold Italic) Courier New
Courier New Italic (Courier New Italic) Courier New
DejaVu Sans (DejaVu Sans) DejaVu Sans
DejaVu Sans Bold (DejaVu Sans Bold) DejaVu Sans
DejaVu Sans Bold Oblique (DejaVu Sans Bold Oblique) DejaVu Sans
DejaVu Sans Condensed (DejaVu Sans Condensed) DejaVu Sans Condensed
DejaVu Sans Condensed Bold (DejaVu Sans Condensed Bold) DejaVu Sans Condensed
DejaVu Sans Condensed Bold Oblique (DejaVu Sans Condensed Bold Oblique) DejaVu Sans Condensed
DejaVu Sans Condensed Oblique (DejaVu Sans Condensed Oblique) DejaVu Sans Condensed
DejaVu Sans ExtraLight (DejaVu Sans ExtraLight) DejaVu Sans Light
DejaVu Sans Mono (DejaVu Sans Mono) DejaVu Sans Mono
DejaVu Sans Mono Bold (DejaVu Sans Mono Bold) DejaVu Sans Mono
DejaVu Sans Mono Bold Oblique (DejaVu Sans Mono Bold Oblique) DejaVu Sans Mono
DejaVu Sans Mono Oblique (DejaVu Sans Mono Oblique) DejaVu Sans Mono
DejaVu Sans Oblique (DejaVu Sans Oblique) DejaVu Sans
DejaVu Serif (DejaVu Serif) DejaVu Serif
DejaVu Serif Bold (DejaVu Serif Bold) DejaVu Serif
DejaVu Serif Bold Italic (DejaVu Serif Bold Italic) DejaVu Serif
DejaVu Serif Condensed (DejaVu Serif Condensed) DejaVu Serif Condensed
DejaVu Serif Condensed Bold (DejaVu Serif Condensed Bold) DejaVu Serif Condensed
DejaVu Serif Condensed Bold Italic (DejaVu Serif Condensed Bold Italic) DejaVu Serif Condensed
DejaVu Serif Condensed Italic (DejaVu Serif Condensed Italic) DejaVu Serif Condensed
DejaVu Serif Italic (DejaVu Serif Italic) DejaVu Serif
Dialog.bold (Dialog.bold) Dialog
Dialog.bolditalic (Dialog.bolditalic) Dialog
Dialog.italic (Dialog.italic) Dialog
Dialog.plain (Dialog.plain) Dialog
DialogInput.bold (DialogInput.bold) DialogInput
DialogInput.bolditalic (DialogInput.bolditalic) DialogInput
DialogInput.italic (DialogInput.italic) DialogInput
DialogInput.plain (DialogInput.plain) DialogInput
Dingbats  (Dingbats ) Dingbats
Georgia (Georgia) Georgia
Georgia Bold (Georgia Bold) Georgia
Georgia Bold Italic (Georgia Bold Italic) Georgia
Georgia Italic (Georgia Italic) Georgia
Impact (Impact) Impact
Liberation Mono (Liberation Mono) Liberation Mono
Liberation Mono Bold (Liberation Mono Bold) Liberation Mono
Liberation Mono Bold Italic (Liberation Mono Bold Italic) Liberation Mono
Liberation Mono Italic (Liberation Mono Italic) Liberation Mono
Liberation Sans (Liberation Sans) Liberation Sans
Liberation Sans Bold (Liberation Sans Bold) Liberation Sans
Liberation Sans Bold Italic (Liberation Sans Bold Italic) Liberation Sans
Liberation Sans Italic (Liberation Sans Italic) Liberation Sans
Liberation Sans Narrow (Liberation Sans Narrow) Liberation Sans Narrow
Liberation Sans Narrow Bold (Liberation Sans Narrow Bold) Liberation Sans Narrow
Liberation Sans Narrow Bold Italic (Liberation Sans Narrow Bold Italic) Liberation Sans Narrow
Liberation Sans Narrow Italic (Liberation Sans Narrow Italic) Liberation Sans Narrow
Liberation Serif (Liberation Serif) Liberation Serif
Liberation Serif Bold (Liberation Serif Bold) Liberation Serif
Liberation Serif Bold Italic (Liberation Serif Bold Italic) Liberation Serif
Liberation Serif Italic (Liberation Serif Italic) Liberation Serif
Monospaced.bold (Monospaced.bold) Monospaced
Monospaced.bolditalic (Monospaced.bolditalic) Monospaced
Monospaced.italic (Monospaced.italic) Monospaced
Monospaced.plain (Monospaced.plain) Monospaced
Nimbus Mono L Bold (Nimbus Mono L Bold) Nimbus Mono L
Nimbus Mono L Bold Oblique (Nimbus Mono L Bold Oblique) Nimbus Mono L
Nimbus Mono L Regular (Nimbus Mono L Regular) Nimbus Mono L
Nimbus Mono L Regular Oblique (Nimbus Mono L Regular Oblique) Nimbus Mono L
Nimbus Roman No9 L Medium (Nimbus Roman No9 L Medium) Nimbus Roman No9 L
Nimbus Roman No9 L Medium Italic (Nimbus Roman No9 L Medium Italic) Nimbus Roman No9 L
Nimbus Roman No9 L Regular (Nimbus Roman No9 L Regular) Nimbus Roman No9 L
Nimbus Roman No9 L Regular Italic (Nimbus Roman No9 L Regular Italic) Nimbus Roman No9 L
Nimbus Sans L Bold (Nimbus Sans L Bold) Nimbus Sans L
Nimbus Sans L Bold Condensed (Nimbus Sans L Bold Condensed) Nimbus Sans L
Nimbus Sans L Bold Condensed Italic (Nimbus Sans L Bold Condensed Italic) Nimbus Sans L
Nimbus Sans L Bold Italic (Nimbus Sans L Bold Italic) Nimbus Sans L
Nimbus Sans L Regular (Nimbus Sans L Regular) Nimbus Sans L
Nimbus Sans L Regular Condensed (Nimbus Sans L Regular Condensed) Nimbus Sans L
Nimbus Sans L Regular Condensed Italic (Nimbus Sans L Regular Condensed Italic) Nimbus Sans L
Nimbus Sans L Regular Italic (Nimbus Sans L Regular Italic) Nimbus Sans L
SansSerif.bold (SansSerif.bold) SansSerif
SansSerif.bolditalic (SansSerif.bolditalic) SansSerif
SansSerif.italic (SansSerif.italic) SansSerif
SansSerif.plain (SansSerif.plain) SansSerif
Serif.bold (Serif.bold) Serif
Serif.bolditalic (Serif.bolditalic) Serif
Serif.italic (Serif.italic) Serif
Serif.plain (Serif.plain) Serif
Standard Symbols L (Standard Symbols L) Standard Symbols L
Times New Roman (Times New Roman) Times New Roman
Times New Roman Bold (Times New Roman Bold) Times New Roman
Times New Roman Bold Italic (Times New Roman Bold Italic) Times New Roman
Times New Roman Italic (Times New Roman Italic) Times New Roman
Trebuchet MS (Trebuchet MS) Trebuchet MS
Trebuchet MS Bold (Trebuchet MS Bold) Trebuchet MS
Trebuchet MS Bold Italic (Trebuchet MS Bold Italic) Trebuchet MS
Trebuchet MS Italic (Trebuchet MS Italic) Trebuchet MS
URW Bookman L Demi Bold (URW Bookman L Demi Bold) URW Bookman L
URW Bookman L Demi Bold Italic (URW Bookman L Demi Bold Italic) URW Bookman L
URW Bookman L Light (URW Bookman L Light) URW Bookman L
URW Bookman L Light Italic (URW Bookman L Light Italic) URW Bookman L
URW Chancery L Medium Italic (URW Chancery L Medium Italic) URW Chancery L
URW Gothic L Book (URW Gothic L Book) URW Gothic L
URW Gothic L Book Oblique (URW Gothic L Book Oblique) URW Gothic L
URW Gothic L Demi (URW Gothic L Demi) URW Gothic L
URW Gothic L Demi Oblique (URW Gothic L Demi Oblique) URW Gothic L
URW Palladio L Bold (URW Palladio L Bold) URW Palladio L
URW Palladio L Bold Italic (URW Palladio L Bold Italic) URW Palladio L
URW Palladio L Italic (URW Palladio L Italic) URW Palladio L
URW Palladio L Roman (URW Palladio L Roman) URW Palladio L
Verdana (Verdana) Verdana
Verdana Bold (Verdana Bold) Verdana
Verdana Bold Italic (Verdana Bold Italic) Verdana
Verdana Italic (Verdana Italic) Verdana
Webdings (Webdings) Webdings

Java Stack Trace:

Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:237)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:147)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:128)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(SourceFile:111)
        at com.crystaldecisions.reports.sdk.PrintOutputController.export(SourceFile:54)
        at metacom.reports.crystal.CrystalReportGenerator.exportReport(CrystalReportGenerator.java:314)
        at metacom.reports.crystal.CrystalReportGenerator.exportReportToFile(CrystalReportGenerator.java:332)
        at metacom.email.reports.EmailReportSender.sendReport(EmailReportSender.java:147)
        ... 1 more
Caused by: java.lang.NullPointerException
        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.if(SourceFile:211)
        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.a(SourceFile:70)
        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.opentype.OpenTypeFontManager.if(SourceFile:77)
        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.if(SourceFile:113)
        at com.crystaldecisions.reports.exporters.format.page.pdf.fontembedding.FontEmbeddingSession.a(SourceFile:104)
        at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.r.if(SourceFile:594)
        at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.r.a(SourceFile:424)
        at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.PdfDocumentManager.a(SourceFile:337)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:1584)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:1492)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:780)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:729)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:683)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.a.a(SourceFile:2114)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.if(SourceFile:1829)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.int(SourceFile:1821)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.a(SourceFile:455)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.a(SourceFile:304)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.a(SourceFile:283)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.d.a(SourceFile:283)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.b.a(SourceFile:217)
        at com.crystaldecisions.reports.exporters.format.page.pdf.dom.PdfAdvancedDocumentModeller.a(SourceFile:177)
        at com.crystaldecisions.reports.exporters.page.pdf.AdobePDFExporter.a(SourceFile:252)
        at com.crystaldecisions.reports.exporters.page.pdf.AdobePDFExporter.processFormattedContent(SourceFile:200)
        at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:105)
        at com.crystaldecisions.reports.formatter.export2.a.a(SourceFile:253)
        at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(SourceFile:642)
        at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(SourceFile:586)
        at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(SourceFile:637)
        at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(SourceFile:673)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1943)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
        at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
        at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
        at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
        at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
        at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:1558)
        at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:337)
        at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(SourceFile:223)
        ... 8 more
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Nov 28, 2016 at 08:36 AM
0

And so I tried using the latest Java 8 instead of Java 7, and now it just works.

Share
10 |10000 characters needed characters left characters exceeded