Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#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

IF_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

IF_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