• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Headless Exception in JasperViewer

 
Santoshkumar Jeevan Pawar
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic