cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CXF-3297) idl2wsdl fails with NPE if IDL contains typeprefix keyword
Date Tue, 01 Feb 2011 02:10:29 GMT

    [ https://issues.apache.org/jira/browse/CXF-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988763#comment-12988763
] 

Freeman Fang edited comment on CXF-3297 at 2/1/11 2:09 AM:
-----------------------------------------------------------

apply patch on behalf of Torsten with thanks
http://svn.apache.org/viewvc?rev=1065609&view=rev for trunk
http://svn.apache.org/viewvc?rev=1065620&view=rev for 2.3.x branch

      was (Author: ffang):
    commit fix
http://svn.apache.org/viewvc?rev=1065609&view=rev for trunk
http://svn.apache.org/viewvc?rev=1065620&view=rev for 2.3.x branch
  
> idl2wsdl fails with NPE if IDL contains typeprefix keyword
> ----------------------------------------------------------
>
>                 Key: CXF-3297
>                 URL: https://issues.apache.org/jira/browse/CXF-3297
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.3.2
>         Environment: CXF-2.3.x-SNAPSHOT, Windows
>            Reporter: Torsten Mielke
>            Assignee: Freeman Fang
>              Labels: CORBA, idl2wsdl
>             Fix For: 2.4, 2.3.3
>
>         Attachments: CXF-3297.patch, test.idl
>
>
> If the IDL contains the CORBA 3.0 keyword 'typeprefix', idl2wsdl fails with a NullPointerException:
> {code}
> idl2wsdl -verbose -o wsdl/ test.idl
> idl2wsdl - Apache CXF 2.3.x-fuse-SNAPSHOT
>  ( typeprefix Test fusesource.com )
> 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.TypeDclVisitor.visit(TypeDclVisitor.java:77)
>         at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:94)
>         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}
> To reproduce use attached test.idl and run
> idl2wsdl -verbose -o wsdl/ test.idl 
> Although typeprefix is a keyword added in CORBA 3.0 spec only, we should at the very
least raise a meaningful error message that typeprefix is not supported right now. Or even
better, handle this keyword correctly.

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

        

Mime
View raw message