Bug 793065 (JBEPP-147)

Summary: X11 DISPLAY variable needs to be set error display while generating pdf reports
Product: [JBoss] JBoss Enterprise Portal Platform 4 Reporter: Denzil Tarakan <denzil.tharakan>
Component: PortalAssignee: Default User <jbpapp-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3.0.GACC: epp-bugs, pbaroux
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-147
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Linux box
Last Closed: 2011-11-17 23:17:04 UTC Type: Task
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Denzil Tarakan 2009-10-30 20:21:37 UTC
Complexity: Medium
Date of First Response: 2010-03-31 15:36:03
project_key: JBEPP

Our website is being built on JBoss 4.3 EPP and in our website we have links to view pdf reports. This website was initially on IBM Websphere and we are now porting to Jboss. We use Actuate jars to create pdf reports. When a view report link is clicked, we go to database get the data and provide it to Actuate where actuate paints it on its template and generates a pdf. This use to work fine in IBM websphere but now is not working on JBoss. I have pasted the stack trace below -

java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
		 sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:203)
		 com.actuate.ereport.common.Globals.getDefaultScreenResolution(Globals.java:1231)
		 com.actuate.ereport.output.OD_Preview.<clinit>(Unknown Source)
		 com.actuate.ereport.output.PageInfo.renderAllObjects(Unknown Source)
		 com.actuate.ereport.output.OD_PDF.Generate(Unknown Source)
		 com.actuate.ereport.output.OD_PDF.generate(Unknown Source)

Comment 1 Thomas Heute 2010-03-31 19:36:03 UTC
I guess this was treated in a customer ticket

Comment 3 Jared MORGAN 2011-11-17 23:17:04 UTC
Release Notes Docs Status: Added: Not Required


Comment 4 Oliver Carr 2012-08-31 12:51:27 UTC
This can be fixed by setting -Djava.awt.headless=true when starting EPP.