IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Jasper Discussion :

Got ClassNotFoundException com.jaspersoft.jasperserver.api.metadata.user.domain.User


Sujet :

Jasper

  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    104
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2007
    Messages : 104
    Par défaut Got ClassNotFoundException com.jaspersoft.jasperserver.api.metadata.user.domain.User
    Hello,

    Opening a report made with adhoc report (jasperreport) inside ireport, I've got the error "java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.api.metadata.user.domain.User". Does it speak to you ?

    Regards,
    Blured.

  2. #2
    Membre Expert Avatar de Fench
    Homme Profil pro
    Chercheur en informatique
    Inscrit en
    Mai 2002
    Messages
    2 353
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Groenland

    Informations professionnelles :
    Activité : Chercheur en informatique
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2002
    Messages : 2 353
    Par défaut
    Hi,

    The message said:
    For package "com.jaspersoft.jasperserver.api.metadata.user.domain" User class is missed.

    Can you post your JRXML file ?

    I think, it's closed to include tag problem


  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    104
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2007
    Messages : 104
    Par défaut
    Oups, désolé d'avoir posté en anglais. Voici le fichier JRXML généré correspondant.

    ---
    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="test" pageWidth="612" pageHeight="792" columnWidth="552" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20">
    <property name="com.jaspersoft.ji.adhoc" value="1"/>
    <property name="net.sf.jasperreports.export.pdf.tagged" value="true"/>
    <property name="net.sf.jasperreports.export.pdf.tag.language" value="EN-US"/>
    <style name="ReportDefault" isDefault="true" forecolor="#000000" backcolor="#FFFFFF" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="10" pdfFontName="Helvetica">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="PageHeaderFooter" isDefault="false" style="ReportDefault" forecolor="#000000" vAlign="Top" fontName="Arial" fontSize="9">
    <pen lineWidth="1.0" lineStyle="Solid"/>
    </style>
    <style name="Group1HeaderFooter" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" fontName="Arial" fontSize="12" isBold="true" pdfFontName="Helvetica-Bold"/>
    <style name="Group1Header" isDefault="false" style="Group1HeaderFooter"/>
    <style name="Group1Footer" isDefault="false" style="Group1HeaderFooter"/>
    <style name="Group2HeaderFooter" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#D0D0D0" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
    <style name="Group2Header" isDefault="false" style="Group2HeaderFooter"/>
    <style name="Group2Footer" isDefault="false" style="Group2HeaderFooter"/>
    <style name="Group3HeaderFooter" isDefault="false" style="ReportDefault" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
    <style name="Group3Header" isDefault="false" style="Group3HeaderFooter"/>
    <style name="Group3Footer" isDefault="false" style="Group3HeaderFooter"/>
    <style name="ColumnHeaderFooter" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <pen lineWidth="0.5" lineStyle="Solid"/>
    <box>
    <pen lineColor="#000000"/>
    <topPen lineWidth="0.5" lineStyle="Solid"/>
    <bottomPen lineWidth="0.5" lineStyle="Solid"/>
    </box>
    </style>
    <style name="TableSummaries" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <pen lineWidth="0.5" lineStyle="Solid"/>
    <box>
    <pen lineColor="#000000"/>
    <topPen lineWidth="0.5" lineStyle="Solid"/>
    <bottomPen lineWidth="0.5" lineStyle="Solid"/>
    </box>
    </style>
    <style name="Title" isDefault="false" style="ReportDefault" mode="Opaque" backcolor="#FFFFFF" hAlign="Center" fontName="Arial" fontSize="18" isBold="true" pdfFontName="Helvetica-Bold">
    <pen lineWidth="0.5" lineStyle="Solid"/>
    <box>
    <pen lineColor="#000000"/>
    <topPen lineWidth="0.5" lineStyle="Solid"/>
    </box>
    </style>
    <style name="Details" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF">
    <conditionalStyle>
    <conditionExpression><![CDATA[new Boolean($V{InnerRowCount}.intValue() % 2 == 0)]]></conditionExpression>
    <style isDefault="false" style="Details" mode="Opaque" forecolor="#000000" backcolor="#EFEFEF"/>
    </conditionalStyle>
    </style>
    <style name="CrosstabDefaults" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" vAlign="Middle" fontName="Arial" fontSize="11" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabTitleStyle" isDefault="false" style="ReportDefault" mode="Transparent" forecolor="#000000" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="13" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabColumn1" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabColumn2" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#EFEFEF" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabColumn3" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#F5F2F2" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabRow1" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabRow2" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#D0D0D0" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabRow3" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#F5F2F2" hAlign="Left" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabGrandTotal" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#C0C0C0" hAlign="Center" vAlign="Middle" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabColumnWidth" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" vAlign="Middle" fontName="Arial" fontSize="11" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabRowWidth" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" vAlign="Middle" fontName="Arial" fontSize="11" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="CrosstabMeasureCell" isDefault="false" style="ReportDefault" mode="Opaque" forecolor="#000000" backcolor="#FFFFFF" vAlign="Middle" fontName="Arial" fontSize="10" pdfFontName="Helvetica-Bold">
    <box>
    <pen lineColor="#000000"/>
    </box>
    </style>
    <style name="ChartReportTitle" isDefault="false" style="ReportDefault" mode="Opaque" backcolor="#FFFFFF" hAlign="Center" fontName="Arial" fontSize="18" isBold="true" pdfFontName="Helvetica-Bold">
    <pen lineWidth="0.5" lineStyle="Solid"/>
    <box>
    <pen lineColor="#000000"/>
    <topPen lineWidth="0.5" lineStyle="Solid"/>
    <bottomPen lineWidth="0.5" lineStyle="Solid"/>
    </box>
    </style>
    <style name="ChartTitle" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="12" isBold="true" pdfFontName="Helvetica-Bold"/>
    <style name="ChartSubtitle" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
    <style name="ChartLegend" isDefault="false" forecolor="#000000" backcolor="#FFFFFF" fontName="Verdana" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
    <style name="ChartSeriesColor0" isDefault="false" backcolor="#3333FF"/>
    <style name="ChartSeriesColor1" isDefault="false" backcolor="#FF3333"/>
    <style name="ChartSeriesColor2" isDefault="false" backcolor="#C2C2C2"/>
    <style name="ChartSeriesColor3" isDefault="false" backcolor="#FFF333"/>
    <style name="ChartSeriesColor4" isDefault="false" backcolor="#0BC349"/>
    <style name="ChartSeriesColor5" isDefault="false" backcolor="#9A2CAB"/>
    <style name="ChartSeriesColor6" isDefault="false" backcolor="#919191"/>
    <style name="ChartSeriesColor7" isDefault="false" backcolor="#FF9C00"/>
    <style name="ChartSeriesColor8" isDefault="false" backcolor="#00BFF3"/>
    <style name="ChartSeriesColor9" isDefault="false" backcolor="#007205"/>
    <style name="ChartSeriesColor10" isDefault="false" backcolor="#EC00B2"/>
    <style name="ChartSeriesColor11" isDefault="false" backcolor="#4F0E73"/>
    <style name="ChartSeriesColor12" isDefault="false" backcolor="#F25618"/>
    <style name="ChartSeriesColor13" isDefault="false" backcolor="#2EE5E5"/>
    <style name="ChartSeriesColor14" isDefault="false" backcolor="#35379C"/>
    <style name="ChartSeriesColor15" isDefault="false" backcolor="#E8FF68"/>
    <style name="ChartCategoryAxisLabelFormat" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
    <style name="ChartCategoryAxisTickFormat" isDefault="false" forecolor="#000000" fontName="Verdana" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
    <style name="ChartValueAxisLabelFormat" isDefault="false" forecolor="#000000" fontName="Arial" fontSize="11" isBold="true" pdfFontName="Helvetica-Bold"/>
    <style name="ChartValueAxisTickFormat" isDefault="false" forecolor="#000000" fontName="Verdana" fontSize="9" isBold="false" pdfFontName="Helvetica"/>
    <parameter name="LoggedInUser" class="com.jaspersoft.jasperserver.api.metadata.user.domain.User" isForPrompting="false"/>
    <queryString language="sl">
    <![CDATA[<query xmlns="http://www.jaspersoft.com/2007/SL/XMLSchema">
    <queryFields>
    <queryField id="historique.actions.DATE_OPERATION" />
    <queryField id="historique.actions.DN_ACTEUR" />
    <queryField id="historique.actions.NOM_OPERATION" />
    <queryField id="historique.actions.UNITE_ORGANISATIONNELLE" />
    <queryField id="historique.DOCUMENT.ID_DOCUMENT" />
    <queryField id="historique.DOCUMENT.SUJET_DOCUMENT" />
    <queryField id="historique.ETATS.NOM_ETAT" />
    <queryField id="historique.TYPE_PROCESSUS.DATE_VERSION_PROCESSUS" />
    <queryField id="historique.TYPE_PROCESSUS.ID_TYPE_PROCESSUS" />
    <queryField id="historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS" />
    <queryField id="historique.TYPE_PROCESSUS.TYPE_DOCUMENTS" />
    <queryField id="historique.document_type_names.ID_TYPE_DOCUMENT" />
    <queryField id="historique.document_type_names.LANGUE_TYPE_DOCUMENT" />
    <queryField id="historique.document_type_names.NOM_TYPE_DOCUMENT" />
    </queryFields>
    <queryFilterString>historique.DOCUMENT.ID_DOCUMENT &lt;= 100</queryFilterString>
    </query>]]>
    </queryString>
    <field name="historique.actions.DATE_OPERATION" class="java.lang.Long">
    <property name="slIsTableAsList" value="false"/>
    <property name="adhoc.tree.uri" value="/historique/actions/DATE_OPERATION"/>
    <property name="semantic.item.desc" value="OPERATION_DATE"/>
    <property name="adhoc.display" value="Date operation"/>
    <property name="adhoc.tree.labels" value="[{&quot;label&quot;:&quot;historique&quot;,&quot;uri&quot;:&quot;/historique&quot;,&quot;labelId&quot;:&quot;&quot;,&quot;resourceId&quot;:&quot;JoinTree_1&quot;},{&quot;label&quot;:&quot;actions&quot;,&quot;uri&quot;:&quot;/historique/actions&quot;,&quot;labelId&quot;:&quot;&quot;,&quot;resourceId&quot;:&quot;JoinTree_1&quot;},{&quot;label&quot;:&quot;Document&quot;,&quot;uri&quot;:&quot;/historique/DOCUMENT&quot;,&quot;labelId&quot;:&quot;&quot;,&quot;resourceId&quot;:&quot;JoinTree_1&quot;},{&quot;label&quot;:&quot;Etats&quot;,&quot;uri&quot;:&quot;/historique/ETATS&quot;,&quot;labelId&quot;:&quot;&quot;,&quot;resourceId&quot;:&quot;JoinTree_1&quot;},{&quot;label&quot;:&quot;Type de processus&quot;,&quot;uri&quot;:&quot;/historique/TYPE_PROCESSUS&quot;,&quot;labelId&quot;:&quot;&quot;,&quot;resourceId&quot;:&quot;JoinTree_1&quot;},{&quot;label&quot;:&quot;Types de documents&quot;,&quot;uri&quot;:&quot;/historique/document_type_names&quot;,&quot;labelId&quot;:&quot;&quot;,&quot;resourceId&quot;:&quot;JoinTree_1&quot;}]"/>
    <property name="semantic.tree.uri" value="/historique/actions/DATE_OPERATION"/>
    <property name="semantic.tree.sort.order" value="{&quot;document_type_names&quot;:17,&quot;TYPE_PROCESSUS&quot;:12,&quot;NOM_TYPE_DOCUMENT&quot;:20,&quot;TYPE_DOCUMENTS&quot;:16,&quot;NOM_TYPE_PROCESSUS&quot;:15,&quot;ETATS&quot;:10,&quot;DOCUMENT&quot;:7,&quot;ID_TYPE_PROCESSUS&quot;:14,&quot;historique&quot;:1,&quot;NOM_OPERATION&quot;:5,&quot;actions&quot;:2,&quot;DATE_VERSION_PROCESSUS&quot;:13,&quot;ID_TYPE_DOCUMENT&quot;:18,&quot;SUJET_DOCUMENT&quot;:9,&quot;DATE_OPERATION&quot;:3,&quot;UNITE_ORGANISATIONNELLE&quot;:6,&quot;LANGUE_TYPE_DOCUMENT&quot;:19,&quot;ID_DOCUMENT&quot;:8,&quot;DN_ACTEUR&quot;:4,&quot;NOM_ETAT&quot;:11}"/>
    <property name="resourceId" value="JoinTree_1.history.OPERATION_DATE"/>
    </field>
    <field name="historique.actions.DN_ACTEUR" class="java.lang.String">
    <property name="semantic.item.desc" value="DN_ACTOR"/>
    <property name="adhoc.display" value="DN Acteur"/>
    <property name="semantic.tree.uri" value="/historique/actions/DN_ACTEUR"/>
    <property name="adhoc.tree.uri" value="/historique/actions/DN_ACTEUR"/>
    <property name="resourceId" value="JoinTree_1.actors.DN_ACTOR"/>
    <property name="semantic.tree.sort.order" value="1"/>
    </field>
    <field name="historique.actions.NOM_OPERATION" class="java.lang.String">
    <property name="semantic.item.desc" value="EXTERNAL_NAME"/>
    <property name="adhoc.display" value="Nom operation"/>
    <property name="semantic.tree.uri" value="/historique/actions/NOM_OPERATION"/>
    <property name="adhoc.tree.uri" value="/historique/actions/NOM_OPERATION"/>
    <property name="resourceId" value="JoinTree_1.operation_names.EXTERNAL_NAME"/>
    <property name="semantic.tree.sort.order" value="2"/>
    </field>
    <field name="historique.actions.UNITE_ORGANISATIONNELLE" class="java.lang.String">
    <property name="semantic.item.desc" value="UNIT_DISPLAY_NAME"/>
    <property name="adhoc.display" value="Unite organisationnelle"/>
    <property name="semantic.tree.uri" value="/historique/actions/UNITE_ORGANISATIONNELLE"/>
    <property name="adhoc.tree.uri" value="/historique/actions/UNITE_ORGANISATIONNELLE"/>
    <property name="resourceId" value="JoinTree_1.history.UNIT_DISPLAY_NAME"/>
    <property name="semantic.tree.sort.order" value="3"/>
    </field>
    <field name="historique.DOCUMENT.ID_DOCUMENT" class="java.lang.Long">
    <property name="semantic.item.desc" value="ID"/>
    <property name="adhoc.display" value="Id document"/>
    <property name="semantic.tree.uri" value="/historique/DOCUMENT/ID_DOCUMENT"/>
    <property name="adhoc.tree.uri" value="/historique/DOCUMENT/ID_DOCUMENT"/>
    <property name="resourceId" value="JoinTree_1.workflow.ID"/>
    <property name="semantic.tree.sort.order" value="0"/>
    </field>
    <field name="historique.DOCUMENT.SUJET_DOCUMENT" class="java.lang.String">
    <property name="semantic.item.desc" value="DOC_SUBJECT"/>
    <property name="adhoc.display" value="Sujet document"/>
    <property name="semantic.tree.uri" value="/historique/DOCUMENT/SUJET_DOCUMENT"/>
    <property name="adhoc.tree.uri" value="/historique/DOCUMENT/SUJET_DOCUMENT"/>
    <property name="resourceId" value="JoinTree_1.workflow.DOC_SUBJECT"/>
    <property name="semantic.tree.sort.order" value="1"/>
    </field>
    <field name="historique.ETATS.NOM_ETAT" class="java.lang.String">
    <property name="semantic.item.desc" value="EXTERNAL_NAME"/>
    <property name="adhoc.display" value="Nom de l etat"/>
    <property name="semantic.tree.uri" value="/historique/ETATS/NOM_ETAT"/>
    <property name="adhoc.tree.uri" value="/historique/ETATS/NOM_ETAT"/>
    <property name="resourceId" value="JoinTree_1.state_names.EXTERNAL_NAME"/>
    <property name="semantic.tree.sort.order" value="0"/>
    </field>
    <field name="historique.TYPE_PROCESSUS.DATE_VERSION_PROCESSUS" class="java.lang.Long">
    <property name="semantic.item.desc" value="VERSION_DATE"/>
    <property name="adhoc.display" value="Date version du processus"/>
    <property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/DATE_VERSION_PROCESSUS"/>
    <property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/DATE_VERSION_PROCESSUS"/>
    <property name="resourceId" value="JoinTree_1.process_types.VERSION_DATE"/>
    <property name="semantic.tree.sort.order" value="0"/>
    </field>
    <field name="historique.TYPE_PROCESSUS.ID_TYPE_PROCESSUS" class="java.lang.Long">
    <property name="semantic.item.desc" value="PROCESS_TYPE_ID"/>
    <property name="adhoc.display" value="Id type de processus"/>
    <property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/ID_TYPE_PROCESSUS"/>
    <property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/ID_TYPE_PROCESSUS"/>
    <property name="resourceId" value="JoinTree_1.process_type_names.PROCESS_TYPE_ID"/>
    <property name="semantic.tree.sort.order" value="1"/>
    </field>
    <field name="historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS" class="java.lang.String">
    <property name="semantic.item.desc" value="EXTERNAL_NAME"/>
    <property name="adhoc.display" value="Nom type de processus"/>
    <property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/NOM_TYPE_PROCESSUS"/>
    <property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/NOM_TYPE_PROCESSUS"/>
    <property name="resourceId" value="JoinTree_1.process_type_names.EXTERNAL_NAME"/>
    <property name="semantic.tree.sort.order" value="2"/>
    </field>
    <field name="historique.TYPE_PROCESSUS.TYPE_DOCUMENTS" class="java.lang.Short">
    <property name="semantic.item.desc" value="VERSION_NUMBER"/>
    <property name="adhoc.display" value="Numero de version du processus"/>
    <property name="semantic.tree.uri" value="/historique/TYPE_PROCESSUS/TYPE_DOCUMENTS"/>
    <property name="adhoc.tree.uri" value="/historique/TYPE_PROCESSUS/TYPE_DOCUMENTS"/>
    <property name="resourceId" value="JoinTree_1.process_types.VERSION_NUMBER"/>
    <property name="semantic.tree.sort.order" value="3"/>
    </field>
    <field name="historique.document_type_names.ID_TYPE_DOCUMENT" class="java.lang.Long">
    <property name="semantic.item.desc" value="DOCUMENT_TYPE_ID"/>
    <property name="adhoc.display" value="Id type de document"/>
    <property name="semantic.tree.uri" value="/historique/document_type_names/ID_TYPE_DOCUMENT"/>
    <property name="adhoc.tree.uri" value="/historique/document_type_names/ID_TYPE_DOCUMENT"/>
    <property name="resourceId" value="JoinTree_1.document_type_names.DOCUMENT_TYPE_ID"/>
    <property name="semantic.tree.sort.order" value="0"/>
    </field>
    <field name="historique.document_type_names.LANGUE_TYPE_DOCUMENT" class="java.lang.String">
    <property name="semantic.item.desc" value="LANGUAGE"/>
    <property name="adhoc.display" value="Langue type de document"/>
    <property name="semantic.tree.uri" value="/historique/document_type_names/LANGUE_TYPE_DOCUMENT"/>
    <property name="adhoc.tree.uri" value="/historique/document_type_names/LANGUE_TYPE_DOCUMENT"/>
    <property name="resourceId" value="JoinTree_1.document_type_names.LANGUAGE"/>
    <property name="semantic.tree.sort.order" value="1"/>
    </field>
    <field name="historique.document_type_names.NOM_TYPE_DOCUMENT" class="java.lang.String">
    <property name="semantic.item.desc" value="EXTERNAL_NAME"/>
    <property name="adhoc.display" value="Nom type de document"/>
    <property name="semantic.tree.uri" value="/historique/document_type_names/NOM_TYPE_DOCUMENT"/>
    <property name="adhoc.tree.uri" value="/historique/document_type_names/NOM_TYPE_DOCUMENT"/>
    <property name="resourceId" value="JoinTree_1.document_type_names.EXTERNAL_NAME"/>
    <property name="semantic.tree.sort.order" value="2"/>
    </field>
    <variable name="InnerRowCount" class="java.lang.Integer" resetType="None">
    <variableExpression><![CDATA[]]></variableExpression>
    </variable>
    <group name="grp_type_processus" isStartNewPage="true" minHeightToStartNewPage="60">
    <groupExpression><![CDATA[$F{historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS}]]></groupExpression>
    <groupHeader>
    <band height="25">
    <staticText>
    <reportElement x="0" y="0" width="128" height="20"/>
    <textElement/>
    <text><![CDATA[Nom type de processus :]]></text>
    </staticText>
    <textField hyperlinkType="None">
    <reportElement x="128" y="0" width="136" height="20"/>
    <textElement/>
    <textFieldExpression class="java.lang.String"><![CDATA[$F{historique.TYPE_PROCESSUS.NOM_TYPE_PROCESSUS}]]></textFieldExpression>
    </textField>
    </band>
    </groupHeader>
    <groupFooter>
    <band height="25">
    <frame>
    <reportElement style="Group1Footer" x="0" y="0" width="552" height="25">
    <property name="net.sf.jasperreports.export.pdf.tag.tr" value="full"/>
    </reportElement>
    </frame>
    </band>
    </groupFooter>
    </group>
    <group name="grp_version_type_processus" minHeightToStartNewPage="60">
    <groupExpression><![CDATA[$F{historique.TYPE_PROCESSUS.TYPE_DOCUMENTS}]]></groupExpression>
    <groupHeader>
    <band height="25">
    <staticText>
    <reportElement x="0" y="5" width="128" height="20"/>
    <textElement/>
    <text><![CDATA[Version du processus :]]></text>
    </staticText>
    <textField hyperlinkType="None">
    <reportElement x="128" y="5" width="136" height="20"/>
    <textElement/>
    <textFieldExpression class="java.lang.Short"><![CDATA[$F{historique.TYPE_PROCESSUS.TYPE_DOCUMENTS}]]></textFieldExpression>
    </textField>
    </band>
    </groupHeader>
    <groupFooter>
    <band height="25"/>
    </groupFooter>
    </group>
    <group name="grp_nom_type_doc" isStartNewPage="true" minHeightToStartNewPage="60">
    <groupExpression><![CDATA[$F{historique.document_type_names.NOM_TYPE_DOCUMENT}]]></groupExpression>
    <groupHeader>
    <band height="25">
    <staticText>
    <reportElement x="0" y="0" width="128" height="20"/>
    <textElement/>
    <text><![CDATA[Nom type de document :]]></text>
    </staticText>
    <textField hyperlinkType="None">
    <reportElement x="128" y="0" width="136" height="20"/>
    <textElement/>
    <textFieldExpression class="java.lang.String"><![CDATA[$F{historique.document_type_names.NOM_TYPE_DOCUMENT}]]></textFieldExpression>
    </textField>
    </band>
    </groupHeader>
    <groupFooter>
    <band height="46"/>
    </groupFooter>
    </group>
    <group name="grp_etat_doc" minHeightToStartNewPage="60">
    <groupExpression><![CDATA[$F{historique.ETATS.NOM_ETAT}]]></groupExpression>
    <groupHeader>
    <band height="25">
    <staticText>
    <reportElement x="0" y="0" width="128" height="20"/>
    <textElement/>
    <text><![CDATA[Etat du processus : ]]></text>
    </staticText>
    <textField hyperlinkType="None">
    <reportElement x="128" y="0" width="136" height="20"/>
    <textElement/>
    <textFieldExpression class="java.lang.String"><![CDATA[$F{historique.ETATS.NOM_ETAT}]]></textFieldExpression>
    </textField>
    </band>
    </groupHeader>
    <groupFooter>
    <band height="25"/>
    </groupFooter>
    </group>
    <group name="pouet">
    <groupExpression><![CDATA[( ($F{historique.document_type_names.NOM_TYPE_DOCUMENT} != null && ($F{historique.document_type_names.NOM_TYPE_DOCUMENT}.length() > 0 ) ?
    $F{historique.document_type_names.NOM_TYPE_DOCUMENT}.substring(0,1) : ""))]]></groupExpression>
    <groupHeader>
    <band height="48">
    <textField>
    <reportElement x="20" y="13" width="192" height="20"/>
    <textElement/>
    <textFieldExpression class="java.lang.String"><![CDATA[( ($F{historique.document_type_names.NOM_TYPE_DOCUMENT} != null && ($F{historique.document_type_names.NOM_TYPE_DOCUMENT}.length() > 0 ) ?
    $F{historique.document_type_names.NOM_TYPE_DOCUMENT}.substring(0,1) : ""))]]></textFieldExpression>
    </textField>
    </band>
    </groupHeader>
    <groupFooter>
    <band height="50"/>
    </groupFooter>
    </group>
    <columnHeader>
    <band height="25">
    <staticText>
    <reportElement x="151" y="0" width="198" height="21"/>
    <textElement/>
    <text><![CDATA[Documents passés dans un état]]></text>
    </staticText>
    </band>
    </columnHeader>
    <detail>
    <band height="22">
    <textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true" hyperlinkType="None">
    <reportElement key="textField" x="0" y="0" width="81" height="20">
    <property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/>
    </reportElement>
    <box>
    <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
    </box>
    <textElement textAlignment="Right"/>
    <textFieldExpression class="java.lang.Long"><![CDATA[$F{historique.DOCUMENT.ID_DOCUMENT}]]></textFieldExpression>
    </textField>
    <textField hyperlinkType="None">
    <reportElement x="128" y="2" width="345" height="20"/>
    <textElement/>
    <textFieldExpression class="java.util.Date"><![CDATA[new Date($F{historique.actions.DATE_OPERATION}.longValue())]]></textFieldExpression>
    </textField>
    </band>
    </detail>
    <columnFooter>
    <band>
    <frame>
    <reportElement x="0" y="0" width="552" height="0">
    <property name="net.sf.jasperreports.export.pdf.tag.table" value="end"/>
    </reportElement>
    </frame>
    </band>
    </columnFooter>
    <summary>
    <band height="25"/>
    </summary>
    </jasperReport>
    ---

  4. #4
    Membre Expert Avatar de Fench
    Homme Profil pro
    Chercheur en informatique
    Inscrit en
    Mai 2002
    Messages
    2 353
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Groenland

    Informations professionnelles :
    Activité : Chercheur en informatique
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2002
    Messages : 2 353
    Par défaut
    Salut,

    Dans ton jrxml, tu as:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <parameter name="LoggedInUser" class="com.jaspersoft.jasperserver.api.metadata.user.domain.User" isForPrompting="false"/>
    Pour la déclaration du paramètre "LoggedInUser", il existe pas le type de class
    "com.......User" qui lui doit exister sous le serveur jasper (déclaration dans la section DataType.

    Dans iReport, tu as dans paramètres tous les types comme java.lang.Integer etc, ... a toi d'ajouter cette classe. Recherche sur le WEB.

    Bon courage

  5. #5
    Membre averti
    Inscrit en
    Mars 2003
    Messages
    19
    Détails du profil
    Informations forums :
    Inscription : Mars 2003
    Messages : 19
    Par défaut
    Bonjour,

    Je n'ai toujours pas réussi à utiliser la variable LoggedInUser dans le query ni même ailleurs ...
    qq'un peut m'aider... cela devient embêtant pour moi ...

Discussions similaires

  1. Réponses: 23
    Dernier message: 11/04/2012, 17h00
  2. Réponses: 6
    Dernier message: 21/11/2009, 13h37
  3. Réponses: 6
    Dernier message: 17/04/2009, 16h53
  4. JasperServer : Création de role et user
    Par sandF dans le forum Jasperserver
    Réponses: 3
    Dernier message: 28/10/2008, 13h36
  5. Réponses: 1
    Dernier message: 04/07/2008, 19h15

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo