Compiling a jasper report including a linear gauge (pro component)

0

Hi,

I want to use the java API to generate PDF reports out of my jrxml files.

For that I managed to successfully compile the report, but when I render the PDF the linear gauge component shows

[Fusion Component Not Supported]

I have all the jasper reports pro jars, and a lot of others that are mentioned to put on the classpath, but still I'm getting this error.

The classpath contains all the jasper pro jars and all other dependencies.

spring-beans-3.2.16.RELEASE.jar
spring-core-3.2.16.RELEASE.jar
spring-expression-3.2.16.RELEASE.jar
castor-core-1.3.3.jar
castor-xml-1.3.3.jar
com.jaspersoft.studio.bundles.bouncycastle_1.4.6.jar
jasperreports-chart-themes-6.3.0.jar
jasperreports-fonts-6.1.1.jar
jasperreports-functions-6.3.0.jar
jasperreports-fusion-6.3.0.jar
jasperreports-highcharts-6.3.0.jar
jasperreports-license-6.1.0.jar
jasperreports-pro-6.0.0.jar
protection-4.6.3.jar

dependencies {
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
compile group: 'commons-collections', name: 'commons-collections', version: '3.2.2'
compile group: 'commons-digester', name: 'commons-digester', version: '2.1'
compile 'net.sf.jasperreports:jasperreports:6.3.1'
compile fileTree(dir: 'lib', include: '**/*.jar')
compile 'org.codehaus.groovy:groovy-all:2.4.1'
compile "org.spockframework:spock-core:1.1-groovy-2.4-rc-2"
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-core:1.3'
compile group: 'joda-time', name: 'joda-time', version: '2.9.4'
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.4'
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'org.mozilla', name: 'rhino', version: '1.7.7.1'
compile group: 'jfree', name: 'jfreechart', version: '1.0.13'
compile group: 'org.olap4j', name: 'olap4j', version: '1.2.0'
compile group: 'bouncycastle', name: 'bcprov-jdk14', version: '1.50'
compile group: 'com.lowagie', name: 'itext', version: '2.1.7'
compile 'ar.com.fdvs:DynamicJasper-core-fonts:1.0'
compile group: 'org.postgresql', name: 'postgresql', version: '9.4.1211'
compile group: 'org.apache.xmlgraphics', name: 'batik-bridge', version: '1.8'
compile group: 'org.apache.xmlgraphics', name: 'xmlgraphics-commons', version: '2.1'
}

I also added the system properties:

System.setProperty("com.jaspersoft.jasperreports.components.customvisualization.phantomjs.executable.path","/programs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs")    
System.setProperty("com.jaspersoft.jasperreports.components.customvisualization.require.js","/home/detlef/develop/Prospective/jasper-reports/lib/jasperreports-highcharts-6.3.0.jar!/com/jaspersoft/jasperreports/highcharts/charts/render/scripts/require/require-2.1.6.src.js")
System.setProperty('com.jaspersoft.jasperreports.fusion.charts.render.type', 'html5')
System.setProperty('com.jaspersoft.jasperreports.fusion.maps.render.type', 'html5')
System.setProperty('com.jaspersoft.jasperreports.fusion.widgets.render.type', 'html5')

But somehow this pro chart cannot be rendered.

Does anybody have a clue what is missing ?

Thanks,

Detlef

detlef.brendle's picture
Joined: Sep 5 2015 - 12:27pm
Last seen: 7 months 2 days ago

0 Answers:

No answers yet
Feedback