Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.0
-
None
-
MacOSX, RAW printer
-
Unknown
Description
The JavaDoc for javax.print.DocPrintJob.print(Doc, PrintRequestAttributeSet) reads:
"This method should only be called once for a given print job."
However org.apache.camel.component.printer.PrinterOperations reuses the same DocPrintJob to print over and over again. This results in:
javax.print.PrintException: already printing
at sun.print.UnixPrintJob.print(UnixPrintJob.java:286) ~[na:1.6.0_29]
at org.apache.camel.component.printer.PrinterOperations.print(PrinterOperations.java:107) ~[camel-printer-2.9.0.jar:2.9.0]
at org.apache.camel.component.printer.PrinterOperations.print(PrinterOperations.java:101) ~[camel-printer-2.9.0.jar:2.9.0]
at org.apache.camel.component.printer.PrinterProducer.print(PrinterProducer.java:55) ~[camel-printer-2.9.0.jar:2.9.0]
at org.apache.camel.component.printer.PrinterProducer.process(PrinterProducer.java:49) ~[camel-printer-2.9.0.jar:2.9.0]