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

erika.chinchio

Members
  • Posts

    28
  • 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

Posts posted by erika.chinchio

  1. thks for your replay

     but I try to define namespace and marked "enable namespaces support" in adapter, but in jasperserver I see pdf empty,

    in the previuos version of jasper the same example works well

    thks erika

  2. this is an example,

    with TEST.XML (having namespace) it return empty page in jasperserver 8.1 and 8.2 (in the previus version it works well)

    with TEST2.XML (not having namespace) it returns correctly page with field printed in all versions

    I assumed there was a behavior change with respect to reading namespaced fields

    example: (attached xml to test)

    --------------------------with namespace----------------------------

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport ........>
        <property name="com.jaspersoft.studio.data.defaultdataadapter" value="test"/>
        <parameter name="XML_INPUT_STREAM" class="java.io.InputStream">
            <defaultValueExpression><![CDATA[new java.io.FileInputStream($P{FilePath})]]></defaultValueExpression>
        </parameter>
        <parameter name="FilePath" class="java.lang.String">
            <defaultValueExpression><![CDATA["C:\TEST.XML"]]></defaultValueExpression>
        </parameter>
        <queryString language="xPath">
            <![CDATA[/REPORTDATA/GRID/line]]>
        </queryString>
        <field name="NUMBER" class="java.lang.String">
            <fieldDescription><![CDATA[NUMBER]]></fieldDescription>
        </field>
        <field name="DESC" class="java.lang.String">
            <fieldDescription><![CDATA[DESC]]></fieldDescription>
        </field>
        <field name="DATE" class="java.lang.String">
            <fieldDescription><![CDATA[DATE]]></fieldDescription>
        </field>
        <background>
            <band splitType="Stretch"/>
        </background>
        <detail>
            <band height="37" splitType="Stretch">
                <textField>
                    <reportElement x="40" y="7" width="482" height="30" uuid="f40d2e63-f14a-4f06-b65d-45ed08a0fbc5"/>
                    <textFieldExpression><![CDATA[$F{DESC}]]></textFieldExpression>
                </textField>
            </band>
        </detail>
    </jasperReport>

     

    ------------------without namespace

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport ........>
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="test2"/>
    <parameter name="XML_INPUT_STREAM" class="java.io.InputStream">
    <defaultValueExpression><![CDATA[new java.io.FileInputStream($P{FilePath})]]></defaultValueExpression>
    </parameter>
    <parameter name="FilePath" class="java.lang.String">
    <defaultValueExpression><![CDATA["C:\TEST2.XML"]]></defaultValueExpression>
    </parameter>
    <queryString language="xPath">
    <![CDATA[/REPORTDATA/GRID/line]]>
    </queryString>
    <field name="NUMBER" class="java.lang.String">
    <fieldDescription><![CDATA[NUMBER]]></fieldDescription>
    </field>
    <field name="DESC" class="java.lang.String">
    <fieldDescription><![CDATA[DESC]]></fieldDescription>
    </field>
    <field name="DATE" class="java.lang.String">
    <fieldDescription><![CDATA[DATE]]></fieldDescription>
    </field>
    <background>
    <band splitType="Stretch"/>
    </background>
    <detail>
    <band height="37" splitType="Stretch">
    <textField>
    <reportElement x="40" y="7" width="482" height="30" uuid="f40d2e63-f14a-4f06-b65d-45ed08a0fbc5"/>
    <textFieldExpression><![CDATA[$F{DESC}]]></textFieldExpression>
    </textField>
    </band>
    </detail>
    </jasperReport>

    thks erika

  3. this is an example,

    with TEST.XML (having namespace) it return empty page in jasperserver 8.1 and 8.2 (in the previus version it works well

    with TEST2.XML (not having namespace) it return page with field printed

     

     

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport ........>
        <property name="com.jaspersoft.studio.data.defaultdataadapter" value="test"/>
        <parameter name="XML_INPUT_STREAM" class="java.io.InputStream">
            <defaultValueExpression><![CDATA[new java.io.FileInputStream($P{FilePath})]]></defaultValueExpression>
        </parameter>
        <parameter name="FilePath" class="java.lang.String">
            <defaultValueExpression><![CDATA["C:\TEST.XML"]]></defaultValueExpression>
        </parameter>
        <queryString language="xPath">
            <![CDATA[/REPORTDATA/GRID/line]]>
        </queryString>
        <field name="NUMBER" class="java.lang.String">
            <fieldDescription><![CDATA[NUMBER]]></fieldDescription>
        </field>
        <field name="DESC" class="java.lang.String">
            <fieldDescription><![CDATA[DESC]]></fieldDescription>
        </field>
        <field name="DATE" class="java.lang.String">
            <fieldDescription><![CDATA[DATE]]></fieldDescription>
        </field>
        <background>
            <band splitType="Stretch"/>
        </background>
        <detail>
            <band height="37" splitType="Stretch">
                <textField>
                    <reportElement x="40" y="7" width="482" height="30" uuid="f40d2e63-f14a-4f06-b65d-45ed08a0fbc5"/>
                    <textFieldExpression><![CDATA[$F{DESC}]]></textFieldExpression>
                </textField>
            </band>
        </detail>
    </jasperReport>

  4. hi 

    I try to install last version 8.2.0 jasper server but the installation on window fail, I install java JDK  11  and Installation finished successfully

    I try to install openjdk instead JDK 11  but I have same error 

    It is mandatory install oracle JDK 11  ?

    thanks 

    erika

  5. Hi when I use jav.io.InputStream to pass xml in subreport in 8.1.1 it returns empty pdf,

    I understand the problem is the presence of namespace in xml,

    I query ignoring namespace using version 8.0.2 it works perfectly,  (es 

    <queryString language="XPath">
            <![CDATA[/xml/IHead/data/row]]>
        </queryString>

    (xml is like <xml >         <Head >             <rs:data>.......</rs:data>        </Head ></xml >)

    Now the same value of XPath retuns no value

    how do i refer to node with namespace?

    thks erika

  6.  hi 

    I try to install last version 8.2.0 jasper server but the installation on window fails in the last step and the folder C:Jaspersoftjasperreports-server-cp-8.2.0appsjasperserver in empty

    the error is Error running C:Jaspersoftjasperreports-server-cp-8.2.0/buildomatic/js-ant.bat import-minimal-ce

  7. hi

    when I use java.io.InputStream to pass xml in subreport in 8.1.1 it returns empty pdf,

    ex (    <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/xml/node1/node2/node3/node14/row")]]></dataSourceExpression>)

    when I use version 8.0.2 it works perfectly

    the problem is the same if I use the last version of jasper studio Jaspersoft® Studio 6.20.1 (this behavior is not present in Jaspersoft® Studio 6.18.1 )

    Thanks in advance

    erika

  8. when i run js-upgrade-samedb-ce.bat i have this error_

    BUILD FAILED
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticbinvalidation.xml:508: The following error occurred while executing this line:
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticbinvalidation.xml:377: The following error occurred while executing this line:
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticconf_sourcedbpostgresqldb.xml:54: The following error occurred while executing this line:
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticbinapp-server.xml:42: Unable to create javax script engine for javascript

     

    can someone help me?

  9. hi

    when i run js-upgrade-samedb-ce.bat i have this error_

    BUILD FAILED
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticbinvalidation.xml:508: The following error occurred while executing this line:
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticbinvalidation.xml:377: The following error occurred while executing this line:
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticconf_sourcedbpostgresqldb.xml:54: The following error occurred while executing this line:
    C:Jaspersoftjasperreports-server-cp-8.0.0buildomaticbinapp-server.xml:42: Unable to create javax script engine for javascript

     

    can someone help me?

  10. I have  questions about subreports

    When I publish the report, its subreports are also published.

    Where can I see them in jasper server?  I see only main report (I'm in the community edition for jasper server and jasperstudio)

    Can I publish only subreport? wuthout his mainreport ancd other subreports

    can refer to a subreport on the server with an absolute path c: .... subreport.jasper (in this case may i 

    replace only the subreport)

     

    thanks in advance

    erika

×
×
  • Create New...