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

2002 JI Open Discussion

Members
  • Posts

    1,481
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by 2002 JI Open Discussion

  1. By: CARLOS ALBERTO SILVA - csilva2001 error with JRLoader.class.getClassLoader 2003-01-01 11:52 Please, what means the message: ************************************************************************* * WARNING: Failure using Thread.currentThread().getContextClassLoader() * * in JRLoader class. Using JRLoader.class.getClassLoader() instead. * ************************************************************************* dori.jasper.engine.JRException: Could not load font from location : Helvetica-Bold ? If I load reportA.pdf, it runs ok. If load reportB.pdf, I receive the message above. Both report use Helvetica-Bold font. Why just reportB.pdf send me that error message?... OBS: both reports are compiled with jsperReport compiler. Can you help me? An embrace, Carlos By: Teodor Danciu - teodord RE: error with JRLoader.class.getClassLoader 2003-01-02 01:54 Hi, Are you sure there's no blank space in the pdfFontName attribute, before or after the Helvetica-Bold sequence? Can I see your XML report design? teodord@hotmail.com Thank you, Teodor By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-02 06:24 OK. <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="rptFabricante" columnCount="1" printOrder="Horizontal" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="BlankPage" isTitleNewPage="false" isSummaryNewPage="false"> <reportFont name="titulo1" isDefault="false" fontName="sansserif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> <reportFont name="tituloX" isDefault="false" fontName="sansserif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> <reportFont name="infos" isDefault="false" fontName="sansserif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> <queryString><![CDATA[ SELECT PAIS_SIGLA, FABRICANTE_NOME, CODEMP, FABRICANTE_ENDERECO FROM TBLFABRICANTE, TBLPAIS ORDER BY FABRICANTE_NOME ]]></queryString> <field name="PAIS_SIGLA" class="java.lang.String"/> <field name="FABRICANTE_NOME" class="java.lang.String"/> <field name="CODEMP" class="java.lang.String"/> <field name="FABRICANTE_ENDERECO" class="java.lang.String"/> <variable name="PAGE_COUNT11" class="java.lang.Integer" resetType="Report" calculation="Nothing"> </variable> <title> <band height="89"> <staticText> <reportElement mode="Transparent" x="2" y="6" width="532" height="21" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Times-Bold" size="16" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1250" isStrikeThrough="false" /> </textElement> <text><![CDATA[Diretoria de Saúde da Aeronáutica]]></text> </staticText> <staticText> <reportElement mode="Transparent" x="4" y="60" width="528" height="21" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" pdfFontName="Times-Bold" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" /> </textElement> <text><![CDATA[AgC-S6]]></text> </staticText> <staticText> <reportElement mode="Transparent" x="5" y="32" width="528" height="21" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" pdfFontName="Times-Bold" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" /> </textElement> <text><![CDATA[Agência de Catalogação]]></text> </staticText> </band> </title> <pageHeader> <band height="64"> <staticText> <reportElement mode="Transparent" x="3" y="8" width="528" height="22" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" reportFont="tituloX" pdfFontName="Helvetica-Bold" size="14" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Relatório de Fabricante]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="386" y="33" width="139" height="17" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.util.Date">new Date()</textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band height="26"> <staticText> <reportElement mode="Opaque" x="14" y="9" width="37" height="12" forecolor="#400040" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[item]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="55" y="9" width="159" height="12" forecolor="#400040" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Nome do Fabricante]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="221" y="9" width="62" height="12" forecolor="#400040" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[codeMP]]></text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="3" y="21" width="529" height="0" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" /> </line> <staticText> <reportElement mode="Transparent" x="292" y="8" width="195" height="11" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Endereço]]></text> </staticText> <staticText> <reportElement mode="Transparent" x="493" y="6" width="36" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[País]]></text> </staticText> </band> </columnHeader> <detail> <band height="19"> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="16" y="4" width="29" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="sansserif" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.Integer">$V{REPORT_COUNT}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="55" y="4" width="158" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{FABRICANTE_NOME}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="221" y="4" width="65" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{CODEMP}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="292" y="4" width="193" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{FABRICANTE_ENDERECO}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="493" y="4" width="34" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{PAIS_SIGLA}</textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="16"> </band> </columnFooter> <pageFooter> <band height="40"> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="374" y="9" width="80" height="15" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" lineSpacing="Single"> <font fontName="sansserif" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">"Página " + String.valueOf($V{PAGE_NUMBER}) + " de"</textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" > <reportElement mode="Transparent" x="454" y="9" width="75" height="15" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="Helvetica" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">" " + String.valueOf($V{PAGE_NUMBER})</textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="3"> </band> </summary> </jasperReport> Embrace. Carlos By: Teodor Danciu - teodord RE: error with JRLoader.class.getClassLoader 2003-01-02 07:41 Hi, I was able to generate report in PDF format using your XML without problems. However, be aware that the pdfEncoding attribute is case sensitive and the correct value would be Cp1252 and not CP1252. Could you post the entire stack trace you have? Thank you, Teodor By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-02 08:46 OK. <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="rptFabricante" columnCount="1" printOrder="Horizontal" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="BlankPage" isTitleNewPage="false" isSummaryNewPage="false"> <reportFont name="titulo1" isDefault="false" fontName="sansserif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> <reportFont name="tituloX" isDefault="false" fontName="sansserif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> <reportFont name="infos" isDefault="false" fontName="sansserif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> <queryString><![CDATA[ SELECT PAIS_SIGLA, FABRICANTE_NOME, CODEMP, FABRICANTE_ENDERECO FROM TBLFABRICANTE, TBLPAIS ORDER BY FABRICANTE_NOME ]]></queryString> <field name="PAIS_SIGLA" class="java.lang.String"/> <field name="FABRICANTE_NOME" class="java.lang.String"/> <field name="CODEMP" class="java.lang.String"/> <field name="FABRICANTE_ENDERECO" class="java.lang.String"/> <variable name="PAGE_COUNT11" class="java.lang.Integer" resetType="Report" calculation="Nothing"> </variable> <title> <band height="89"> <staticText> <reportElement mode="Transparent" x="2" y="6" width="532" height="21" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Times-Bold" size="16" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1250" isStrikeThrough="false" /> </textElement> <text><![CDATA[Diretoria de Saúde da Aeronáutica]]></text> </staticText> <staticText> <reportElement mode="Transparent" x="4" y="60" width="528" height="21" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" pdfFontName="Times-Bold" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" /> </textElement> <text><![CDATA[AgC-S6]]></text> </staticText> <staticText> <reportElement mode="Transparent" x="5" y="32" width="528" height="21" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" pdfFontName="Times-Bold" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" /> </textElement> <text><![CDATA[Agência de Catalogação]]></text> </staticText> </band> </title> <pageHeader> <band height="64"> <staticText> <reportElement mode="Transparent" x="3" y="8" width="528" height="22" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" lineSpacing="Single"> <font fontName="" reportFont="tituloX" pdfFontName="Helvetica-Bold" size="14" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Relatório de Fabricante]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="386" y="33" width="139" height="17" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.util.Date">new Date()</textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band height="26"> <staticText> <reportElement mode="Opaque" x="14" y="9" width="37" height="12" forecolor="#400040" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[item]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="55" y="9" width="159" height="12" forecolor="#400040" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Nome do Fabricante]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="221" y="9" width="62" height="12" forecolor="#400040" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[codeMP]]></text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="3" y="21" width="529" height="0" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" /> </line> <staticText> <reportElement mode="Transparent" x="292" y="8" width="195" height="11" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Endereço]]></text> </staticText> <staticText> <reportElement mode="Transparent" x="493" y="6" width="36" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[País]]></text> </staticText> </band> </columnHeader> <detail> <band height="19"> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="16" y="4" width="29" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="sansserif" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.Integer">$V{REPORT_COUNT}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="55" y="4" width="158" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{FABRICANTE_NOME}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="221" y="4" width="65" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{CODEMP}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="292" y="4" width="193" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{FABRICANTE_ENDERECO}</textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="493" y="4" width="34" height="13" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">$F{PAIS_SIGLA}</textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="16"> </band> </columnFooter> <pageFooter> <band height="40"> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="374" y="9" width="80" height="15" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" lineSpacing="Single"> <font fontName="sansserif" reportFont="infos" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">"Página " + String.valueOf($V{PAGE_NUMBER}) + " de"</textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" > <reportElement mode="Transparent" x="454" y="9" width="75" height="15" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" lineSpacing="Single"> <font fontName="Helvetica" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String">" " + String.valueOf($V{PAGE_NUMBER})</textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="3"> </band> </summary> </jasperReport> Embrace. Carlos By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-03 14:00 Hi, Teodor. Can you tell anything about that question? Carlos By: Teodor Danciu - teodord RE: error with JRLoader.class.getClassLoader 2003-01-06 02:05 Hi, I don't have any idea. Normally, the "Helvetica-Bold" font is one of the 14 built-in fonts that we could use with iText and the program should not try to load it as a TTF file from disk. Maybe Paulo could give us a hint here. Thank you, Teodor By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-06 05:38 I also do not understand... That same font works very well in other report. Please, what font you think I can use? By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-06 16:03 Hi Teodor. Who is Paulo? How can I communicate with Paulo? Thanks, Carlos By: Teodor Danciu - teodord RE: error with JRLoader.class.getClassLoader 2003-01-07 02:36 Hi, I referred to Paulo Soares, one of the iText developers. He answers from time to time to iText related questions posted on this forum. You could try to post this on the iText forum since I think it might be related to iText. The XML you've sent me works fine on my machine. Thank you, Teodor By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-07 05:23 Hi, Teodor. See the error message: * WARNING: Failure using Thread.currentThread().getContextClassLoader() * * in JRLoader class. Using JRLoader.class.getClassLoader() instead. * Do you have same idea about that message: Failure using Thread.currentThread().getContextClassLoader() * ? Maybe the error be before iText. That failure can be in my application code? Embrace, Carlos By: Teodor Danciu - teodord RE: error with JRLoader.class.getClassLoader 2003-01-07 05:34 Hi, No. The problem is that somehow the font "Helvetica-Bold" is not recognized as a build-in font. Normally, the engine should not go so far and try to load it from disk. Of course, it will fail when trying to load from disk, because there is no such TTF file anywhere. This is where you get the exception. But it should have not tried this in the first place. Teodor By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-13 16:36 Hi, Teodor. About my question, Paulo talk me: "This is a JR error, not iText. " Very bad, no? Teodor, I can't use JasperReport because pdf error. Will be I can do anything abaout? Reinstall Windows for example? Or maybed, put iText in classpath.... Please, tell me anything... I need builder my reports with JasperReport... Embrace, Carlos By: Ben Plantinga - benplant RE: error with JRLoader.class.getClassLoader 2003-01-13 22:59 Carlos: I believe I had a similar problem to what you are describing. I had an existing JasperReport XML file which I then edited with iReport. I managed to fix an error that was similar to yours by changing how the fonts were used in the body of the XML file. At the beginning of the report posted there are two report fonts set up. These are shown here: <reportFont name="titulo1" isDefault="false" fontName="sansserif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> <reportFont name="tituloX" isDefault="false" fontName="sansserif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="CP1252" isPdfEmbedded="false"/> In the body of the XML file the following font descriptions are used: <font fontName="" reportFont="tituloX" pdfFontName="Helvetica-Bold" size="14" isBold="true" isItalic="false" isUnderline="true" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> <font fontName="" reportFont="titulo1" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> I think the problem has something to do with iReports inserting more information in to the font description, such as the pdfFontName attribute. I think by replacing font descriptions like the two above with a simplified version (shown below), you should be able to fix the problem: <font reportFont="titulo1" size="12" isBold="true" /> <font reportFont="tituloX" isUnderline="true" /> Because the report Font description is already done at the beginning of the XML file, you don't need the whole description, but can add attributes like isBold and isUnderline, etc. (At least it seems to be working for me). I don't know the details of why this would be causing a problem, or if I am describing the solution correctly. But by replacing the full descriptions (including the pdfFontName attribute) with the simplified version in one of my own reports, I was able to solve my problem. Hope that helps you, Ben By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-16 14:38 Hi, Ben. Thanks a lot for the your attention. But my problem continue... I would like fix the error. JasperReport would be the report generator for my application. Maybe in next version, Teodor can resolve that problem... A embrace, Carlos By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-16 15:00 Hi, Ben. I created news fonts for reports. Deleted old ones. Compile the report and this time its ok with html and pdf. At least I can compile and execute. I think resolved the problem. Carlos By: CARLOS ALBERTO SILVA - csilva2001 RE: error with JRLoader.class.getClassLoader 2003-01-02 08:55 Here the messages: Compilation running time : 21261 Opening connection.... Executing query SELECT PAIS_SIGLA, FABRICANTE_NOME, CODEMP, FABRICANTE_ENDERECO FROM TBLFABRICANTE, TBLPAIS ORDER BY FABRICANTE_NOME Print generated succesfully. Exporting pdf to file... C:RepSGMSWriterptFabricante.pdf ************************************************************************* * WARNING: Failure using Thread.currentThread().getContextClassLoader() * * in JRLoader class. Using JRLoader.class.getClassLoader() instead. * ************************************************************************* dori.jasper.engine.JRException: Could not load font from location : Helvetica-Bold at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:850) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:316) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:270) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:214) at IReportCompiler.main(IReportCompiler.java:197) Abnormal termination! OK? By: Teodor Danciu - teodord RE: error with JRLoader.class.getClassLoader 2003-12-19 15:39 Hi, The true cause might be this one: https://sourceforge.net/forum/forum.php?thread_id=954508&forum_id=113530 But it could be any other mismatch between the pdfFontName and the pdfEncoding atttributs. The JasperReports code was update on the CVS repository to give more details about the cause of this exception. I hope this helps. Teodor
  2. By: Santhanam - santhanam jCharts problem 2003-12-19 22:06 Hi Friends, I am trying to use jcharts sample which comes with jasperreports along with webapp sample(i.e trying to call the report from Tomcat). I have copied the ChartScriptlet.class to tomcatcommonclasses.But i am getting the following error : ----------------------- java.lang.ClassCastException at dori.jasper.engine.fill.JRBaseFiller.loadScriptlet(JRBaseFiller.java:564) at dori.jasper.engine.fill.JRBaseFiller.(JRBaseFiller.java:324) ........ ---------------------- Please help me Thanks in Advance With Regards Santhanam
  3. By: Dinh Nguyen - dinhnguyen Exception:"Could not load font from location" 2003-07-21 02:48 Hi all, Whenever i run the below code, i got an error like this: "Could not load font from location : Helvetica". I tried to change to some popular fonts such as: Arial, Sanserif, that error still happens. I have an xml file like this ====================================== <pre> <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="classic" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <queryString><![CDATA[select saleorderid, ponumber, saletype from saleorder]]></queryString> <field name="SALEORDERID" class="java.lang.Long"/> <field name="PONUMBER" class="java.lang.String"/> <field name="SALETYPE" class="java.lang.Long"/> <variable name="test" class="java.lang.String" resetType="None" calculation="Nothing"> <variableExpression><![CDATA["test"]]></variableExpression> <initialValueExpression><![CDATA["test" ]]></initialValueExpression> </variable> <background> <band height="17"> </band> </background> <title> <band height="55"> <staticText> <reportElement mode="Transparent" x="61" y="5" width="412" height="40" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="30" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Gray Template]]></text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="48" width="534" height="0" forecolor="#808080" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="2Point" fill="Solid" /> </line> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="3" width="534" height="0" forecolor="#808080" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="2Point" fill="Solid" /> </line> <staticText> <reportElement mode="Transparent" x="59" y="2" width="412" height="40" forecolor="#808080" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="30" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Gray Template]]></text> </staticText> </band> </title> <pageHeader> <band height="28"> </band> </pageHeader> <columnHeader> <band height="35"> <staticText> <reportElement mode="Opaque" x="11" y="7" width="130" height="20" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[sale Order ID]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="160" y="7" width="130" height="20" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[PO number]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="309" y="5" width="130" height="20" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[sale type]]></text> </staticText> </band> </columnHeader> <detail> <band height="28"> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="11" y="4" width="127" height="16" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{SALEORDERID}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="160" y="4" width="128" height="16" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{PONUMBER}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="309" y="6" width="130" height="16" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{SALETYPE}]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement mode="Opaque" x="299" y="0" width="0" height="28" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <graphicElement stretchType="RelativeToTallestObject" pen="Thin" fill="Solid" /> </line> <line direction="TopDown"> <reportElement mode="Opaque" x="148" y="0" width="0" height="28" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <graphicElement stretchType="RelativeToTallestObject" pen="Thin" fill="Solid" /> </line> </band> </detail> <columnFooter> <band height="0"> </band> </columnFooter> <pageFooter> <band height="26"> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="325" y="4" width="174" height="19" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" > <reportElement mode="Transparent" x="499" y="4" width="36" height="19" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement mode="Opaque" x="1" y="3" width="530" height="0" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="2Point" fill="Solid" /> </line> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Transparent" x="1" y="6" width="209" height="19" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="SansSerif" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="0"> </band> </summary> </jasperReport> </pre> ====================================== And this is my java source code: ====================================== <pre> // First, load JasperDesign from XML and compile it into JasperReport FileInputStream fis = new FileInputStream("D:\saleorder2.xml"); System.setProperty("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser"); JasperDesign jasperDesign = JasperManager.loadXmlDesign(fis); JasperReport jasperReport = JasperManager.compileReport(jasperDesign); // Second, create a map of parameters to pass to the report. Map parameters = new HashMap(); //parameters.put("ReportTitle", "Basic JasperReport"); // Third, get a database connection DriverManager.registerDriver (new oracle.jdbc.OracleDriver()); Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:sid", "username", "password"); // Fourth, create JasperPrint using fillReport() method JasperPrint jasperPrint = JasperManager.fillReport(jasperReport, parameters, conn); //JasperManager.fillReport() // You can use JasperPrint to create PDF JasperManager.printReportToPdfFile(jasperPrint, "c:\BasicReport.pdf"); </pre> ====================================== All information about database server is correct (i have tested them separately). If i remove the font tag in that xml file, i get another exception: "report has no page" Your help apprecited. PS: You can privately reach me at dinhnguyen@psdus.com. By: Teodor Danciu - teodord RE: Exception:"Could not load font from locat 2003-12-19 15:37 Hi, Part of the problem is in iReport: https://sourceforge.net/forum/forum.php?thread_id=954508&forum_id=113530 Thank you, Teodor
  4. By: Arturo Davalos - davalos JRException: Could not load font from locatio 2003-06-26 10:51 I try to generate a pdf-report using a java applicaction (Using Eclipse). My applicaction compiles perfect, but when I try to run the console give a exception dori.jasper.engine.JRException: Could not load font from location : Courier at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1105) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:391) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:340) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:262) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:140) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:106) at siar.reports.Poliza.main(Poliza.java:70) Thanks Arturo Davalos By: Anderson Fabiano Ferreira de Ar - andersonf78 RE: JRException: Could not load font from loc 2003-07-02 06:22 try to inform the FULL report path. 'Courier' is very unlike to be a valid .jasper file. By: Cesar A. Correia - cesarac RE: JRException: Could not load font from locatio 2003-07-15 15:08 Hello, I having same problem!! But i need use a RELATIVE path and no FULL path, because I using Tomcat (and others applications servers) to fill report. In others words how Jasper look for fonts? Any idea? Thanks in advance!! By: Teodor Danciu - teodord RE: JRException: Could not load font from loc 2003-07-15 23:45 Hi, The font files can be located also as resources within the classpath. This is how all the provided samples work. In the "pdfFontName" we give their classpath location and not an absolute path on disk. I hope this helps. Teodor By: Teodor Danciu - teodord RE: JRException: Could not load font from loc 2003-12-19 15:33 Hi, The true cause might be this one: https://sourceforge.net/forum/forum.php?thread_id=954508&forum_id=113530 But it could be any other mismatch between the pdfFontName and the pdfEncoding atttributs. The JasperReports code was update on the CVS repository to give more details about the cause of this exception. I hope this helps. Teodor
  5. By: Arturo Davalos - davalos JRException: Could not load font from locatio 2003-06-26 10:51 I try to generate a pdf-report using a java applicaction (Using Eclipse). My applicaction compiles perfect, but when I try to run the console give a exception dori.jasper.engine.JRException: Could not load font from location : Courier at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1105) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:391) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:340) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:262) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:140) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:106) at siar.reports.Poliza.main(Poliza.java:70) Thanks Arturo Davalos By: Anderson Fabiano Ferreira de Ar - andersonf78 RE: JRException: Could not load font from loc 2003-07-02 06:22 try to inform the FULL report path. 'Courier' is very unlike to be a valid .jasper file. By: Cesar A. Correia - cesarac RE: JRException: Could not load font from locatio 2003-07-15 15:08 Hello, I having same problem!! But i need use a RELATIVE path and no FULL path, because I using Tomcat (and others applications servers) to fill report. In others words how Jasper look for fonts? Any idea? Thanks in advance!! By: Teodor Danciu - teodord RE: JRException: Could not load font from loc 2003-07-15 23:45 Hi, The font files can be located also as resources within the classpath. This is how all the provided samples work. In the "pdfFontName" we give their classpath location and not an absolute path on disk. I hope this helps. Teodor By: Teodor Danciu - teodord RE: JRException: Could not load font from loc 2003-12-19 15:33 Hi, The true cause might be this one: https://sourceforge.net/forum/forum.php?thread_id=954508&forum_id=113530 But it could be any other mismatch between the pdfFontName and the pdfEncoding atttributs. The JasperReports code was update on the CVS repository to give more details about the cause of this exception. I hope this helps. Teodor
  6. By: Althea Cape - althea Integrate Jasper with Eclipse? 2003-10-16 08:46 Hi, as I am a beginner in this, can anyone tell me how can I install Jasper into Eclipse? I am using Eclipse 2.1 and I downloaded Jasper 0.5.0. Thanks, Althea By: Chuck Deal - cdeal RE: Integrate Jasper with Eclipse? 2003-10-16 08:57 I suppose it depends on what you mean by "install into". I use Eclipse and Jasper, but Jasper isn't a plugin. Just make sure that the Jasper libs are in the Eclipse classpath of your project and you should be fine. By: Anuradha - anura RE: Integrate Jasper with Eclipse? 2003-10-20 04:49 U can try the solution which was posted by Dave Limer! Try with jdk1.4+ or you can edit your xml files created by i-Report & change 'CP1252' to 'Cp1252'. I hope this helps. ======= By: Althea Cape - althea RE: Integrate Jasper with Eclipse? 2003-10-17 08:53 Thanks Charles! PROBLEM: Now my problem seems to be that I want Greek in my HTML and PDF reports, but all I get is "????? ??" or nothing at all. I used the webapp demo that comes with Jasper, and I get the message: "dori.jasper.engine.JRException: Could not load font from location : helvetica" I made the following modifications: 1. I changed some of the data at the WebappDataSource.java and recompiled ok. 2. I tried using: <?xml version="1.0" encoding="UTF-8"?> or <?xml version="1.0" encoding="ISO-8859-7"?> 3. together with: pdfEncoding="Identity-H" RESULT: but nope! It Gives me "?????? ???" in HTMLs and nothing on PDFs. Is there something I'm doing wrong? How can I pu Greek characters in my reports (html/pdfs)? By: Teodor Danciu - teodord RE: Integrate Jasper with Eclipse? 2003-12-19 15:00 Hi, I think it should be pdfFontName="Helvetica" and not "helvetica". There is also the provided "unicode" sample that shows you how to generate reports in Greek. I hope this helps. Teodor
  7. By: Althea Cape - althea Greek in HTML/PDF: Could not load font... 2003-10-19 23:21 Hello again, PROBLEM: I want Greek in my HTML and PDF reports, but all I get is "????? ??" or nothing at all. I used the webapp demo that comes with Jasper, and I get the message: "dori.jasper.engine.JRException: Could not load font from location : helvetica" I made the following modifications: 1. I changed some of the data at the WebappDataSource.java and recompiled ok. 2. I tried using: <?xml version="1.0" encoding="UTF-8"?> or <?xml version="1.0" encoding="ISO-8859-7"?> 3. together with: pdfEncoding="Identity-H" RESULT: but nope! It Gives me "?????? ???" in HTMLs and nothing on PDFs. Is there something I'm doing wrong? How can I put Greek characters in my reports (html/pdfs)? Thanks, Althea By: Teodor Danciu - teodord RE: Greek in HTML/PDF: Could not load font... 2003-12-19 14:58 Hi, I think it should be pdfFontName="Helvetica" and not "helvetica". There is also the provided "unicode" sample that shows you how to generate reports in Greek. I hope this helps. Teodor
  8. By: Luiz Almeida - jsnake JRException: Helvetica 2003-11-05 05:59 Hi all, I have a web app inside the Tomcat that generate reports fine in a machine. The same report run in another machine whith the same configuration, but get errors. The error is show above: 2003-11-05 12:31:51,097 DEBUG [Thread-3] (BwRtmFatoCoordinator.java:265) - [FATO:54202] dori.jasper.engine.JRException: Could not load font from location : Helvetica at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1209) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:390) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:339) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:228) at dori.jasper.engine.JasperExportManager.exportReportToPdfStream(JasperExportManager.java:171) at bankware.frk.report.PDFReportFormatter.generate(PDFReportFormatter.java:96) at bankware.frk.report.PDFReportFormatter.generateReport(PDFReportFormatter.java:53) at bankware.bwpagee.presentation.wb.RelatorioTrilhaAuditoriaWB.getRelatorioTrilha(RelatorioTrilhaAuditoriaWB.java:136) at bankware.bwpagee.presentation.wb.RelatorioTrilhaAuditoriaWB.processRequest(RelatorioTrilhaAuditoriaWB.java:50) at bankware.bwpagee.presentation.wb.BWReportWorkerBean.<init>(BWReportWorkerBean.java:24) at bankware.bwpagee.presentation.wb.RelatorioTrilhaAuditoriaWB.<init>(RelatorioTrilhaAuditoriaWB.java:41) at bankware.bwpagee.presentation.servlet.BWPagEEController.doViewRelatorioTrilha(BWPagEEController.java:2015) at bankware.bwpagee.presentation.servlet.BWPagEEController.doPost(BWPagEEController.java:220) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:479) Sorry for my poor english, JSnake By: Luiz Almeida - jsnake RE: JRException: Helvetica 2003-11-05 16:37 People, I have been discovered. It was the JVM version. I had 1.3 instead 1.4 on my Tomcat. Anyway, thks for all that reading this thread. Hugs, JSnake By: Teodor Danciu - teodord RE: JRException: Helvetica 2003-12-19 14:53 Hi, I think these are related: https://sourceforge.net/forum/forum.php?thread_id=954508&forum_id=113530 Thank you, Teodor
  9. By: Vasanth - vasanth07 Problem in PDF file creation (JDK 1.3) 2003-11-18 22:22 Hi, I'm trying to create PDF files using Jasper Reports 0.5.0. I'm using JDK1.3 for the same. When I create a PDF file, I get the following error. dori.jasper.engine.JRException: Could not load font from location : Times-Roman But if I use JDK1.4, the problem does not occur. Can you please suggest me why this problem occurs in JDK1.3 and how I could resolve it. regards, Vasanth. By: Teodor Danciu - teodord RE: Problem in PDF file creation (JDK 1.3) 2003-12-19 14:51 Hi, I think these are related: https://sourceforge.net/forum/forum.php?thread_id=954508&forum_id=113530 Thank you, Teodor
  10. By: Dave Limer - limerdm Could not load font from location ... iReport 2003-10-16 16:47 Greetings, After MANY hours of troubleshooting I found teh answer to what seems to be a nagging issue, based on some of the posts here. If you use iReport, you will eventually find that it, by default specifies CP1252 encoding (note this is different than Cp1252 <<<<lower case 'p'). This will cause problems on JDK 1.3.x. The iText pkg will throw an UnsupportedEncodingException, which will then be trapped and hidden by jasperreports who will throw his own JRException saying font cannot be found..... For whatever reason, this does not seem to be a problem for JDK 1.4+. Unfortunately I'm not lucky enough to use that in production yet. The fix? Manually edit your xml files created by iReport and change CP1252 to Cp1252. By: brigand silvere - brsilve RE: Could not load font from location ... iReport 2003-10-28 05:58 Congretulation to find this, and thanks a lot : I have searched it since a very long time By: Teodor Danciu - teodord RE: Could not load font from location ... iRe 2003-12-19 14:49 Hi, The JasperReports code was updated to give more details about the cause of the exception and do not hide it anymore. The fix is available in the CVS repository. Thank you, Teodor
  11. By: pickle - pickle81 Maximum number of records in a report 2003-12-17 22:37 I am just wondering what is the maximum number of records in a report. I am wondering if jasper supports about 5,000 to 10,000 records per report. Thanks By: Tuan Le - lesoft RE: Maximum number of records in a report 2003-12-19 12:59 We have generated about 10,000 records with about 35 columns in an Excel format without a problem. We did increase the heap size in Tomcat to prevent Out of memory error. Tuan
  12. By: smehta - smehta Error in run time ( jasper reports) 2003-12-19 06:59 Hi there, I need urgent help !! I have successfully compiled and run jasper reports on one linux machine and it is working fine. I have copied all the files to other linux machine and did everything same like putting jar files in classpath in WEB-INF and even i compiled the reports but when it converts to the pdf it is giving errors. The errors are at bottom. The source code is here File reportFile = new File(application.getRealPath("/reports/QueryReport.jasper")); String ordNumber=request.getParameter("ORDER_NUM"); Map parameters = new HashMap(); parameters.put("ReportTitle", "Order Details Report"); parameters.put("ORDER_NUM", ordNumber); parameters.put("SUBREPORT_PATH", application.getRealPath("/reports/QuerySubReport.jasper")); parameters.put("SUBREPORT_QUOTE_PATH", application.getRealPath("/reports/QuerySubReportQuote.jasper")); parameters.put("SUBREPORT_MOCKUP_PATH", application.getRealPath("/reports/QuerySubReportMockup.jasper")); parameters.put("IMAGE_PATH", application.getRealPath("/images/")); ----------------------- Error is here byte[] bytes = JasperRunManager.runReportToPdf( reportFile.getPath(), parameters, getConnection() ); response.setContentType("application/pdf"); response.setContentLength(bytes.length); ServletOutputStream ouputStream = response.getOutputStream(); JasperReports encountered this error : java.lang.NoClassDefFoundError at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:110) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:219) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:159) at dori.jasper.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:165) at org.apache.jsp.pdf_jsp._jspService(pdf_jsp.java:88) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) By: Chuck Deal - cdeal RE: Error in run time ( jasper reports) 2003-12-19 08:16 That doesn't look like the full stack trace. Was there more to it? By: smehta - smehta RE: Error in run time ( jasper reports) 2003-12-19 08:18 java.lang.NoClassDefFoundError at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:110) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:219) at org.apache.jsp.html_jsp._jspService(html_jsp.java:104) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151) at java.lang.Thread.run(Thread.java:536) By: Teodor Danciu - teodord RE: Error in run time ( jasper reports) 2003-12-19 08:29 Hi, You need X-server or Xvfb or PJA or JDK1.4 with -Djava.awt.headless=true I hope this helps. Teodor By: smehta - smehta RE: Error in run time ( jasper reports) 2003-12-19 10:11 I am sorry - it works fine on Linux but not in Solaris 8. Java version we using on both linux and solris - j2sdk1.4.1_02 Tomcat webserver - jakarta-tomcat-4.1.27 With above solution- what i did is on solaris I wrote 1. export CATALINA_OPTS="-Djava.awt.headless=true" 2. ./shutdown.sh 3. ./startup.sh now no error but you have choice of open,save,cancel,more info and if you click open 1. it opens microsoft word pad with %PDF-1.4 %ࡢ㦮bsp; 5 0 obj <</Filter /FlateDecode /Length 126 >> stream x?3R𢲦nbsp; Ე0 .................................. (I DIDNOT POST ALL INFO HERE - PLEASE LET ME KNOW IF YOU NEED MORE OF INFO OF GENREATED PDF IN WORD FORMAT). 2. if you click save - it saves the file with pdf but when you open that saved pdf file you get an error message "There was an error openeing this document. This file cannot be openend because it has no pages". HELP !!!!!!!!!!1 By: smehta - smehta RE: Error in run time ( jasper reports) 2003-12-19 10:29 Well, i was using acrobat version as 5.0 then i got above error ( it saved to word) but for acrobat version 5.1 it works fine. IT GENERATES REPORTS ONLY FOR -NO IMAGE DATA. if i have a image in database and i want that image in reprot in pdf i got these problems -- JasperReports encountered this error : java.io.IOException: java.awt.Image fetch aborted or errored at com.lowagie.text.Image.getInstance(Unknown Source) at com.lowagie.text.Image.getInstance(Unknown Source) at dori.jasper.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:980) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:386) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:339) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:228) at dori.jasper.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:187) at dori.jasper.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:167) at org.apache.jsp.pdf_jsp._jspService(pdf_jsp.java:92) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151) at java.lang.Thread.run(Thread.java:536) NESTED BY : dori.jasper.engine.JRException: Error generating PDF report : QueryReport at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:352) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:228) at dori.jasper.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:187) at dori.jasper.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:167) at org.apache.jsp.pdf_jsp._jspService(pdf_jsp.java:92) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151) at java.lang.Thread.run(Thread.java:536) Caused by: java.io.IOException: java.awt.Image fetch aborted or errored at com.lowagie.text.Image.getInstance(Unknown Source) at com.lowagie.text.Image.getInstance(Unknown Source) at dori.jasper.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:980) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:386) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:339) ... 40 more By: smehta - smehta RE: Error in run time ( jasper reports) 2003-12-19 11:10 I reasearched and found - it is not handling .bmp images but do handle .gif and .jpg. Any help how to handle .bmp images. - the above error appear when the reports has .bmp images instead of .gif images By: Chuck Deal - cdeal RE: Error in run time ( jasper reports) 2003-12-19 11:35 You may have to find some Java package that will let you use .bmp files.
  13. By: Andy Chan - kinseong JasperReport & MySQL 2003-12-18 01:07 Hi, I can put data from MySQL to JasperReport and generate report? Thanks!! By: Andy Deighton - andyxr RE: JasperReport & MySQL 2003-12-18 01:46 You can use any JDBC datasource (or indeed any datasource that complies with the interfaces supplied by JasperReports). The PDF documentation refers to this extensively and it's as simple as passing a Connection object to your report and optionally a query, or query parameters etc. So, the short answer is YES and it's easy! Andy UK By: Andy Chan - kinseong RE: JasperReport & MySQL 2003-12-18 02:33 By the way, got any sample for MySQL and Jasper Report? I looked through the samples provided in the JasperReport 0.4.5 packages but I think don't have sample for MySQL. Thanks. By: Andy Chan - kinseong RE: JasperReport & MySQL 2003-12-18 02:29 Thanks Andy from UK answer my question. As you mentioned in your replied "the PDF documentation", where could I get this? Can send to me or by posting a URL here? I tried to do some report using Servlet & MySQL & Jasper Report. But I don't know where to start. Need guide for this coz I'm new in this. Thanks in advance. By: Teodor Danciu - teodord RE: JasperReport & MySQL 2003-12-18 02:35 Hi, All the freely available documentation is published on the project website: http://jasperreports.sourceforge.net and is also distributed inside the project source package. If you think you need more, here is a more complete guide: http://jasperreports.sourceforge.net/more.docs.html Thank you, Teodor By: Andy Deighton - andyxr RE: JasperReport & MySQL 2003-12-18 02:40 The PDF documentation is something you can purchases via the site. The examples are all based on JDBC, so it doesn't matter whether you're using MySQL, Oracle, Access - they're all treated the same using JDBC, so that's why there are no explicit MySQL examples. Andy UK By: Andy Chan - kinseong RE: JasperReport & MySQL 2003-12-18 19:08 Thanks guys. Will buy the complete guide in PDF format soon. I will explore more on Jasper Report, if I facing any problem, will get help from you guys. Once again. Thanks!
  14. By: Allan Kos - theincongruent ...to proceed with Closed Statement Exception 2003-12-18 14:26 So, what can I do about the Closed Statement exception I keep getting in WAS 5.1 with jasperreports? What does this exception mean? the statements were never closed before being returned to the pool? ----- java.sql.SQLException: Closed Statement at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269) at oracle.jdbc.driver.OracleStatement.ensureOpen(OracleStatement.java:66 48) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar edStatement.java:595) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare dStatement.java:536) at weblogic.jdbc20.pool.PreparedStatement.executeQuery(PreparedStatement .java:35) at weblogic.jdbc20.rmi.internal.PreparedStatementImpl.executeQuery(Prepa redStatementImpl.java:46) at weblogic.jdbc20.rmi.SerialPreparedStatement.executeQuery(SerialPrepar edStatement.java:40) at dori.jasper.engine.util.JRQueryExecuter.executeQuery(JRQueryExecuter. java:375) at dori.jasper.engine.util.JRQueryExecuter.executeQuery(JRQueryExecuter. java:142) at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:423) at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:119) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.jav a:219) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.jav a:159) at com.telus.tpmt.webapp.TpmtReports.ReportGenerator.generate(ReportGene rator.java:135) at com.telus.tpmt.webapp.TpmtReports.GetReportServlet.doPost(GetReportSe rvlet.java:130) at com.telus.tpmt.webapp.TpmtReports.GetReportServlet.doGet(GetReportSer vlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:120) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:915) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:879) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:269) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:365) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129) NESTED BY : dori.jasper.engine.JRException: Error executing report query : SELECT S_TITLE, PROJECT.S_DESCRIPTION, PROJECT.F_DEPT_ID, E3.S_FIRST_NAME S_FIRS T_NAME, E3.S_LAST_NAME S_LAST_NAME, S_TRAFFIC_SCHEDULE, S_TRAFFIC_BUDGET, S_TRA FFIC_RESOURCE, S_PHASE, L_PROJECT_ID, B_RELEASES, MLC_PRIORITY.S_TYPE MLCTYPE, MLC_PRIORITY.L_PRIORITY_ID MLCPRIORITYID FROM PROJECT, DEPT PROJDEPT, MLC_PRIORITY, DIVISION TOPDIV, DEPT D1, DIVISION PA RENTDIV, DEPT D2, DIVISION DIV, DEPT D3, EMPLOYEE E3 WHERE DIV.L_PARENT_DIV_ID = PARENTDIV.L_DIV_ID AND PARENTDIV.L_PARENT_DIV_ID = TOPDIV.L_DIV_ID AND DIV.L_DEPT_ID = D3.L_DEPT_ID AND E3.L_EMPLOYEE_ID (+)= D3.L_MANAGER_EMPLOYEE_ID AND PARENTDIV.L_DEPT_ID = D2.L_DEPT_ID AND TOPDIV.L_DEPT_ID = D1.L_DEPT_ID AND PROJDEPT.L_DEPT_ID = PROJECT.L_DEPT_ID AND PROJDEPT.L_DIVISION_ID (+)= DIV.L_DIV_ID AND DIV.B_ACTIVE = -1 AND L_FISCAL_YEAR = 2003 AND L_PROJECT_STATUS_ID = 2 AND S_BUDGET_TYPE <> 'EXPENSE' AND S_PHASE <> 'Rollout' AND B_TRACKING_ONLY = 0 AND L_MLC_PRIORITY_NEW = MLC_PRIORITY.L_MLC_PRIORITY_ID ORDER BY E3.S_FIRST_NAME, E3.S_LAST_NAME at dori.jasper.engine.util.JRQueryExecuter.executeQuery(JRQueryExecuter. java:379) at dori.jasper.engine.util.JRQueryExecuter.executeQuery(JRQueryExecuter. java:142) at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:423) at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:119) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.jav a:219) at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.jav a:159) at com.telus.tpmt.webapp.TpmtReports.ReportGenerator.generate(ReportGene rator.java:135) at com.telus.tpmt.webapp.TpmtReports.GetReportServlet.doPost(GetReportSe rvlet.java:130) at com.telus.tpmt.webapp.TpmtReports.GetReportServlet.doGet(GetReportSer vlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:120) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:915) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:879) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:269) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:365) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129) closed conn Thu Dec 18 16:43:57 EST 2003:<E> <WebAppServletContext-tpmt> Servlet failed with Exception java.lang.NullPointerException at com.telus.tpmt.webapp.TpmtReports.GetReportServlet.doPost(GetReportSe rvlet.java:149) at com.telus.tpmt.webapp.TpmtReports.GetReportServlet.doGet(GetReportSer vlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:120) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:915) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon textImpl.java:879) at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet ContextManager.java:269) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav a:365) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129) By: Teodor Danciu - teodord RE: ...to proceed with Closed Statement Excep 2003-12-18 14:31 Hi, The SQL query execution code has been revised in JasperReports. The new version is available on CVS and I suggest you try it to see if your problem persist. Thank you, Teodor
  15. By: pandu - pandu16 java.lang.OutOfMemoryError 2003-12-17 09:15 I have a report(CRP) with subreport(crp-subreport). THe main report contains static as well as some dynamic data and is page full. The main report calls the subreport. File: D:iReport-0.1.0integrationTestCRPCRP11.xml Compiling to file... D:iReport-0.1.0integrationTestCRPjasperCRP11.jasper Compilation running time : 2469 Opening connection.... java.lang.OutOfMemoryError <<no stack trace available>> Abnormal termination! If i remove some portion of the main report then it works fine. Did any one come across such problem if so please let me know . Thanks Pandu By: Teodor Danciu - teodord RE: java.lang.OutOfMemoryError 2003-12-17 09:37 Hi, It might be that the engine enters an infinite loop trying to create new pages, due to some layout problem. This usually happens when placing subreports with large bands of their own inside master reports at a location lower on the page. The engine will try in vain to start new pages hoping that the subreport will fit on the next. Such situations are not detactable beforehand. If that's the case, reconsider your template design. I hope this helps. Teodor By: pandu - pandu16 RE: java.lang.OutOfMemoryError 2003-12-18 14:30 Teodor, Thanks for your quick response. In the Report there was one large bands which was the trouble tricker. I have redesigned the report and now it works fine. Thank you Pandu
  16. By: Vladimir Aguirre Piedragil - vlad_pax Problem whit JasperReports in PDF 2003-12-18 10:02 i?m trying to generate a report to PDF on IE, but as result i obtain a jsp file with Chinese characters, seemed a: %PDF-1.4 %珮粤 5 0 obj <</Filter /FlateDecode /Length 2004 >> stream x愀Xル張8}雎'G斉嗤、凸。ツロリホ児夊ィ棲2・ nタルヒWヘソ・・ヤSタ-`Cレニ]蛹HクHW:E A・F・^@ミz7涇;・シ=樟錞昞(Z・ルe・}ナ_・イL<昕条y;r-モs睡]・ロ5I+g ヲ・ルqーj h%・[2jdラ嬢({b・$7孳粕40・ェ椈鴉ィ65・l・ァE!kD弘 「w・FォSbyカmRャH$福DEp儘 m9zMォTス・yオ蹣・劵]Ⅸイコ(S・ェK-EYs瘁v・2瀝 [ヲ・ル市・Nw・晉0ホ勃・ヨレ鴬゙トG_R・ラs!ミ・%ン泅)嫋ヌt書bu刷ヌ・x・hNBマ晙閔N・朱・オクG喆「・ッb・マV吃守34・例zセ靴Вエ^・4_ョ#4 列:榻Eh ・>キm d9Fーe)舂イ・!″昕~Ⅶx6iメヌ・ッ螫'_湯カッ肚霾ラ、、・ィvトヒBメ・uナヒB"仄@ミu琮ψ"・}・V]`ルカIャ膊ーョ列稱ホヨムェ・ソ [.・gムaLM・濕┃エ・t椡ミy醵i アキ楼・Bア マツ#P樰!xムjM・・怡u4pU・・ <・ i don't know whta happening, my code is: byte[] bytes = JasperRunManager.runReportToPdf( reportFile.getPath(), parameters, conn ); response.setContentType("application/pdf"); conn.close(); //DESPLIEGUE DE LA INFORMACION response.setContentLength(bytes.length); ServletOutputStream ouputStream = response.getOutputStream(); ouputStream.write(bytes, 0, bytes.length); ouputStream.flush(); ouputStream.close(); } what i need? Thank u. By: Vladimir Aguirre Piedragil - vlad_pax RE: Problem whit JasperReports in PDF 2003-12-18 11:40 My problem was acrobat reader was not installed correctly and versió®£onflict whit acrobat reader. Thank u
  17. By: Bruno Cardoso - morcegopt JasperReports in PDF 2003-12-18 02:49 I'm trying to generate a report in PDF on IE browser but for some reason the output is completly blank. However, when I try to do it in Mozilla it works perfectly! Anyone had this problem or knows a solution for it? Thanks PS: If you are wondering, I set the context to "application/pdf" By: Gregory A. Swarthout - gswarthout RE: JasperReports in PDF 2003-12-18 09:40 response.setContentType("application/pdf"); response.setHeader("Cache-Control", ""); response.setHeader("Pragma", ""); response.setHeader("Content-disposition", "inline; filename=report.pdf"); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); By: Vladimir Aguirre Piedragil - vlad_pax RE: JasperReports in PDF 2003-12-18 10:37 what make the following lines exactly? response.setHeader("Cache-Control", ""); response.setHeader("Pragma", ""); response.setHeader("Content-disposition", "inline; filename=report.pdf"); By: Gregory A. Swarthout - gswarthout RE: JasperReports in PDF 2003-12-18 10:48 The first two lines workaround a specific problem ie has with PDFs which I can't recall at the moment. The third line is a convenience.
  18. By: Joanne Corless - jocorless Decision making within reports - How? 2003-12-16 09:05 I have a report that queries the database using the usual "select *" expression and I want to be able to decide at runtime which field should be display in my report based on another fields value. Basically it is a simple IF statement If field1 = "THISVALUE" display field2 else if field1 = "THATVALUE" display field3 How can I achieve this functionality in the report's XML Jo Corless By: Joanne Corless - jocorless RE: Decision making within reports - How? 2003-12-17 08:52 Duh!!! Fixed it I just needed to use a textfield expression and a printWhenExpression By: Ethan Kayes - ebkayes RE: Decision making within reports - How? 2003-12-17 09:01 Would you mind sending a sample of the code you used to solve this problem. We have a similar requirement. By: Joanne Corless - jocorless RE: Decision making within reports - How? 2003-12-18 08:19 Here you go <textField pattern=""> <reportElement mode="Opaque" x="608" y="3" width="69" height="17" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[new Boolean($F{FIELDDATATYPE}.equals("STRING")||$F{FIELDDATATYPE}.equals("LOOKUP"))]]></printWhenExpression> </reportElement> <textElement> <font fontName="Times-Roman" size="12" pdfFontName="Times-Roman" pdfEncoding="CP1252"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{OLDSTRINGVALUE}]]></textFieldExpression> </textField>
  19. By: rakhesh - rakheshg Problem with groupHeader 2003-12-18 05:07 Hi, I've a main report with 2 subreports. Each subreport is having its own group headers. My problem is that when I'm displaying the report, the groupHEader of second subreport is displaying twice one after the other. And this happens only in the first page of second subreport. Hope someone would've faced the problem already and solved it !!!! Waiting for your response. thanks & regards Rakhesh
  20. By: k.Dammeier - rubia jasperreports in applet? 2003-12-18 01:41 hi, i have a standalone-application, which generates the reports. The reports are generated within a jar-File. All goes right. Now I have an applet, with the same .jar. But now the applet ( or better: the class in the .jar-File) can't load my xml-.Design. I generate the xml-Document 'on the fly', which strucure is right and without saving it to the filesystem I pass it to the JasperManager as an inputStream. In my application this goes right (the JasperManager can load the file correctly), but in the applet not. I suppose that the jasperreport can't find the dtd-File or something like that. I tried it with setting the classpath on the jasperreports-library on the filesystem ( my applet is signed), but it not works. Does anybody have experience with applets or knows a solution? rubia
  21. By: zhang wan - iamlittlebean How to use Jasperreport under Slackware Linux 2003-12-18 01:14 I set the CLasspath, path,java_home, catalina_home.. Then I try to run the sample program html.jsp. I got the following error: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. So I think I need to install Xvfd but failed to run Xvfd, the obtained errors: root@msgdev:/usr/X11R6/bin# _XSERVTransSocketOpenCOTSServer: Unable to open socket for net6 _XSERVTransOpen: transport open failed for inet6/msgdev:1 _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 _XSERVTransSocketCreateListener: failed to bind listener _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: failed to create listener for inet Is there anyone who knows what is wrong?
  22. By: daniel schulken - danielschulken Printing question 2003-12-17 12:05 I am looking for a way to print to specific printer for a single print job with out the user having to deal with a dialog for which printer they want the job to go to. does jasper reports support this now or would i need to modify the code to do this? thanks, daniel schulken
  23. By: rakhesh - rakheshg How to start subreport in a new page??????? 2003-12-17 02:31 I've a report with 2 subreports. Both the subreports have groupheaders for which, the first subreport was coming properly. But at the place where the second subreport starts, the header is displaying twice (Except the first page of 2nd subreport, it is working fine). I've tried out setting isReprintHeaderOnEachPage = "true" and isStartNewPage = "true". But no difference. I appreciate if anyone could solve this problem !!!! Thanx in advance !!!! Rakhesh
  24. By: Zachary Roetemeyer - madzax Subreports and page wrapping 2003-08-27 11:39 Hi all I'm new here so if this is a dup posting please forgive me. I am creating a report with a subreport that I want the subform to appear on a single page, that is to say if the subreport won't fit on a page i want to force it to start on the next page. Is there an easy way to do this that I am missing or does it require some trickery? I thank all of you in advance for any help you can give me. Madzax By: Ethan Kayes - ebkayes RE: Subreports and page wrapping 2003-12-16 16:10 Did you find a solution to this problem? We are experiencing the same issue. By: Teodor Danciu - teodord RE: Subreports and page wrapping 2003-12-16 23:38 Hi, Use isSplitAllowed="false" for the band containing the subreport element. I hope this helps. Teodor
  25. By: Mauricio Hernandez - micho2001 Relative text spacing! 2003-12-16 14:11 Hi! I've used Jasper to generate PDF reports and hasnt failed me in any way. Now I wanna use it to generate a contract (out of a long template) One question: I have a really long text and I would like to know which is the best way to handle this in Jasper (i.e: one long textbox or various textboxes with overflow) the problem with the latter is that because I can have overflow then the text box under gets written over (in PDF export). Any ideas or suggestions? Thanks in advance By: Teodor Danciu - teodord RE: Relative text spacing! 2003-12-16 15:03 Hi, Use positionType="Float" for the elements below your stretching text fields. I hope this helps. Teodor By: Mauricio Hernandez - micho2001 RE: Relative text spacing! 2003-12-16 15:21 thanks !! but i have text fields with the positionType="Float" below my stretching field and they still get overlapped... I solved it using a huge string, formatted in a single line... not the most elegant, granted.. but did the trick... BTW: jasper is great.
×
×
  • Create New...