byte data not found at message.png - Jasper report error

Document ID : KB000108006
Last Modified Date : 27/07/2018
Show Technical Document Details
Issue:
When Viewing Report by Selecting : Reports -> Universe –> Select Certification Report

Error is  : net.sf.jasperreports.engine.JRRuntimeException:net.sf.jasperreports.engine.JRException:Byte data not found at: message.png.

User-added image
 
Environment:
IG 12.65
Oracle RAC 12c Database
JBoss EAP 6.4.0.GA 
Jasper Server 6.2 
Windows 2012
Cause:
The Image source missed from the Report.
Resolution:
1. By using "Jaspersoft Studio-6.6.0" , Edit the problematic Report.

2.  Need to use the same URL as when you connect to jasperserver console
ie : http://myserver.ca.com:8080/jasperserver-pro

with Credentials : superuser/password

3. Click on Servers,  expand “JasperReports Server”, Expand “Organizations” -> IG -> Reports
And select the Report you want to modify. Ie: Certifications ,Expand the Certifications Report Folder.

User-added image


User-added image

- Confirm the message.PNG file is present on images folder and the con is Displayed Correctly.

User-added image


4. Now Edit the Report. Do the following :

Right click on Report Name (ie. Certification) and select “Open in Editor” option .
 
User-added image

5. From the Report, the message Icon it not displayed as Expected. 
   The Image Should looks like a message Icon (on this specific case) , but we realized that was showed as generic Icon.
    Image source seems to be wrong.

User-added image

User-added image


6. Need to set Image Source correctly to resolve , 
   Right click on the Image Icon and select 
  “Change Image Source” option

User-added image

7.  Choose  “Select a resource from JasperReports Server” and then click on Browse option 

 User-added image

8. Expand Organizations->IG-> resources-> images , and select the image missing..
message.PNG
 
User-added image
User-added image

Select the message.PNG 


9. Click “Finish” and Ok
 

10. You could have problems to save the Report Changes (just Allow to Save As..), so suggestion is to
 use “Preview” Tab first (located under the Report Editor) and from Jasper Studio Menu-File, you will see enabled the option “save” .

User-added image
 
11. You will see a Prompt from Export Report to JasperReport Server, asking if
      - Do you want to publish this report to JasperReports Server? , answer : YES

User-added image

User-added image

User-added image
Publish this report to JasperReports Server

12. Click on Next ,
13. Click on Next, and Finish

14. You Will need to Do the same changes for each report failing due message.PNG file missed.
On this case the Report files are the following :
Account_Certification.jrxml
Resource_Certification.jrxml
Role_Certification.jrxml
User_Certification.jrxml

User-added image

15. Review the Report to confirm the problem was resolved.

User-added image


 
Additional Information:
You can download Jasper Studio from here :
https://community.jaspersoft.com/community-download