wood burning stoves 2.0*
The moose likes Struts and the fly likes Headless Exception in JasperViewer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Headless Exception in JasperViewer" Watch "Headless Exception in JasperViewer" New topic

Headless Exception in JasperViewer

Santoshkumar Jeevan Pawar

Joined: Aug 19, 2006
Posts: 27

When i call JasperViewer.viewReport(jasperPrint) it is throwing following exception.I am calling this method inside execute of action class.

JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters,campaignDataDS);


at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:317)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.JFrame.<init>(JFrame.java:150)
at net.sf.jasperreports.view.JasperViewer.<init>(JasperViewer.java:176)
at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:455)
at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:368)
at com.scloud.shopdbs.store.StoreConfigUIManager.prepareCampaignDataReport(StoreConfigUIManager.java:3864)
subject: Headless Exception in JasperViewer
Similar Threads
Display variable on unix
Getting error when running swing program
when running swing program getting error
error with AFS, pls help!
rgdg awt on Linux {java.lang.InternalError}