You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/12/08 19:35:18 UTC
[jira] Resolved: (CXF-2561) cxf-codegen-plugin throws
NullPointerException when defaultOptions defined without packagenames
[ https://issues.apache.org/jira/browse/CXF-2561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-2561.
------------------------------
Resolution: Fixed
Fix Version/s: 2.2.6
Assignee: Christian Schneider
Christian fixed this as part of the work he did by making sure the lists are not null.
> cxf-codegen-plugin throws NullPointerException when defaultOptions defined without packagenames
> -----------------------------------------------------------------------------------------------
>
> Key: CXF-2561
> URL: https://issues.apache.org/jira/browse/CXF-2561
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.2.5
> Environment: maven
> Reporter: Francis De Brabandere
> Assignee: Christian Schneider
> Fix For: 2.2.6
>
> Original Estimate: 0.05h
> Remaining Estimate: 0.05h
>
> If the cxf-codegen-plugin is defined with this section in its configuration you will get a NullPointerException
> <defaultOptions>
> <validateWsdl>true</validateWsdl>
> <bindingFiles>
> <bindingFile>${basedir}/src/jaxws/fixmsprops.xml</bindingFile>
> </bindingFiles>
> <!--<packagenames/>-->
> </defaultOptions>
> java.lang.NullPointerException
> at java.util.ArrayList.addAll(ArrayList.java:472)
> at org.apache.cxf.maven_plugin.Option.merge(Option.java:424)
> at org.apache.cxf.maven_plugin.WSDL2JavaMojo.mergeOptions(WSDL2JavaMojo.java:260)
> A temporary fix is to add the an empty packagenames element.
> This issue can be fixed in Options.java on line 429 by putting that line inside a if(defaultOptions.namespaceExcludes != null){...}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.