You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Luca Veronese (JIRA)" <ji...@apache.org> on 2014/07/14 18:27:04 UTC

[jira] [Created] (CXF-5878) Disabling policy engine causes NPE

Luca Veronese created CXF-5878:
----------------------------------

             Summary: 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
            Priority: Blocker


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 "Non 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)