Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5878

Disabling policy engine causes NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.7.11
    • Fix Version/s: 2.7.13, 3.0.2, 3.1
    • Component/s: WS-* Components
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

        1. ws-test-bug.zip
          41 kB
          Luca Veronese

          Activity

            People

            • Assignee:
              ay Akitoshi Yoshida
              Reporter:
              lveronese Luca Veronese
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: