Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIRT Report Designer 4.9.0. - Chart don't work in View Report as PDF #1042

Closed
rankdev01 opened this issue Sep 12, 2022 · 8 comments · Fixed by #1070
Closed

BIRT Report Designer 4.9.0. - Chart don't work in View Report as PDF #1042

rankdev01 opened this issue Sep 12, 2022 · 8 comments · Fixed by #1070
Milestone

Comments

@rankdev01
Copy link

rankdev01 commented Sep 12, 2022

I've installed BIRT report designer 4.9.0. traing to test some reports, and I notice that reports that contains Chart elements are not well generated in PDF format.

The browser shows the message: "An error occurred while loading the PDF document."

Windows 10 x64: birt-rcp-report-designer-4.9.0-20220315-win32.win32.x86_64.zip
Example:
chart_test.zip
Tested with JVM 11 and 18

@speckyspooky
Copy link
Contributor

Hello Together,

I confirm there is an issue with the rcp-designer. I started some retests with the same configuration like above with JVM11.
The issue is located at the services of POSTSCRIPT and PDF. Both output formats cann't be processed.

Processing of PS error message:

BIRT-PS-error

Processing PDF - result is an empty PDF:

BIRT-PDF-error

Both errors are reproducable with the BIRT-viewer and with the direct processing call from the designer (without designer).
The other output formats can be produced correctly.

Regression test (manual) BIRT 4.9 with the "all-in-one"-designer (JVM11):

  • PDF-document created correctly
  • PS-document ended in error above

Regression test (manual) BIRT 4.8 with the "all-in-one"-designer (JVM8):

  • PDF-document created correctly
  • PS-document created correctly

Can somebody assists with it. It seams to be an issue with the SOAP-service requests or the emitter service registration.

Best regards

@hvbtup
Copy link
Contributor

hvbtup commented Sep 19, 2022

I can confirm the PS issue with a (custom) 4.10 I built April 2022.

Part of the stack trace is:

Caused by: java.lang.ClassCastException: class java.util.HashMap cannot be cast to class java.util.Properties (java.util.HashMap and java.util.Properties are in module java.base of loader 'bootstrap')
at org.eclipse.birt.report.engine.emitter.postscript.PostscriptWriter.getFontPath(PostscriptWriter.java:741)
at org.eclipse.birt.report.engine.emitter.postscript.PostscriptWriter.applyFont(PostscriptWriter.java:682)
at org.eclipse.birt.report.engine.emitter.postscript.PostscriptWriter.drawString(PostscriptWriter.java:538)
at org.eclipse.birt.report.engine.emitter.postscript.device.PostscriptPage.drawText(PostscriptPage.java:77)
at org.eclipse.birt.report.engine.layout.emitter.AbstractPage.drawText(AbstractPage.java:97)

@claesrosell
Copy link
Contributor

Was not this fixed with #1010 ? I think so.

@hvbtup
Copy link
Contributor

hvbtup commented Sep 19, 2022

Yes, it seems so.

@wimjongman
Copy link
Contributor

We have a release candidate available for test here:

https://download.eclipse.org/birt/downloads/drops/snapshot/

@wimjongman wimjongman added this to the 4.10 milestone Sep 27, 2022
@rankdev01
Copy link
Author

rankdev01 commented Sep 27, 2022

I've installed: birt-rcp-report-designer-4.10.0-20220926-win32.win32.x86_64.zip
https://download.eclipse.org/birt/downloads/drops/snapshot/birt-rcp-report-designer-4.10.0-20220926-win32.win32.x86_64.zip
Tested with JVM 18
I've done a test with the chart_test.rptdesign added in the first comment.
Still not working, same issue. In View Report as PDF the report don't work.
The browser shows the message: "An error occurred while loading the PDF document."
Not fixed yet.

@wimjongman
Copy link
Contributor

I have tried your report with the latest snapshot 4.10.0-20220926

runtime (Java 17): PDF✔️ POSTSCRIPT✔️
All in one (Java 11 and Java 18): PDF✔️ POSTSCRIPT✔️
RCP report designer: PDF❌ POSTSCRIPT✔️

Is there a specific reason why you use the RCP Report Designer? It lacks a large number of features, one of which is proper logging.

wimjongman added a commit to wimjongman/birt that referenced this issue Sep 27, 2022
Created an alternative configuration for the RCP designer
wimjongman added a commit to wimjongman/birt that referenced this issue Sep 27, 2022
Created an alternative configuration for the RCP designer
Move embedded jre to 17
wimjongman added a commit to wimjongman/birt that referenced this issue Sep 27, 2022
Created an alternative configuration for the RCP designer
Move embedded jre to 17
wimjongman added a commit to wimjongman/birt that referenced this issue Sep 27, 2022
Created an alternative configuration for the RCP designer
Move embedded jre to 17
wimjongman added a commit that referenced this issue Sep 30, 2022
Created an alternative configuration for the RCP designer
Move embedded jre to 17
@wimjongman
Copy link
Contributor

This was fixed. You can get it from the Actions from the snapshot area in about an hour or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants