Jump to content
Changes to the Jaspersoft community edition download ×

jr0.2.2 - itext pdf gen problem


Recommended Posts

By: Steven Blough - stevenblough

jr0.2.2 - itext pdf gen problem

2002-02-05 05:46

Hi Teodor,

I am having a issue with generating a pdf when using jr0.2.2. I have tried all of the combinations of jasperreports and itext and received errors with all of them.

thanks

Steven Blough

 

----

i-text version 0.73: JasperReports version 0.2.2

java.lang.NullPointerException

at com.lowagie.text.pdf.BaseFont.getBaseName(BaseFont.java:264)

at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:219)

at dori.jasper.engine.JRPrinterPDF.printText(JRPrinterPDF.java:316)

at dori.jasper.engine.JRPrinterPDF.printPage(JRPrinterPDF.java:151)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:103)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:66)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:206)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:177)

at JasperReportsTestApp.main(JasperReportsTestApp.java:115)

----

 

i-text version 0.80: JasperReports version 0.2.2

java.lang.NullPointerException

at com.lowagie.text.pdf.BaseFont.getBaseName(BaseFont.java:349)

at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:301)

at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:273)

at dori.jasper.engine.JRPrinterPDF.printText(JRPrinterPDF.java:316)

at dori.jasper.engine.JRPrinterPDF.printPage(JRPrinterPDF.java:151)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:103)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:66)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:206)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:177)

at JasperReportsTestApp.main(JasperReportsTestApp.java:115)

----

 

i-text version 0.81: JasperReports version 0.2.2

java.lang.NullPointerException

at com.lowagie.text.pdf.BaseFont.getBaseName(BaseFont.java:366)

at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:318)

at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:290)

at dori.jasper.engine.JRPrinterPDF.printText(JRPrinterPDF.java:316)

at dori.jasper.engine.JRPrinterPDF.printPage(JRPrinterPDF.java:151)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:103)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:66)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:206)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:177)

at JasperReportsTestApp.main(JasperReportsTestApp.java:115)

----

 

i-text version 0.73: JasperReports version 0.2.1

PDF created

----

 

i-text version 0.80: JasperReports version 0.2.1

java.lang.RuntimeException: Inconsistent writers. Are you mixing two documents?

at com.lowagie.text.pdf.PdfContentByte.add(PdfContentByte.java:155)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:84)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:45)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:152)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:129)

at JasperReportsTestApp.main(JasperReportsTestApp.java:115)

----

 

i-text version 0.81: JasperReports version 0.2.1

java.lang.RuntimeException: Inconsistent writers. Are you mixing two documents?

at com.lowagie.text.pdf.PdfContentByte.add(PdfContentByte.java:175)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:84)

at dori.jasper.engine.JRPrinterPDF.printReport(JRPrinterPDF.java:45)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:152)

at dori.jasper.engine.JasperManager.printReportToPdfFile(JasperManager.java:129)

at JasperReportsTestApp.main(JasperReportsTestApp.java:115)

----

 

 

By: Teodor Danciu - teodord

RE: jr0.2.2 - itext pdf gen problem

2002-02-05 08:33

 

Hi,

 

I'm afraid there is indeed a bug in JasperReports

regarding the fonts. I'll come up with a patch

before the end of this week.

 

Till then, please define a "reportFont" element

in your XML design and make it isDefault="true".

 

The error should disappear.

 

Thanks,

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...