aspose file tools*
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
Author

Headless Exception in JasperViewer

Santoshkumar Jeevan Pawar
Greenhorn

Joined: Aug 19, 2006
Posts: 27
Hello,

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);

JasperViewer.viewReport(jasperPrint);


java.awt.HeadlessException
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Headless Exception in JasperViewer