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
;
– 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
;
– 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).