Jump to content
We've recently updated our Privacy Statement, available here ×

brianhamiltonsf

Members
  • Posts

    3
  • Joined

  • Last visited

brianhamiltonsf's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. See below. I'm using a publicly available XML page - http://www.senate.gov/general/contact_information/senators_cfm.xml - to understand how to build reports prior to using it on a real project. Any help is greatly appreciated! Code:<?xml version="1.0" encoding="UTF-8"?><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="senate_contact_info" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <queryString language="xpath2"> <![CDATA[/contact_information/member]]> </queryString> <field name="member_full" class="java.lang.String"> <fieldDescription><![CDATA[member_full]]></fieldDescription> </field> <field name="address" class="java.lang.String"> <fieldDescription><![CDATA[address]]></fieldDescription> </field> <field name="phone" class="java.lang.String"> <fieldDescription><![CDATA[phone]]></fieldDescription> </field> <field name="website" class="java.lang.String"> <fieldDescription><![CDATA[website]]></fieldDescription> </field> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"/> </title> <pageHeader> <band height="30" splitType="Stretch"/> </pageHeader> <columnHeader> <band height="61" splitType="Stretch"> <staticText> <reportElement x="0" y="41" width="100" height="20"/> <textElement> <font size="14" isBold="true"/> </textElement> <text><![CDATA[senator]]></text> </staticText> <staticText> <reportElement x="100" y="41" width="190" height="20"/> <textElement> <font size="14" isBold="true"/> </textElement> <text><![CDATA[Address]]></text> </staticText> <staticText> <reportElement x="290" y="41" width="100" height="20"/> <textElement> <font size="14" isBold="true"/> </textElement> <text><![CDATA[Phone]]></text> </staticText> <staticText> <reportElement x="390" y="41" width="100" height="20"/> <textElement> <font size="14" isBold="true"/> </textElement> <text><![CDATA[Website]]></text> </staticText> </band> </columnHeader> <detail> <band height="125" splitType="Stretch"> <textField> <reportElement x="0" y="0" width="100" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{member_full}]]></textFieldExpression> </textField> <textField> <reportElement x="100" y="0" width="190" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{address}]]></textFieldExpression> </textField> <textField> <reportElement x="290" y="0" width="100" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{phone}]]></textFieldExpression> </textField> <textField> <reportElement x="390" y="0" width="165" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{website}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="54" splitType="Stretch"/> </pageFooter> <summary> <band height="42" splitType="Stretch"/> </summary></jasperReport>
  2. I am using iReport 4.5 and JasperReport Server 4.5 on EC2 via a Bitnami image. My data source is a remote XML file. I am able to create a report just fine in iReport but I get this error when I try to deploy the jrxml file. I've browsed these forums and a lot of the fixes talk about compatibility. I actually downgraded from iReport 4.6 for this very reason, after setting iReport 4.6 compatibility to 4.5 did not work. I also tried saving my jrxml file as UTF-8 without any luck.
×
×
  • Create New...