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")InsertSysaddresstypeResponse > insert(@WebParam(name="InsertSysaddresstypeParam") > InsertSysaddresstypeParamDocument.InsertSysaddresstypeParam body) ; > > but when I throw a exception: > @WebMethod(operationName="insertSysaddresstype") > > @WebResult(name="InsertSysaddresstypeResponse")InsertSysaddresstypeResponse > 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! > > > > > > > > -- View this message in context: http://www.nabble.com/xmlbean-binding-can-not-handle-throws-exception-tp19735873p25195616.html Sent from the cxf-user mailing list archive at Nabble.com.
