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

NPE is thrown at EP creation when no service class is specified and the wsdl cannot be loaded

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.3
    • Fix Version/s: 2.7.4, 2.6.7, 3.0.0-milestone1
    • Component/s: Core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      ReflectionServiceFactoryBean is falling back to use the service class to initialize the endpoint when the provided wsdl cannot be loaded (e.g., not found). This can lead to an NPE, as the service class can be null.

      This patch adds a check to verify this condition and throws an appropriate unchecked exception (ServiceConstructionException) instead.

        Attachments

          Activity

            People

            • Assignee:
              ay Akitoshi Yoshida
              Reporter:
              ay Akitoshi Yoshida
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: