Quick question: the TestException exception, does that "look like" a JAX-WS generated exception. Basically, does it have a "getFaultInfo()" method that returns the XMLBeans generated type for the fault? If not, can you try that? (also will need the constructors that take that bean)
I THINK that will work (not 100% sure though). Either way, thanks for logging the bug. It does need to be fixed. I'm just trying to provide a workaround. Dan On Tuesday 30 September 2008, quzhe wrote: > hi,All: > I use xmlbeans binding, when I write this service, it is working: > @WebMethod(operationName="insertSysaddresstype") > @WebResult(name="InsertSysaddresstypeResponse")InsertSysaddresstypeRe >sponse insert(@WebParam(name="InsertSysaddresstypeParam") > InsertSysaddresstypeParamDocument.InsertSysaddresstypeParam body) ; > > but when I throw a exception: > @WebMethod(operationName="insertSysaddresstype") > @WebResult(name="InsertSysaddresstypeResponse")InsertSysaddresstypeRe >sponse 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! -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
