File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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(
at java.awt.Window.<init>(
at java.awt.Frame.<init>(
at java.awt.Frame.<init>(
at javax.swing.JFrame.<init>(
at net.sf.jasperreports.view.JasperViewer.<init>(
at net.sf.jasperreports.view.JasperViewer.viewReport(
at net.sf.jasperreports.view.JasperViewer.viewReport(
I agree. Here's the link:
subject: Headless Exception in JasperViewer
It's not a secret anymore!