krdb7778 Posted October 17, 2016 Share Posted October 17, 2016 I'm getting " Repository file resource /ignore_files/helpIconv1.png could not be loaded" error when I open my report in JasperSoft Server.This report contains an Image from Repository and has a tooltip Text. It is created in JasperSoft Studio v6.2Datasource Used: WebService Data AdapterJasperSoft Server version: 6.2Below is the code snippet :<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.2.0.final using JasperReports Library version 6.2.0 --><!-- 2016-10-17T15:01:30 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="helpIconImage" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="9c7f3c2b-3af1-4cf3-a173-bbfe6f6c0b7d"><property name="com.jaspersoft.studio.data.defaultdataadapter" value="SampleJSON"/><property name="ireport.jasperserver.url" value="http://localhost:8080/jasperserver-pro/"/><property name="ireport.jasperserver.user" value="superuser"/><property name="ireport.jasperserver.report.resource" value="/public/Report/helpIconImage_files/main_jrxml"/><property name="ireport.jasperserver.reportUnit" value="/public/Report/helpIconImage"/><property name="com.jaspersoft.studio.data.sql.tables" value=""/><queryString language="WebServiceQuery"><![CDATA[{ "fieldsMap" : { "groupName" : "groupName" }, "getparameters" : { }, "fields" : [ { "name" : "groupName", "expression" : "groupName" } ], "options" : { "contentType" : "application/json", "rootPath" : "groupInfo", "baseUrl" : "lpars" }, "headersMap" : { }, "queryData" : "", "GETParameters" : { }}]]></queryString><field name="groupName" class="java.lang.String"/><background><band splitType="Stretch"/></background><summary><band height="69" splitType="Stretch"><image><reportElement x="160" y="19" width="20" height="14" uuid="63dce7fa-3950-4bc2-a9f9-cb8a7a056531"><property name="com.jaspersoft.studio.unit.width" value="pixel"/><property name="com.jaspersoft.studio.unit.height" value="pixel"/></reportElement><imageExpression><![CDATA["repo:helpIconv1.png"]]></imageExpression><hyperlinkTooltipExpression><![CDATA["Testing Question Mark"]]></hyperlinkTooltipExpression></image></band></summary></jasperReport> But When I change the data source to SQL, the report is working as expected.Below is the code snippet :<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="helpIconImage" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="9c7f3c2b-3af1-4cf3-a173-bbfe6f6c0b7d"><property name="com.jaspersoft.studio.data.defaultdataadapter" value="SampleInstallDatabase"/><property name="ireport.jasperserver.url" value="http://localhost:8080/jasperserver-pro/"/><property name="ireport.jasperserver.user" value="superuser"/><property name="ireport.jasperserver.report.resource" value="/public/Report/helpIconImage_files/main_jrxml"/><property name="ireport.jasperserver.reportUnit" value="/public/Report/helpIconImage"/><property name="com.jaspersoft.studio.data.sql.tables" value=""/><queryString><![CDATA[select emp_no from employees.employees]]></queryString><field name="emp_no" class="java.lang.Integer"><fieldDescription><![CDATA[]]></fieldDescription></field><background><band splitType="Stretch"/></background><summary><band height="69" splitType="Stretch"><image><reportElement x="160" y="19" width="20" height="14" uuid="63dce7fa-3950-4bc2-a9f9-cb8a7a056531"><property name="com.jaspersoft.studio.unit.width" value="pixel"/><property name="com.jaspersoft.studio.unit.height" value="pixel"/></reportElement><imageExpression><![CDATA["repo:helpIconv1.png"]]></imageExpression><hyperlinkTooltipExpression><![CDATA["Testing Question Mark"]]></hyperlinkTooltipExpression></image></band></summary></jasperReport> Would appreciate help on the below issue. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now