Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 5819 invoked from network); 28 Jul 2009 21:09: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:09:17 -0000 Received: (qmail 36305 invoked by uid 500); 28 Jul 2009 20:42:37 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 36291 invoked by uid 500); 28 Jul 2009 20:42: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 36281 invoked by uid 99); 28 Jul 2009 20:42: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:42: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:42:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 26C6329A0018 for ; Tue, 28 Jul 2009 13:42:15 -0700 (PDT) Message-ID: <261989266.1248813735158.JavaMail.jira@brutus> Date: Tue, 28 Jul 2009 13:42:15 -0700 (PDT) From: "John McGinn (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12736276#action_12736276 ] John McGinn commented on CXF-2368: ---------------------------------- Thanks Daniel, I put another ticket out there to fix the user guide on the wiki http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html This is where I got the bad syntax from. John > 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());