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

idl2wsdl NullPointerException at typedef with sequence of (named) fixed array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.4
    • 2.1.5
    • Tooling
    • None
    • Moderate

    Description

      The idl2wsdl-tool throws a NullPointerException at
      org.apache.cxf.tools.corba.processors.idl.SimpleTypeSpecVisitor.visit(SimpleTypeSpecVisitor.java:75)
      when trying to convert following valid CORBA idl to wsdl:

      – Begin IDL
      module idl2wsdlnullpointer

      { typedef string foo[1]; typedef sequence<foo> bar; }

      ;
      – END IDL

      Line 75 in the relevant source file contains: visitor.visit(node);
      The exception occurs because the visitor is still null after all three visitors failed to accept above node.

      I doublechecked fuse-services-framework-2.1.3.3. Same issue.

      Workaround
      -----------------

      The following workaround does break neither client nor server code and allows the idl2wsdl-tool to fully generate a wsdl definition.

      – Begin IDL Workaround
      module idl2wsdlnullpointer

      { typedef sequence<string> foo; typedef sequence<foo> bar; }

      ;
      – END IDL

      This workaround does not change generated Java ORB server-skeletons. It does however change e.g. generated Python client-stubs, thereby maybe affecting ORB/IIOP performance negatively (probably only marginally).

      Attachments

        1. idl2wsdlbug.idl
          2 kB
          Brad L. Ragsdale

        Activity

          People

            dkulp Daniel Kulp
            reporter Brad L. Ragsdale
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified