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

Jasper Studio 6.8.0: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:


Joe Taras

Recommended Posts

This report works fine with iReport, but because I've changed my JDK on Java Project (I've passed on JDK 8) I must update my report designer, so instead of iReport (doesn't work with java 8) I've installed Jasper Studio 6.8.0

I've have this error:

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_rptDataConfIncExt_1558010065032_938123: 233: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 233, column 101.
calculator_rptDataConfIncExt_1558010065032_938123: 239: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 239, column 96.
calculator_rptDataConfIncExt_1558010065032_938123: 338: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 338, column 104.
calculator_rptDataConfIncExt_1558010065032_938123: 344: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 344, column 99.
calculator_rptDataConfIncExt_1558010065032_938123: 443: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 443, column 101.
calculator_rptDataConfIncExt_1558010065032_938123: 449: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 449, column 96.
6 errors
.
    at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:109)
    at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:203)
    at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:286)
    at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:138)
    at net.sf.jasperreports.eclipse.builder.JasperReportsBuilder.compileJRXML(JasperReportsBuilder.java:212)
    at com.jaspersoft.studio.editor.action.CompileAction.actionCompile(CompileAction.java:154)
    at com.jaspersoft.studio.editor.action.CompileAction$1.run(CompileAction.java:98)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_rptDataConfIncExt_1558010065032_938123: 233: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 233, column 101.
calculator_rptDataConfIncExt_1558010065032_938123: 239: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 239, column 96.
calculator_rptDataConfIncExt_1558010065032_938123: 338: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 338, column 104.
calculator_rptDataConfIncExt_1558010065032_938123: 344: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 344, column 99.
calculator_rptDataConfIncExt_1558010065032_938123: 443: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 443, column 101.
calculator_rptDataConfIncExt_1558010065032_938123: 449: unable to resolve class it.uncertainty.dmn.ParametroAmbiente 
 @ line 449, column 96.
6 errors

    at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:946)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542)
    at net.sf.jasperreports.compilers.JRGroovyCompiler.compileUnits(JRGroovyCompiler.java:102)
    ... 7 more

My report:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.8.0.final utlizzo versione della libreria JasperReports6.8.0-2ed8dfabb690ff337a5797129f2cd92902b0c87b  -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="rptDataConfIncExt" language="groovy" pageWidth="555" pageHeight="802" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="fe99cbb0-ba11-45ec-911d-4de684d1bffb">
    <property name="ireport.zoom" value="2.0"/>
    <property name="ireport.x" value="53"/>
    <property name="ireport.y" value="0"/>
    <import value="it.uncertainty.horwitz.rpt.dmn.HorwitzTestUncRpt"/>
    <style name="table">
        <box>
            <pen lineWidth="1.0" lineColor="#000000"/>
        </box>
    </style>
    <style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 1">
        <box>
            <pen lineWidth="1.0" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 1_TH" mode="Opaque" backcolor="#F0F8FF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 1_CH" mode="Opaque" backcolor="#BFE1FF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 2">
        <box>
            <pen lineWidth="1.0" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 2_TH" mode="Opaque" backcolor="#F0F8FF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 2_CH" mode="Opaque" backcolor="#BFE1FF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
    </style>
    <style name="table 2_TD" mode="Opaque" backcolor="#FFFFFF">
        <box>
            <pen lineWidth="0.5" lineColor="#000000"/>
        </box>
        <conditionalStyle>
            <conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==0)]]></conditionExpression>
            <style backcolor="#EFF7FF"/>
        </conditionalStyle>
    </style>
    <style name="alternateColor" mode="Transparent" backcolor="#FFFFFF" fill="Solid" fontName="MyDejaVuSans" fontSize="7">
        <conditionalStyle>
            <conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
            <style backcolor="#CCCCCC"/>
        </conditionalStyle>
    </style>
    <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
        <defaultValueExpression><![CDATA["jrxmlTemplate\"]]></defaultValueExpression>
    </parameter>
    <parameter name="ParametroAmbiente" class="it.uncertainty.dmn.ParametroAmbiente"/>
    <queryString>
        <![CDATA[]]>
    </queryString>
    <field name="scarto2Horwitz" class="java.math.BigDecimal"/>
    <field name="numLivello" class="java.lang.Integer"/>
    <field name="incEstesa" class="java.math.BigDecimal"/>
    <field name="idResult" class="java.lang.String"/>
    <variable name="Rip" class="java.lang.String">
        <variableExpression><![CDATA["Ripetibilità"]]></variableExpression>
    </variable>
    <variable name="Tar" class="java.lang.String">
        <variableExpression><![CDATA["Taratura"]]></variableExpression>
    </variable>
    <variable name="Mpp" class="java.lang.String">
        <variableExpression><![CDATA["Micropipette"]]></variableExpression>
    </variable>
    <variable name="Vet" class="java.lang.String">
        <variableExpression><![CDATA["Vetreria"]]></variableExpression>
    </variable>
    <variable name="Crm" class="java.lang.String">
        <variableExpression><![CDATA["Materiali di rif. certificati"]]></variableExpression>
    </variable>
    <variable name="Pm" class="java.lang.String">
        <variableExpression><![CDATA["Materiali di rif. puri"]]></variableExpression>
    </variable>
    <variable name="Pes" class="java.lang.String">
        <variableExpression><![CDATA["Pesata"]]></variableExpression>
    </variable>
    <variable name="Oc" class="java.lang.String">
        <variableExpression><![CDATA["Altri contributi cat. B"]]></variableExpression>
    </variable>
    <background>
        <band splitType="Stretch"/>
    </background>
    <columnHeader>
        <band height="20">
            <staticText>
                <reportElement x="2" y="0" width="35" height="20" uuid="1dc3b6d1-49f7-4f98-95c3-e5441065908e"/>
                <textElement textAlignment="Right" verticalAlignment="Middle">
                    <font fontName="MyDejaVuSans"/>
                </textElement>
                <text><![CDATA[Livello]]></text>
            </staticText>
            <staticText>
                <reportElement x="133" y="0" width="150" height="20" uuid="031d837d-c24c-46b9-9eed-cb48ca693b6f"/>
                <textElement textAlignment="Right" verticalAlignment="Middle">
                    <font fontName="MyDejaVuSans"/>
                </textElement>
                <text><![CDATA[σ Horwitz * 2]]></text>
            </staticText>
            <staticText>
                <reportElement x="37" y="0" width="96" height="20" uuid="0648bc28-5164-413d-9447-f018981a4c6f"/>
                <textElement textAlignment="Right" verticalAlignment="Middle">
                    <font fontName="MyDejaVuSans"/>
                </textElement>
                <text><![CDATA[inc. estesa]]></text>
            </staticText>
            <frame>
                <reportElement mode="Transparent" x="0" y="0" width="555" height="20" backcolor="#FFFFFF" uuid="76685ad1-ad56-45b3-b8f5-6a44dc5f07d5"/>
                <box>
                    <pen lineWidth="0.5"/>
                    <topPen lineWidth="0.5"/>
                    <leftPen lineWidth="0.5"/>
                    <bottomPen lineWidth="0.0"/>
                    <rightPen lineWidth="0.5"/>
                </box>
            </frame>
            <staticText>
                <reportElement x="283" y="0" width="96" height="20" uuid="f638e634-260b-4a7d-8dd7-a9762b38757b"/>
                <textElement textAlignment="Right" verticalAlignment="Middle">
                    <font fontName="MyDejaVuSans"/>
                </textElement>
                <text><![CDATA[Conforme]]></text>
            </staticText>
        </band>
    </columnHeader>
    <detail>
        <band height="20">
            <frame>
                <reportElement key="frmDetail" style="alternateColor" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="555" height="20" uuid="416cddfe-d72b-485d-bc3b-68e79f089b0f"/>
                <box>
                    <pen lineWidth="0.5"/>
                    <topPen lineWidth="0.0"/>
                    <leftPen lineWidth="0.5"/>
                    <bottomPen lineWidth="0.0"/>
                    <rightPen lineWidth="0.5"/>
                </box>
                <textField>
                    <reportElement x="2" y="0" width="35" height="20" uuid="94161758-ec3a-47ac-abae-b65d01f59f46"/>
                    <textElement textAlignment="Right" verticalAlignment="Middle">
                        <font fontName="MyDejaVuSans"/>
                    </textElement>
                    <textFieldExpression><![CDATA[$F{numLivello}]]></textFieldExpression>
                </textField>
                <textField>
                    <reportElement x="133" y="0" width="150" height="20" uuid="976a1abd-2c81-472f-a8d5-69a008aaae04"/>
                    <textElement textAlignment="Right" verticalAlignment="Middle">
                        <font fontName="MyDejaVuSans"/>
                    </textElement>
                    <textFieldExpression><![CDATA[($F{scarto2Horwitz} != null)
? it.uncertainty.shared.core.BigMath.round($F{scarto2Horwitz}, $P{ParametroAmbiente}.precisione)
: ""]]></textFieldExpression>
                </textField>
                <textField>
                    <reportElement x="37" y="0" width="96" height="20" uuid="03a77ca2-72a1-499f-b492-13dd118e0af5"/>
                    <textElement textAlignment="Right" verticalAlignment="Middle">
                        <font fontName="MyDejaVuSans"/>
                    </textElement>
                    <textFieldExpression><![CDATA[($F{incEstesa} != null)
? it.uncertainty.shared.core.BigMath.round($F{incEstesa}, $P{ParametroAmbiente}.precisione)
: ""]]></textFieldExpression>
                </textField>
                <textField>
                    <reportElement x="283" y="0" width="96" height="20" uuid="c1427016-a1c5-4609-b84f-f4338a2388f9"/>
                    <textElement textAlignment="Right" verticalAlignment="Middle">
                        <font fontName="MyDejaVuSans"/>
                    </textElement>
                    <textFieldExpression><![CDATA[($F{idResult} != null && $F{idResult} == "OK")
? "OK" : "KO"]]></textFieldExpression>
                </textField>
            </frame>
        </band>
    </detail>
    <columnFooter>
        <band height="1">
            <frame>
                <reportElement mode="Transparent" x="0" y="0" width="555" height="1" backcolor="#FFFFFF" uuid="6cb1313d-2117-4710-8d6e-7b6ae1d22cc7"/>
                <box>
                    <pen lineWidth="0.5"/>
                    <topPen lineWidth="0.0"/>
                    <leftPen lineWidth="0.5"/>
                    <bottomPen lineWidth="0.5"/>
                    <rightPen lineWidth="0.5"/>
                </box>
            </frame>
        </band>
    </columnFooter>
</jasperReport>
 

My .jar imported in project:

 

uncertainty.jar (where are all business classes)

hibernate-core-4.3.8.jar (because I need UserType class, because I've defined in my business class a custom user type named CustomCalendar)

 

I don't know how can I resolve this issue

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...