Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6540D7364 for ; Thu, 6 Oct 2011 16:15:22 +0000 (UTC) Received: (qmail 49747 invoked by uid 500); 6 Oct 2011 16:15:22 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 49696 invoked by uid 500); 6 Oct 2011 16:15:22 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 49689 invoked by uid 99); 6 Oct 2011 16:15:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 16:15:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 16:15:21 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 191922388A74 for ; Thu, 6 Oct 2011 16:15:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1179687 - in /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http: HTTPConduit.java Messages.properties Date: Thu, 06 Oct 2011 16:15:00 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111006161501.191922388A74@eris.apache.org> Author: dkulp Date: Thu Oct 6 16:15:00 2011 New Revision: 1179687 URL: http://svn.apache.org/viewvc?rev=1179687&view=rev Log: If the executor rejects the request, just run on the local thread and warn. Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?rev=1179687&r1=1179686&r2=1179687&view=diff ============================================================================== --- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java (original) +++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java Thu Oct 6 16:15:00 2011 @@ -37,6 +37,7 @@ import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.Executor; +import java.util.concurrent.RejectedExecutionException; import java.util.logging.Level; import java.util.logging.Logger; @@ -1515,7 +1516,12 @@ public class HTTPConduit outMessage.getExchange().put(Executor.class.getName() + ".USING_SPECIFIED", Boolean.TRUE); } - ex.execute(runnable); + try { + ex.execute(runnable); + } catch (RejectedExecutionException rex) { + LOG.warning("EXECUTOR_FULL"); + handleResponseInternal(); + } } } Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties?rev=1179687&r1=1179686&r2=1179687&view=diff ============================================================================== --- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties (original) +++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Messages.properties Thu Oct 6 16:15:00 2011 @@ -25,4 +25,5 @@ DECOUPLED_RESPONSE_FAILED_MSG = Decouple MISSING_PATH_INFO = PATH_INFO not present in message context, multiplex id is unavailable. Ensure the portName passed to getCurrentEndpointReferenceId is correct if the service has multiple ports INVALID_ENCODING_MSG = Invalid character set {0} in request. INVALID_TIMEOUT_FORMAT = Invalid name/value pair {0}={1} set in RequestConext -NO_HTTP_DESTINATION_FACTORY_FOUND = Cannot find any registered HttpDestinationFactory from the Bus. \ No newline at end of file +NO_HTTP_DESTINATION_FACTORY_FOUND = Cannot find any registered HttpDestinationFactory from the Bus. +EXECUTOR_FULL = Executor rejected background task to retrieve the response, running on current thread. \ No newline at end of file