Definitely move to CXF 2.2.4 or 2.1.6. MANY fixes have gone into the XMLBeans databinding since 2.1.2.
Dan On Fri August 28 2009 3:27:51 pm skamesh wrote: > hi, > > Any idea on how you had resolved this error I am using CXF 2.1.2 but still > getting the same error when the XMLBeans writes the fault, I have the > getFaultInfo() overidden to send back the xml document. > > Thanks. > > quzhe wrote: > > hi,All: > > I use xmlbeans binding, when I write this service, it is working: > > @WebMethod(operationName="insertSysaddresstype") > > > > @WebResult(name="InsertSysaddresstypeResponse")InsertSysaddresstypeRespon > >se insert(@WebParam(name="InsertSysaddresstypeParam") > > InsertSysaddresstypeParamDocument.InsertSysaddresstypeParam body) ; > > > > but when I throw a exception: > > @WebMethod(operationName="insertSysaddresstype") > > > > @WebResult(name="InsertSysaddresstypeResponse")InsertSysaddresstypeRespon > >se insert(@WebParam(name="InsertSysaddresstypeParam") > > InsertSysaddresstypeParamDocument.InsertSysaddresstypeParam body) throws > > TestException; > > > > cxf will have a nullpoint exception: > > > > > > Caused by: java.lang.NullPointerException > > at > > org.apache.cxf.xmlbeans.XmlBeansSchemaInitializer.mapClass(XmlBeansSc > > hemaInitializer.java:165) > > at > > org.apache.cxf.xmlbeans.XmlBeansSchemaInitializer.checkForExistence(X > > mlBeansSchemaInitializer.java:217) > > at > > org.apache.cxf.xmlbeans.XmlBeansSchemaInitializer.begin(XmlBeansSchem > > aInitializer.java:142) > > at > > org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceMode > > lVisitor.java:120) > > at > > org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.j > > ava:74) > > at > > org.apache.cxf.xmlbeans.XmlBeansDataBinding.initialize(XmlBeansDataBi > > nding.java:102) > > at > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServ > > iceFromClass(ReflectionServiceFactoryBean.java:345) > > at > > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFrom > > Class(JaxWsServiceFactoryBean.java:513) > > > > > > > > How to do it here? > > > > thank you! -- Daniel Kulp [email protected] http://www.dankulp.com/blog
