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

CXF-3229 all over again

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4, 2.4.1
    • 2.3.6, 2.4.2
    • Core
    • None
    • Generating Java code from WSDL

    Description

      See issue 3229. in 2.4 things have changed, and the patch I applied for 2.3.2 is no longer in place. However, the problem that was fixed in 3229 is back again in 2.4.1.

      Step1:
      Java 2 wsdl: an operation throws java.lang.Exception.

      Step2: wsdl 2 java based on resulting wsdl from step1. Codegen creates an XML binding class "Exception". Other exceptions "extends Exception", not "extends java.lang.Exception".

      See: tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java

      Why would a generated exception ever extends anything other than java.lang.Exception? Is it attempting to mirror the hierarchy from the server side? My suggestion: exceptionSuperclass = "java.lang.Exception"; End of story.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            jesselong Jesse Long
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: