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

maharshi_b

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

maharshi_b'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. I am newbie to jasper reports. I created a report which uses java bean datasource, using iReport (5.1.0). When I copy the jrxml file in my IntelliJ IDE it shows two errors: 1. Element jr:Table is not allowed here and 2. For xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" it shows URI is not registered. Please help if you know what is wrong with the jrxml file generated by iReport Designer (Note: I have not hand modified the report, it is purely autogenerated) I am copy/pasting my jrxml file below: <?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="report name" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="171ad083-b911-433e-98c0-a2c64361d005"> <property name="ireport.zoom" value="1.5"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <style name="table"> <box> <pen lineWidth="1.0" lineColor="#000000"/> </box> </style> <style name="table_TH" mode="Opaque" backcolor="#F0F8FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_CH" mode="Opaque" backcolor="#BFE1FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> <conditionalStyle> <conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==0)]]></conditionExpression> <style backcolor="#EFF7FF"/> </conditionalStyle> </style> <style name="table 1"> <box> <pen lineWidth="1.0" lineColor="#000000"/> </box> </style> <style name="table 1_TH" mode="Opaque" backcolor="#F0F8FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table 1_CH" mode="Opaque" backcolor="#BFE1FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> <conditionalStyle> <conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==0)]]></conditionExpression> <style backcolor="#EFF7FF"/> </conditionalStyle> </style> <subDataset name="ReportDataset" uuid="1d00e880-ed41-4776-9673-28f14c51affc"/> <queryString> <![CDATA[]]> </queryString> <field name="field1" class="java.lang.String"/> <field name="createdAt" class="java.lang.Float"> <fieldDescription><![CDATA[createdAt]]></fieldDescription> </field> <field name="facility" class="java.lang.String"> <fieldDescription><![CDATA[facility]]></fieldDescription> </field> <field name="fullMessage" class="java.lang.String"> <fieldDescription><![CDATA[fullMessage]]></fieldDescription> </field> <field name="host" class="java.lang.String"> <fieldDescription><![CDATA[host]]></fieldDescription> </field> <field name="nodeId" class="java.lang.String"> <fieldDescription><![CDATA[nodeId]]></fieldDescription> </field> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"/> </title> <pageHeader> <band height="35" splitType="Stretch"/> </pageHeader> <columnHeader> <band height="61" splitType="Stretch"/> </columnHeader> <detail> <band height="125" splitType="Stretch"> <componentElement> <reportElement uuid="fb267f18-2913-4357-b8f2-d76060315eea" key="table 1" style="table 1" x="0" y="0" width="555" height="125"/> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="ReportDataset" uuid="12e70ffb-1aa1-4c17-b7dd-29f01e6be421"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.JREmptyDataSource(1)]]></dataSourceExpression> </datasetRun> <jr:column width="90" uuid="b886284f-7b00-49e3-a0f4-9855c2633ca7"> <jr:columnHeader style="table 1_CH" height="30" rowSpan="1"> <staticText> <reportElement uuid="24aedc64-b511-432d-9d58-7a5d3f2e448c" x="0" y="0" width="90" height="30"/> <textElement/> <text><![CDATA[Created At]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="table 1_TD" height="95" rowSpan="1"> <textField> <reportElement uuid="749b53db-3e6e-49eb-b7a5-2ec3594d5c02" x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{createdAt}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="90" uuid="f7333cec-35c6-46ca-8158-585042c68c8b"> <jr:columnHeader style="table 1_CH" height="30" rowSpan="1"> <staticText> <reportElement uuid="213bcc1a-2962-4988-836c-5ed41c39cbd3" x="0" y="0" width="90" height="30"/> <textElement/> <text><![CDATA[Host]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="table 1_TD" height="95" rowSpan="1"> <textField> <reportElement uuid="d7267305-1b32-4687-b8a0-1f0ef8677441" x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{host}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="90" uuid="46b5d7ac-cef6-4671-948d-864afeb55235"> <jr:columnHeader style="table 1_CH" height="30" rowSpan="1"> <staticText> <reportElement uuid="6f49ca48-3b2c-4ec7-8e88-b5581b93cc3b" x="0" y="0" width="90" height="30"/> <textElement/> <text><![CDATA[NodeId]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="table 1_TD" height="95" rowSpan="1"> <textField> <reportElement uuid="d201a64a-126e-48db-97ee-e4bf14a911e4" x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{nodeId}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="90" uuid="4fc77708-c26b-46ca-8aaa-d376a543e98b"> <jr:columnHeader style="table 1_CH" height="30" rowSpan="1"> <staticText> <reportElement uuid="142e38f9-7184-46d8-bd1c-e6d443afcae9" x="0" y="0" width="90" height="30"/> <textElement/> <text><![CDATA[Facility]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="table 1_TD" height="95" rowSpan="1"> <textField> <reportElement uuid="be6f2d32-9267-466a-b241-2d48e7e7ab1a" x="0" y="0" width="90" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{facility}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="192" uuid="4d3a9672-d4ff-4c20-856c-60e77ccac0df"> <jr:columnHeader style="table 1_CH" height="30" rowSpan="1"> <staticText> <reportElement uuid="dfa1adad-d617-4cd1-8a22-34982c4fe898" x="0" y="0" width="192" height="30"/> <textElement/> <text><![CDATA[Full Message]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="table 1_TD" height="95" rowSpan="1"> <textField> <reportElement uuid="19fb8b3e-c555-448f-ae3f-38de8486d09f" x="0" y="0" width="192" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{fullMessage}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="54" splitType="Stretch"/> </pageFooter> <summary> <band height="42" splitType="Stretch"/> </summary> </jasperReport>
×
×
  • Create New...