camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Gattiker (Created) (JIRA)" <>
Subject [jira] [Created] (CAMEL-5023) Printer endpoint can only print a single job
Date Tue, 21 Feb 2012 12:46:35 GMT
Printer endpoint can only print a single job

                 Key: CAMEL-5023
             Project: Camel
          Issue Type: Bug
          Components: camel-printer
    Affects Versions: 2.9.0
         Environment: MacOSX, RAW printer
            Reporter: Alexandre Gattiker
            Priority: Blocker

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( ~[na:1.6.0_29]
	at org.apache.camel.component.printer.PrinterOperations.print(
	at org.apache.camel.component.printer.PrinterOperations.print(
	at org.apache.camel.component.printer.PrinterProducer.print( ~[camel-printer-2.9.0.jar:2.9.0]
	at org.apache.camel.component.printer.PrinterProducer.process( ~[camel-printer-2.9.0.jar:2.9.0]

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message