Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 81413 invoked from network); 21 Nov 2008 17:58:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2008 17:58:07 -0000 Received: (qmail 54037 invoked by uid 500); 21 Nov 2008 17:58:15 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 53347 invoked by uid 500); 21 Nov 2008 17:58:14 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 53336 invoked by uid 99); 21 Nov 2008 17:58:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2008 09:58:14 -0800 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; Fri, 21 Nov 2008 17:56:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50813234C256 for ; Fri, 21 Nov 2008 09:57:44 -0800 (PST) Message-ID: <1728022761.1227290264315.JavaMail.jira@brutus> Date: Fri, 21 Nov 2008 09:57:44 -0800 (PST) From: "Dave Lindquist (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-4143) Type.Property (ex A.B) and Type (ex AB) Names Collide in Object Factory (jaxbri Code Generation) -- Two declarations cause a collision in the ObjectFactory class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Type.Property (ex A.B) and Type (ex AB) Names Collide in Object Factory (jaxbri Code Generation) -- Two declarations cause a collision in the ObjectFactory class ----------------------------------------------------------------------------------------------------------------------------------------------------------------- Key: AXIS2-4143 URL: https://issues.apache.org/jira/browse/AXIS2-4143 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: codegen Affects Versions: 1.4.1 Environment: Windows XP (x86), Apache Axis2 1.4.1, Sun JDK 1.5.0_12 Reporter: Dave Lindquist Priority: Minor When using JAXBRI bindings and generating from a WSDL via wsdl2java.bat, it is possible for a Type.Property and Type name to collide in ObjectFactory. For example, if my XSD has: * A type named "Something" * A type named "Some" with a property named "thing" (and this property is also an "anonymous" complex type) I will get an error on code generation that says: [ERROR] Two declarations cause a collision in the ObjectFactory class. [ERROR] (Related to above error) This is the other declaration. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) ... 2 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101) ... 3 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to generate code using jaxbri at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:304) ... 8 more Caused by: java.lang.RuntimeException: Unable to generate code using jaxbri at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:196) ... 8 more The bug here is two-fold: * First, I get absolutely nothing in terms of information that helps me track down WHAT declarations collided (the second message line looks like it was intending to provide that, but it doesn't). * Secondly, that it collides at all (this is a perfectly valid case, and should be handled in codegen). I will attach example WSDLs that create this case when generated. The command line used is: wsdl2java.bat -o (output directory) -b jaxbri -uri (wsdl file) -- 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: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org