1 Reply Latest reply: Apr 9, 2012 6:32 PM by Adam Stone RSS

Got exception as "java.util.concurrent.CancellationException"

Karthikeyan Baskaran
Currently Being Moderated

Hi Buddies,

 

I'm trying to print the crystal report by using latest Crystal Report CRJava-RunTime jars(12.2.213). In that case, I got exception as

 

java.util.concurrent.CancellationException

    at com.businessobjects.crystalreports.printer.bean.Printer.X(Unknown Source)

    at com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source)

    at com.businessobjects.crystalreports.printer.bean.ReportPrinter.print(Unknown Source)

    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.printReport(SourceFile:742)

    at com.csdcsystems.amanda.common.CustomReport_Crystal.print(CustomReport_Crystal.java:602)

    at org.apache.jsp.english.ShowReport_jsp._jspService(ShowReport_jsp.java:353)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at com.csdcsystems.amanda.common.CsdcServletFilter.doFilter(CsdcServletFilter.java:108)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

    at java.lang.Thread.run(Thread.java:595)

Caused by: java.awt.print.PrinterAbortException

    at com.businessobjects.crystalreports.viewer.core.ReportPagePrinter.print(Unknown Source)

    at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1795)

    at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1344)

    at com.businessobjects.crystalreports.viewer.core.ReportPagePrinter.print(Unknown Source)

    ... 27 more

 

But, In Previous version of the Crystal Report CRJava-RunTime jars didn't produced this exception. I'm able to print the Crystal report through my Java code.

 

Did the latest version of crystal report jar didn't support the Printer output type?

OR

Is there any specific settings it there to avoid this exception?

 

FYI: Eclipse 3.5 and  JDK 1.5