#1 2018-05-30 09:30:24

scottfryer
Member
Registered: 2018-05-30

Error In ReporServer When Running Jasper Report

Hi,

Hoping somebody can shed some light on an issue we are having. ( I've tried numerous solutions from around the web... including the headless mode .. )

When running a jasper report ( which works fine in istudio ), the following error is encountered.. this is reportserver hosted on centos )

Type Exception Report

Message Filter execution threw an exception

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: Filter execution threw an exception
Root Cause

java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
    net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:110)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:69)
    net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
    net.sf.jasperreports.engine.fill.JRFiller.createBandReportFiller(JRFiller.java:200)
    net.sf.jasperreports.engine.fill.JRFiller.createReportFiller(JRFiller.java:215)
    net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:84)
    net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:456)

Thanks
Scott

Offline

#2 2018-05-30 10:55:04

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Error In ReporServer When Running Jasper Report

Hi Scott,

1. how exactly did you set the headless mode? Have you got some screenshots?
2. which reportserver version exactly are you working with?
3. can you create a new groovy script and post the output:

import java.awt.GraphicsEnvironment

tout.println("Is headless: " + GraphicsEnvironment.isHeadless());

4. what is your java version?

Regards,
Eduardo

Offline

#3 2018-05-30 11:43:46

scottfryer
Member
Registered: 2018-05-30

Re: Error In ReporServer When Running Jasper Report

Hi Eduardo,

1) Set in the tomcat daemon startup script..

/usr/java/jdk1.8.0_131/jre/bin/java
-Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.awt.headless=true.......


2) Version:
RS3.0.3-6002 (2017-12-09-12-26-19)

3) We dont currently have groovy/scripting installed and configured...

4) Java version...

[root@localhost ~]# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Thanks
Scott

Offline

#4 2018-06-01 10:13:15

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Error In ReporServer When Running Jasper Report

Hi Scott,

you can write a simple java program that checks if this is correctly set. And run the simple program.
But it seems correct...

Can you post a minimal, simple report that causes this error ? Please do this with the demo data, so we can easily run the report.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB