jasper dando erro não achei nada na net sobre, help | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por Wiliam

1 ano, 9 meses atrás Wiliam

jasper dando erro não achei nada na net sobre, help

Erro: net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: Could not resolve style(s): PHLabel. at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:553) at com.jaspersoft.studio.editor.preview.view.control.ReportController.access$18(ReportController.java:528) at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:446) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: net.sf.jasperreports.engine.JRRuntimeException: Could not resolve style(s): PHLabel. at net.sf.jasperreports.engine.fill.JRFillObjectFactory.checkUnresolvedReferences(JRFillObjectFactory.java:1663) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.setStyles(JRFillObjectFactory.java:1583) at net.sf.jasperreports.engine.fill.JRBaseFiller.loadStyles(JRBaseFiller.java:715) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:589) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:135) at java.base/java.lang.Thread.run(Unknown Source) Codigo fonte: ``` <?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version 6.18.1.final using JasperReports Library version 6.18.1-9d75d1969e774d4f179fb3be8401e98a0e6d1611 --> <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="Products" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="51286730-21e2-4f81-bf9c-482628042f93"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <queryString> <![CDATA[]]> </queryString> <background> <band splitType="Stretch"/> </background> <title> <band height="100" splitType="Stretch"> <image isLazy="true"> <reportElement key="image-1" style="PHLabel" x="87" y="30" width="70" height="40" uuid="8142d406-a502-4286-bc13-3944b9be8e32"/> <imageExpression><![CDATA["https://oai.com.br/site/wp-content/uploads/2018/06/Local.png"]]></imageExpression> </image> <staticText> <reportElement x="160" y="30" width="240" height="40" uuid="193dd71f-ed30-4928-9fce-823ff04acfc1"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="22"/> </textElement> <text><![CDATA[Listagem de Produtos]]></text> </staticText> <line> <reportElement x="0" y="86" width="560" height="1" uuid="27c7efa7-a91d-4d9c-9738-7d55b19ff8ce"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> </band> </title> <pageHeader> <band height="54" splitType="Stretch"> <textField pattern="MMMMM dd, yyyy"> <reportElement x="140" y="0" width="100" height="30" uuid="4a2de9ff-c851-4613-8cb3-24f7885ae758"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> <staticText> <reportElement x="20" y="0" width="100" height="30" uuid="d334a718-0841-4962-b8ba-c5558f5baf1a"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[Data de Geração]]></text> </staticText> </band> </pageHeader> <columnHeader> <band height="49" splitType="Stretch"> <staticText> <reportElement x="100" y="9" width="190" height="30" uuid="c3f86f59-8e0c-4594-9ab3-8fe1ecea7cc9"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[Descrição]]></text> </staticText> <staticText> <reportElement x="0" y="9" width="100" height="30" uuid="a1445e50-4eaa-41fc-be89-5c2f95f7f807"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[Codigo]]></text> </staticText> <staticText> <reportElement x="290" y="9" width="120" height="30" uuid="b4d1ee39-699c-4af3-ac23-f42c1927f0bf"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[Tipo]]></text> </staticText> <staticText> <reportElement x="410" y="9" width="100" height="30" uuid="deb2b312-44e0-4c5b-bac0-96c0660ce2ac"> <property name="com.jaspersoft.studio.unit.y" value="px"/> </reportElement> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[Valor]]></text> </staticText> </band> </columnHeader> <detail> <band height="58" splitType="Stretch"> <textField> <reportElement x="0" y="10" width="100" height="30" uuid="5f8c9582-63ce-4c33-b718-377297877320"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Text Field"]]></textFieldExpression> </textField> <textField> <reportElement x="100" y="10" width="190" height="30" uuid="6468bbf3-583b-42d3-8b66-24552ecd9960"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Text Field"]]></textFieldExpression> </textField> <textField> <reportElement x="290" y="10" width="120" height="30" uuid="e61551bf-44b5-4dd9-bb15-3a673adb99b8"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Text Field"]]></textFieldExpression> </textField> <textField> <reportElement x="410" y="10" width="100" height="30" uuid="a5fa4d34-0104-4f46-a7f5-b6106af39736"/> <box> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"/> <textFieldExpression><![CDATA["Text Field"]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="44" splitType="Stretch"/> </pageFooter> <summary> <band height="46" splitType="Stretch"> <textField evaluationTime="Report"> <reportElement x="280" y="8" width="100" height="30" uuid="d3f40ff8-6b30-4548-b3dd-fc1ef658e79b"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> <staticText> <reportElement x="157" y="8" width="100" height="30" uuid="d1a28a0f-e3f1-4963-817e-312ba9164f88"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font size="12"/> </textElement> <text><![CDATA[Total]]></text> </staticText> </band> </summary> </jasperReport> ```

1 Respostas