axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Vogt <christ...@vogtweb.net>
Subject Re: Axis2 databinding xmlbeans: ArrayStoreException even within sample perf.wsdl
Date Wed, 17 Sep 2008 10:39:04 GMT
Hi everyone,

finally solved, found the root cause, a classpath related issue.
Within my ~/.ant/lib was a old xbean-1-jar residing which was loaded first.
After removing the jar from the .ant/lib-folder, the sample works as 
expected

Christian

Christian Vogt schrieb am 11.09.2008 12:52:
> Hi everyone,
> 
> I am trying out the xmlbeans databinding with axis2 and ran into an
> issue even with the distributed sample-wsdl-file 'perf.wsdl'.
> 
> ADB is working fine, but when switching ot xmlbeans-databinding, there
> is the following exception thrown:
> 
> ========================
> 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.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:416)
>     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>     at org.apache.tools.ant.Task.perform(Task.java:364)
>     at org.apache.tools.ant.Target.execute(Target.java:341)
>     at org.apache.tools.ant.Target.performTasks(Target.java:369)
>     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>     at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) 
> 
>     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>     at org.apache.tools.ant.Main.runBuild(Main.java:668)
>     at org.apache.tools.ant.Main.startAnt(Main.java:187)
>     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
>     at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126)

> 
>     at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)

> 
>     ... 13 more
> Caused by: java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> 
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

> 
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115)

> 
>     ... 14 more
> Caused by: java.lang.RuntimeException: java.lang.ArrayStoreException
>     at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)

> 
>     ... 19 more
> Caused by: java.lang.ArrayStoreException
>     at java.lang.System.arraycopy(Native Method)
>     at java.util.ArrayList.toArray(ArrayList.java:304)
>     at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.convertToSchemaArray(CodeGenerationUtility.java:562)

> 
>     at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189)

> 
>     ... 19 more
> ========================
> 
> Find attached my build-file and the verbose ant-output plus the
> perf.wsdl coming with the axis2-1.4.1 distribution, just in case. I also
> tried previous axis2-releases with the same result.
> 
> Any ideas why the sample wsdl cannot be used with xmlbeans-databinding?
> 
> Thanks
> Christian
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message