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 E5955113AF for ; Tue, 29 Jul 2014 08:55:38 +0000 (UTC) Received: (qmail 23364 invoked by uid 500); 29 Jul 2014 08:55:38 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 23326 invoked by uid 500); 29 Jul 2014 08:55:38 -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 23313 invoked by uid 99); 29 Jul 2014 08:55:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 08:55:38 +0000 Date: Tue, 29 Jul 2014 08:55:38 +0000 (UTC) From: "Akitoshi Yoshida (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CXF-5878) Disabling policy engine causes NPE 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-5878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Akitoshi Yoshida reassigned CXF-5878: ------------------------------------- Assignee: Akitoshi Yoshida > Disabling policy engine causes NPE > ---------------------------------- > > Key: CXF-5878 > URL: https://issues.apache.org/jira/browse/CXF-5878 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.7.11 > Reporter: Luca Veronese > Assignee: Akitoshi Yoshida > Priority: Blocker > Attachments: ws-test-bug.zip > > > I have a SAP WSDL with proprietary policies. I need to create a client that ignores those policies. I tried configuring the cxf.xml in order to disable the Policy engine. If I don't disable it I get "None of the alternatives..." error. If I disable the engine I get NPE at > org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:161) > alternative = engine.getAlternativeSelector().selectAlternative(policy, engine, assertor, null); > engine.getAlternativeSelector() returns null. > I tried to create this client with Axis and it works. It also works calling from SoapUI. It seems an issue with CXF Policy management. > I need to create this client with CXF so I'm blocked by this. > I'm attaching an example project that illustrates the issue. > Simpy execute ECOSEntrySheetProcessingIn_ECOSEntrySheetProcessingIn_Client main method. -- This message was sent by Atlassian JIRA (v6.2#6252)