You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alexandre Gattiker (Created) (JIRA)" <ji...@apache.org> on 2012/02/21 13:46:35 UTC

[jira] [Created] (CAMEL-5023) Printer endpoint can only print a single job

Printer endpoint can only print a single job
--------------------------------------------

                 Key: CAMEL-5023
                 URL: https://issues.apache.org/jira/browse/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(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]


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5023) Printer endpoint can only print a single job

Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-5023.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.0
                   2.9.1
                   2.8.5

Applied patch into trunk, camel-2.8.x and camel-2.9.x branches.
                
> Printer endpoint can only print a single job
> --------------------------------------------
>
>                 Key: CAMEL-5023
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5023
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-printer
>    Affects Versions: 2.9.0
>         Environment: MacOSX, RAW printer
>            Reporter: Alexandre Gattiker
>            Assignee: Willem Jiang
>            Priority: Blocker
>             Fix For: 2.8.5, 2.9.1, 2.10.0
>
>
> 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]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5023) Printer endpoint can only print a single job

Posted by "Claus Ibsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-5023:
-------------------------------

    Priority: Major  (was: Blocker)
    
> Printer endpoint can only print a single job
> --------------------------------------------
>
>                 Key: CAMEL-5023
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5023
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-printer
>    Affects Versions: 2.9.0
>         Environment: MacOSX, RAW printer
>            Reporter: Alexandre Gattiker
>            Assignee: Willem Jiang
>             Fix For: 2.8.5, 2.9.1, 2.10.0
>
>
> 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]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-5023) Printer endpoint can only print a single job

Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-5023:
-----------------------------------

    Assignee: Willem Jiang
    
> Printer endpoint can only print a single job
> --------------------------------------------
>
>                 Key: CAMEL-5023
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5023
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-printer
>    Affects Versions: 2.9.0
>         Environment: MacOSX, RAW printer
>            Reporter: Alexandre Gattiker
>            Assignee: Willem Jiang
>            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(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]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira