axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saibun Toe <s_toe_15...@yahoo.com>
Subject Re: CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
Date Mon, 26 Apr 2010 07:09:47 GMT
Hi Mohit, 

try this one http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/

Regards.



________________________________
From: mohit sikri <sikri_mohit@yahoo.co.in>
To: axis-user@ws.apache.org
Cc: sri ram <pinnamaraju_sriram@yahoo.co.in>
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


      
Mime
View raw message