Jump to content

bujdei_alexandru

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by bujdei_alexandru

  1. Look, I have a jasper report with json ds.

    {     "customername":"home",   "workSiteRows":[        {           "invoiceRows":[              {                 "candidateName":"name1",               "units":"13:00"            },            {                 "candidateName":"name2",               "units":"18:30"            }         ],         "workSiteName":"wsname1"      },      {           "invoiceRows":[              {                 "candidateName":"name1",               "units":"13:00"            },            {                 "candidateName":"name2",               "units":"18:30"            }         ],         "workSiteName":"wsname2"      }   ]}[/code]

    json has this format:

     
    I am adding a subreport like this:
     
    <subreport isUsingCache="false"><reportElement x="0" y="10" width="555" height="30" uuid="b2d96c34-ad5d-4eb2-b218-43aad4e09282"/><dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).dataSource("workSiteRows")]]></dataSourceExpression><subreportExpression><![CDATA[$P{REPORT_DIR} + "\invoice_ws_row.jasper"]]></subreportExpression></subreport>[/code]
     
    I keep getting the following exception:
    Error filling print... java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonNode java.lang.ClassNotFoundException: org.codehaus.jackson.JsonNode
     
     
    But it does not work.

    The problem is that currently jackson core is under the repo "com.fasterxml.jackson.core"

    while iReport keeps asking for "org.codehaus.jackson.core".

    Tried looking for older versions of jackson core that are under org.codehaus and to add them to the iReport classpath but it still does not work.

    I am using iReport 5.6.0 on Windows.

     

  2. I tried adding the jackson-core-2.6.2.jar but it still does not work.

    The problem is that currently jackson core is under the repo "com.fasterxml.jackson.core"

    while iReport keeps asking for "org.codehaus.jackson.core".

    Tried looking for older versions of jackson core that are under org.codehaus and to add them to the iReport classpath but it still does not work.

    I am using iReport 5.6.0 on Windows.

     

×
×
  • Create New...