Error when opening a report with Image using Web Service Data Source

0

I'm getting " Repository file resource /ignore_files/helpIconv1.png could not be loadederror 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.2

Datasource Used: WebService Data Adapter

JasperSoft Server version: 6.2

Below 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.
krdb7778's picture
Joined: Oct 17 2016 - 1:57am
Last seen: 3 years 5 days ago

0 Answers:

No answers yet
Feedback