[ 
https://issues.apache.org/jira/browse/CXF-2108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved CXF-2108.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.5

> idl2wsdl NullPointerException at typedef with sequence of (named) fixed array
> -----------------------------------------------------------------------------
>
>                 Key: CXF-2108
>                 URL: https://issues.apache.org/jira/browse/CXF-2108
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1.4
>            Reporter: Brad L. Ragsdale
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.1.5
>
>         Attachments: idl2wsdlbug.idl
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> 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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to