You are not logged in.
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:
We will keep you informed in the pinned thread.
Kind regards,
Your ReportServer Team
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:
Wir halten euch im angepinnten Beitrag auf dem Laufenden!
Mit vielen Grüßen
Euer ReportServer Team
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
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
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
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