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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.3
    • 2.7.4, 2.6.7, 3.0.0-milestone1
    • Core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: