Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 428797797 for ; Wed, 7 Dec 2011 17:33:04 +0000 (UTC) Received: (qmail 47564 invoked by uid 500); 7 Dec 2011 17:33:02 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 47527 invoked by uid 500); 7 Dec 2011 17:33:02 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 47479 invoked by uid 99); 7 Dec 2011 17:33:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 17:33:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 17:33:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A2E401055ED for ; Wed, 7 Dec 2011 17:32:41 +0000 (UTC) Date: Wed, 7 Dec 2011 17:32:41 +0000 (UTC) From: "Daniel Kulp (Resolved) (JIRA)" To: issues@cxf.apache.org Message-ID: <1745335137.50010.1323279161668.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1306836217.49377.1323266321132.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CXF-3961) SoapTransportFactory: confused exception by unknown transport protocol 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/CXF-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-3961. ------------------------------ Resolution: Fixed Fix Version/s: 2.5.1 2.4.5 2.3.8 Patch applied. Thanks! > SoapTransportFactory: confused exception by unknown transport protocol > ---------------------------------------------------------------------- > > Key: CXF-3961 > URL: https://issues.apache.org/jira/browse/CXF-3961 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.5 > Environment: Windows > Reporter: Andrei Shakirin > Assignee: Daniel Kulp > Priority: Minor > Fix For: 2.3.8, 2.4.5, 2.5.1 > > Attachments: SoapTransportFactory.patch > > > If custom transport conduit is resolved via SoapTransportFactory.getConduit(EndpointInfo ei) and transport is not found in ConduitInitiatorManager, following exception is thrown: > java.lang.NullPointerException > at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactor > y.java:228)[131:org.apache.cxf.bundle:2.4.2] > The reason is following: ConduitInitiatorManager.getConduitInitiatorForUri() doesn't throw BusException in case if transport is not found, therefore line "return conduitInit.getConduit(ei)" throws NPE. > I see two possible solutions: > A) throw BusException in ConduitInitiatorManager.getConduitInitiatorForUri() in the same way as ConduitInitiatorManager.getConduitInitiator() > B) Check for null in SoapTransportFactory > (A) is risky, because it has invluence on all calls of ConduitInitiatorManager.getConduitInitiatorForUri() > Patch for (B) is attached. -- 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