Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 3547 invoked from network); 18 Nov 2010 15:35:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 15:35:10 -0000 Received: (qmail 34012 invoked by uid 500); 18 Nov 2010 15:35:40 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 33721 invoked by uid 500); 18 Nov 2010 15:35:39 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 33712 invoked by uid 99); 18 Nov 2010 15:35:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 15:35:38 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 15:35:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAIFZE05023445 for ; Thu, 18 Nov 2010 15:35:14 GMT Message-ID: <19911704.176421290094514409.JavaMail.jira@thor> Date: Thu, 18 Nov 2010 10:35:14 -0500 (EST) From: "Jan-Willem Borleffs (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Created: (AXIS2-4887) TargetNameSpace required for XSD2Java 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 TargetNameSpace required for XSD2Java ------------------------------------- Key: AXIS2-4887 URL: https://issues.apache.org/jira/browse/AXIS2-4887 Project: Axis2 Issue Type: Bug Components: codegen Reporter: Jan-Willem Borleffs Priority: Minor Fix For: 1.5.3 When omitting the targetNamespace attribute from an xsd, or providing it with an empty value, code generation with the XSD2Java class fails with a NullPointerException. The reason is that the SchemaCompiler class calls URLProcessor.makePackageName() with the value returned by the call to schema.getTargetNamespace(), which is null in this case. The URLProcessor.makePackageName() method then generates the exception, because it tries to call methods from the null object. To me, this is a bug, because AFAIK, the targetNamespace attribute isn't required. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org