From issues-return-49168-archive-asf-public=cust-asf.ponee.io@camel.apache.org Mon Feb 5 21:33:06 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 521D5180647 for ; Mon, 5 Feb 2018 21:33:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 41CB5160C3B; Mon, 5 Feb 2018 20:33:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 63AD4160C4B for ; Mon, 5 Feb 2018 21:33:05 +0100 (CET) Received: (qmail 12239 invoked by uid 500); 5 Feb 2018 20:33:04 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 12228 invoked by uid 99); 5 Feb 2018 20:33:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2018 20:33:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1F98EC0161 for ; Mon, 5 Feb 2018 20:33:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hK1u-BjMruFy for ; Mon, 5 Feb 2018 20:33:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6D4E75FAC2 for ; Mon, 5 Feb 2018 20:33:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C0A29E0321 for ; Mon, 5 Feb 2018 20:33:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6000721E8C for ; Mon, 5 Feb 2018 20:33:00 +0000 (UTC) Date: Mon, 5 Feb 2018 20:33:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-12228) Print command fails in case of multiple copies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-12228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16352891#comment-16352891 ] ASF GitHub Bot commented on CAMEL-12228: ---------------------------------------- GitHub user dmvolod opened a pull request: https://github.com/apache/camel/pull/2208 CAMEL-12228: Print command fails in case of multiple copies You can merge this pull request into a Git repository by running: $ git pull https://github.com/dmvolod/camel CAMEL-12228 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/2208.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2208 ---- commit 834679911b817fcc7c81e43b521e486a73dee637 Author: Dmitry Volodin Date: 2018-02-05T20:30:44Z CAMEL-12228: Print command fails in case of multiple copies ---- > Print command fails in case of multiple copies > ---------------------------------------------- > > Key: CAMEL-12228 > URL: https://issues.apache.org/jira/browse/CAMEL-12228 > Project: Camel > Issue Type: Bug > Components: camel-printer > Affects Versions: 2.18.1, 2.19.0, 2.20.0 > Reporter: Robin Vanderhallen > Assignee: Dmitry Volodin > Priority: Major > > When the printer component is configured to print multiple copies, two print jobs are created. The first one runs OK, the second one fails. > {code} > lpr://localhost/printer?copies=2&mediaSize=ISO_A4&flavor=DocFlavor.INPUT_STREAM > {code} > {code} > org.apache.camel.component.printer.PrinterOperations DEBUG Issuing Job 0 to Printer: printer > org.apache.camel.component.printer.PrinterOperations DEBUG Issuing Job 1 to Printer: printer > ERROR ID-47935-1516954952584-8-4 > java.io.IOException: error=1 running: '/usr/bin/lpr' '-Pprinter' '-J file.pdf' '-#2' '-o media=A4 sides=one-sided' '/opt/tomcat/temp/javaprint7376295310894617090' > /usr/bin/lpr: No file in print request. > javax.print.PrintException: java.io.IOException: error=1 running: '/usr/bin/lpr' '-PBriefing' '-J file.pdf' '-#2' '-o media=A4 sides=one-sided' '/opt/tomcat/temp/javaprint7376295310894617090' > /usr/bin/lpr: No file in print request. > at sun.print.UnixPrintJob$PrinterSpooler.run(UnixPrintJob.java:1017) > at java.security.AccessController.doPrivileged(Native Method) > at sun.print.UnixPrintJob.print(UnixPrintJob.java:608) > at org.apache.camel.component.printer.PrinterOperations.print(PrinterOperations.java:109) > at org.apache.camel.component.printer.PrinterOperations.print(PrinterOperations.java:99) > at org.apache.camel.component.printer.PrinterProducer.print(PrinterProducer.java:57) > at org.apache.camel.component.printer.PrinterProducer.process(PrinterProducer.java:51) > at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) > at org.apache.camel.processor.SendDynamicProcessor$1.doInAsyncProducer(SendDynamicProcessor.java:124) > at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:436) > at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:119) > at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) > at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:542) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197) > at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62) > at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145) > at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) > at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:542) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:120) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) > at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:542) > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197) > at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109) > at org.apache.camel.processor.MulticastProcessor.doProcessParallel(MulticastProcessor.java:827) > at org.apache.camel.processor.MulticastProcessor.access$200(MulticastProcessor.java:85) > at org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:320) > at org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:305) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > {code} > The second job should not be created because the -#2 parameter in the lpr command already schedules the desired number of copies. -- This message was sent by Atlassian JIRA (v7.6.3#76005)