Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 11305 invoked from network); 28 Jul 2009 21:17:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jul 2009 21:17:17 -0000 Received: (qmail 49552 invoked by uid 500); 28 Jul 2009 20:50:37 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 49486 invoked by uid 500); 28 Jul 2009 20:50:37 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 49465 invoked by uid 99); 28 Jul 2009 20:50:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 20:50:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 20:50:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DC8C5234C046 for ; Tue, 28 Jul 2009 13:50:14 -0700 (PDT) Message-ID: <109521091.1248814214902.JavaMail.jira@brutus> Date: Tue, 28 Jul 2009 13:50:14 -0700 (PDT) From: "John McGinn (JIRA)" To: issues@cxf.apache.org Subject: [jira] Reopened: (CXF-2368) NPE in cxf-codegen-plugin when trying to use defaultOptions with wsdlOptions In-Reply-To: <326412736.1248811574808.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John McGinn reopened CXF-2368: ------------------------------ I tried this and now my defaultOptions is being ignored, My updated pom is this: org.apache.cxf cxf-codegen-plugin 2.2.2 generate-sources generate-sources true src/main/wsdl/bindings/bindings.xjb -server src/main/wsdl/EquipmentService.wsdl wsdl2java It is ignoring all 3 default values I specified, -server, the jaxb bindings, and the validate wsdl. > NPE in cxf-codegen-plugin when trying to use defaultOptions with wsdlOptions > ---------------------------------------------------------------------------- > > Key: CXF-2368 > URL: https://issues.apache.org/jira/browse/CXF-2368 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.2.2 > Environment: Windows XP, Eclipse 3.3.2 + m2eclipse plug-in > Reporter: John McGinn > Assignee: Daniel Kulp > Priority: Minor > Fix For: Invalid > > Attachments: bindingMapping.xsd, bindings.xjb, Equipment.xsd, EquipmentService.wsdl, pom.xml, stacktrace.txt > > > I setup the plug-in with defaultOptions + a wsdlOption and get the following stack trace: > java.lang.NullPointerException > at java.io.File.(File.java:222) > at org.apache.cxf.maven_plugin.WSDL2JavaMojo.mergeOptions(WSDL2JavaMojo. > java:143) > at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java: > 195) > This appears to be happening at this line of code: > private void mergeOptions(List options) { > File outputDirFile = testSourceRoot == null ? sourceRoot : testSourceRoot; > for (WsdlOption o : wsdlOptions) { > if (o.getOutputDir() == null) { > o.setOutputDir(outputDirFile); > } > > File file = new File(o.getWsdl());