You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Torsten Mielke (JIRA)" <ji...@apache.org> on 2011/02/02 10:45:29 UTC

[jira] Updated: (CXF-3303) idl2wsdl fails with NPE if a type cannot be resolved

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

Torsten Mielke updated CXF-3303:
--------------------------------

    Attachment: CXF-3303.zip

> idl2wsdl fails with NPE if a type cannot be resolved
> ----------------------------------------------------
>
>                 Key: CXF-3303
>                 URL: https://issues.apache.org/jira/browse/CXF-3303
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.3.1
>         Environment: CXF-2.3.x branch
>            Reporter: Torsten Mielke
>              Labels: idl2wsdl
>         Attachments: CXF-3303.zip
>
>
> Running 
> {code}
> idl2wsdl -verbose -o . -I . test.idl
> {code}
> on the attached IDL files produces
> {code}
> idl2wsdl -verbose -o . -I . test.idl
> idl2wsdl - Apache CXF 2.3.x-fuse-SNAPSHOT
>  ( module CORBA ( interface Principal { } ) ( interface NamedValue { } ) ( interface TypeCode { } ) )
> Error : org.apache.cxf.tools.common.ToolException
> org.apache.cxf.tools.common.ToolException: org.apache.cxf.tools.common.ToolException
>         at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:88)
>         at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:79)
>         at org.apache.cxf.tools.corba.IDLToWSDL.execute(IDLToWSDL.java:75)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:58)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:40)
>         at org.apache.cxf.tools.corba.IDLToWSDL.run(IDLToWSDL.java:164)
>         at org.apache.cxf.tools.corba.IDLToWSDL.main(IDLToWSDL.java:172)
> Caused by: org.apache.cxf.tools.common.ToolException
>         at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.parseIDL(IDLToWSDLProcessor.java:220)
>         at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:86)
>         ... 7 more
> Caused by: java.lang.NullPointerException
>         at org.apache.cxf.tools.corba.processors.idl.ConstVisitor.visit(ConstVisitor.java:97)
>         at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:85)
>         at org.apache.cxf.tools.corba.processors.idl.ModuleVisitor.visit(ModuleVisitor.java:53)
>         at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:57)
>         at org.apache.cxf.tools.corba.processors.idl.WSDLASTVisitor.visit(WSDLASTVisitor.java:127)
>         at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.parseIDL(IDLToWSDLProcessor.java:212)
>         ... 8 more
> Error : org.apache.cxf.tools.common.ToolException
> {code}
> This is because the type PolicyType is not defined in the included orb.idl. However a proper error msg should be reported rather than an NPE.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira