打印时的错误信息:
java.awt.HeadlessException
at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:465)
at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:221)
at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:131)
at dori.jasper.engine.JasperPrintManager.printPages(JasperPrintManager.java:392)
at dori.jasper.engine.JasperPrintManager.printReport(JasperPrintManager.java:283)
at com.boco.soc.stat.riskreport.RiskPrintServlet$1.run(RiskPrintServlet.java:164)
at java.lang.Thread.run(Thread.java:536)
NESTED BY :
java.awt.HeadlessException
at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:465)
at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:221)
at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:131)
at dori.jasper.engine.JasperPrintManager.printPages(JasperPrintManager.java:392)
at dori.jasper.engine.JasperPrintManager.printReport(JasperPrintManager.java:283)
at com.boco.soc.stat.riskreport.RiskPrintServlet$1.run(RiskPrintServlet.java:164)
at java.lang.Thread.run(Thread.java:536)
NESTED BY :
dori.jasper.engine.JRException: Error printing report.
at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:237)
at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:131)
at dori.jasper.engine.JasperPrintManager.printPages(JasperPrintManager.java:392)
at dori.jasper.engine.JasperPrintManager.printReport(JasperPrintManager.java:283)
at com.boco.soc.stat.riskreport.RiskPrintServlet$1.run(RiskPrintServlet.java:164)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.awt.HeadlessException
at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:465)
at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:221)
... 5 more
4 个解决方案
#1
wo ding
#2
wo zai ding!
#3
up
#4
http://community.csdn.net/Expert/topic/2899/2899534.xml?temp=.1529047
看一下这个
看一下这个
#1
wo ding
#2
wo zai ding!
#3
up
#4
http://community.csdn.net/Expert/topic/2899/2899534.xml?temp=.1529047
看一下这个
看一下这个