Hi Saibun/Axis-Users, Well thanks for the info, but this is not I was looking for. While executing ant task, I'm getting below exception and not by running axis2codegen wizard. But I'm still trying to replicate the issue using the steps mentioned in below URL.
The exception seems caused by :- java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cos-nonambig: Content model violates the unique particle attribution rule. How to check if the UPA is violated by my schema or not.Well I tried to SAX parse my schema it was successful, no errors reported by parser. Has anybody reported the same cause? Thanks, Mohit --- On Mon, 26/4/10, Saibun Toe <[email protected]> wrote: From: Saibun Toe <[email protected]> Subject: Re: CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException To: [email protected] Date: Monday, 26 April, 2010, 12:39 PM Hi Mohit, try this one http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/ Regards. From: mohit sikri <[email protected]> To: [email protected] Cc: sri ram <[email protected]> Sent: Mon, April 26, 2010 2:59:35 PM Subject: CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException Hello Axis-Users, I'm facing an intermittent issue, while running wsdl2java .It fails with an exception.I'm using ant to execute this task.It happens very less, but still curious to know why. I have checked schema and wsdl files, they seems fine to me. Anybody has any idea on this.Where to look and/or how to debug this issue. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) [java] ... 2 more [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115) [java] ... 3 more [java] Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: cos-nonambig: Content model violates the unique particle attribution rule. [java] at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325) [java] ... 8 more [java] Caused by: org.apache.xmlbeans.XmlException: error: cos-nonambig: Content model violates the unique particle attribution rule. [java] at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667) [java] at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189) [java] ... 8 more Thanks, Mohit
