On Sunday 02 January 2011 8:36:10 am John Baker wrote: > Hello, > > I'm struggling with what I suspect is jar file hell whilst trying to make a > simple WSDL call with CXF 2.3.1. Here's the code: > > JaxWsDynamicClientFactory dcf = > JaxWsDynamicClientFactory.newInstance(); Client client = > dcf.createClient(wsdl);
com.sun.tools.internal.xjc.reader.internalizer.Internalizer.move(Internali It's using the JAXB/XJC that is built into Java6 which is a bit older and known to be a bit buggy. You might want to try adding the newer JAXB jars and seeing if that helps at all. Dan > > And here's the exception: > > java.lang.reflect.UndeclaredThrowableException > at $Proxy15.bind(Unknown Source) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:273) at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:198) at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:191) at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:146) ... > 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(DelegatingMethodAccessorIm > pl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionIn > vokationHandler.java:52) ... 7 more > Caused by: java.lang.AssertionError > at > com.sun.tools.internal.xjc.reader.internalizer.DOMForest.getOneDocument(DO > MForest.java:213) at > com.sun.tools.internal.xjc.reader.internalizer.Internalizer.move(Internali > zer.java:300) at > com.sun.tools.internal.xjc.reader.internalizer.Internalizer.transform(Inte > rnalizer.java:130) at > com.sun.tools.internal.xjc.reader.internalizer.Internalizer.transform(Inte > rnalizer.java:85) at > com.sun.tools.internal.xjc.reader.internalizer.DOMForest.transform(DOMFore > st.java:437) at > com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaComp > ilerImpl.java:210) ... 12 more > > I expect this is a jar file issue as I've got some old Axis 1.4 in the > project, but I've tried removing it and the problem didn't go away. I'm > using Java 1.6. Any thoughts on where I should start looking? The source > suggested JAXB but I can't see another JAXB jar in my Eclipse project. > > > John -- Daniel Kulp [email protected] http://dankulp.com/blog
