-
Notifications
You must be signed in to change notification settings - Fork 394
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 4.14 null pointer exception with HTML output concerning background image #1436
Comments
Hello @reiner-killet, Could you please provide an example according to your description because all of my reports with backgroundimages on Tabel, Grid, Row, Cell are running. At which element is the background image located? The fix would be a special check of the object but I wants to test with your report that the backgroundimage will be displayed. |
Hello Thomas,
We currently do not use any background pictures, only Image tags.
I don’t know where BIRT expects this property.
This what I tried to find out:
* Deleted all styles (we use only common styles).
* Added background pictures to concerned common styles (label, data, text, report, dynamic text).
* Added background pictures to all tags.
I always got the same exception which is not pointing on a certain element.
The element ID would probably be helpful in the message text.
Please find enclosed template and sample data.
The workspace path for the pictures should be c:\temp\birt\pisa.
Thanks, Reiner
Von: Thomas Gutmann ***@***.***>
Gesendet: Mittwoch, 27. September 2023 20:22
An: eclipse-birt/birt ***@***.***>
Cc: Reiner Killet ***@***.***>; Mention ***@***.***>
Betreff: Re: [eclipse-birt/birt] BIRT 4.14 null pointer exception with HTML output concerning background image (Issue #1436)
Hello @reiner-killet <https://github.com/reiner-killet> ,
thanks for your noet and also for the StackTrace. At first yes, there are some changes on the background images.
Based on your StackTrace I figured out the situation that the main object "BackgroundImageInfo" could be null
and therefore the NullPointerException appears.
Could you please provide an example according to your description because all of my reports with backgroundimages on Tabel, Grid, Row, Cell are running.
I tested different options embedded and URL-reference but I'm not able to get your error.
At which element is the background image located?
—
Reply to this email directly, view it on GitHub <#1436 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWYBUAVY5QW227HKJTUHZXTX4RVFTANCNFSM6AAAAAA5JFYIEA> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AWYBUAU5GFGPHTU3V4QABZ3X4RVFTA5CNFSM6AAAAAA5JFYIECWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTHSXQOW.gif> Message ID: ***@***.*** ***@***.***> >
|
Nevertheless could you provide me an example report because I didn't get the exception with my test cases. And additional question do due got the exception only on background images or also at standard images? |
I attached 4 files to my last e-mail. Didn't you receive them? |
I think you really need to visit the webpage #1436 in a browser and then drop the attachments into the browser's comment area rather than using an email reply for that purpose. |
Sorry I did not see, that it accepts zip files: |
Many thanks for that and I will take a look into it this evening. |
@reiner-killet |
into a birt report element (e.g. dynamic text) (eclipse-birt#1436)
The fix is added with PR #1440 The current preview can be created without the Exception and the images will be displayed, |
This issue is fixed with the current nightly built of BIRT 4.14 |
Hi,
I'm currently testing 4.14 with the RCP designer. All templates were previously running with 4.8.
WIth the 4.14 HTML emitter I get a null pointer exception:
java.lang.NullPointerException: Cannot invoke "org.eclipse.birt.report.engine.nLayout.area.style.BackgroundImageInfo.setUri(String)" because "backgroundImage" is null
The same templates are running error-free with DOCX or PDF output.
Can a BIRT developer please view that problem?
I could send rptDesigm & XML files.
Thanks, Reiner
Full stack trace.txt
The text was updated successfully, but these errors were encountered: