Hi Dan,

Thanks for the suggestion it really helped and my issue is resolved, but now
am getting an new issue, this is when integrating the service with Mule , I
am using Mule CXF Proxy service for hosting a Web Service after my migration
I am getting some errors. I am not sure its due to CXF upgrade. I have
attached the stack trace and mule config. Can you pelase help if i had gone
wrong some where ?

Proxy_Service_Config.txt and STACK_TRACE.txt

Thanks.
Kamesh


dkulp wrote:
> 
> 
> 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
> 
> 
http://www.nabble.com/file/p25205149/Proxy_Service_Config.txt
Proxy_Service_Config.txt 
http://www.nabble.com/file/p25205149/STACK_TRACE.txt STACK_TRACE.txt 
-- 
View this message in context: 
http://www.nabble.com/xmlbean-binding-can-not-handle-throws-exception-tp19735873p25205149.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to