> 
> 1) Can anybody please help me to make this service work. Like if upgrading
> to a better version of CXF Jars... Would it help?

It may.   I'd also suggest a much newer version of XMLBeans.  I don't think 
CXF has EVER been used or tested with 2.2.1.   2.4.0 might work better, but 
I'd recommend going to 2.5.0.

Dan


On Friday, June 15, 2012 03:32:04 AM juniorbansal wrote:
> Hi
> 
> CXF 2.4.1 + XML Beans 2.2.1 + Spring + Java 1.6 + Maven - Interceptor XXX
> has thrown exception, unwinding now: NullPointerException in
> DataImplReaderImpl and DataImplWriterImpl
> 
> I am using Java 6 + Spring + CXF 2.4.1 + XML Beans ... I got a XSD and I
> used XML Beans and created Java Beans out of it... Now I created a web
> service using the above technology stack and used the java beans... The
> service got created. But when I try to test it via SOAP UI I see this
> following exception. I know that CXF  by default supports JAXB. I gave
> @DataBinding as XMLBeans in my interface. Also I manually gave this in my
> end point declaration like this below
> 
>     <jaxws:endpoint id="visionSharePointWebServiceEndPoint"
>     implementor="#visionSharePointWebService"
> address="/visionSharePointService">
>     <jaxws:dataBinding>
>     <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding" />
>     </jaxws:dataBinding>
>     </jaxws:endpoint>
> 
> **Stack Trace when tested from SOAP UI:-**
> 
>     java.lang.NullPointerException
>     at
> org.apache.cxf.xmlbeans.DataReaderImpl.doRead(DataReaderImpl.java:92) at
> org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:63) at
> org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:45) at
> org.apache.cxf.interceptor.DocLiteralInInterceptor.getPara(DocLiteralInInt
> erceptor.java:260) at
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLitera
> lInInterceptor.java:127) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:263) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> Observer.java:118) at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPD
> estination.java:208)
> ......................................................................
> 
> **Stack Trace When tested from Web Services Explorer:-**
> 
>     java.lang.NullPointerException
>     at
> org.apache.cxf.xmlbeans.DataWriterImpl.write(DataWriterImpl.java:83) at
> org.apache.cxf.xmlbeans.DataWriterImpl.write(DataWriterImpl.java:60) at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(Ab
> stractOutDatabindingInterceptor.java:119) at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterce
> ptor.java:68) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:263) at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(Outgoing
> ChainInterceptor.java:77) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:263) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> Observer.java:118) at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPD
> estination.java:208) at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servl
> etController.java:223) at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletControlle
> r.java:205) at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringSe
> rvlet.java:113) at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(Abstrac
> tHTTPServlet.java:184) at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPSe
> rvlet.java:107)
> .....................................................................
> 
> The DataReaderImpl and DataWriterImpl classes are present in
> cxf-rt-databinding-xmlbeans-2.4.1.jar
> 
> Now I don't know what else to fix here....
> 
> 1) Can anybody please help me to make this service work. Like if upgrading
> to a better version of CXF Jars... Would it help?
> 
> 2)Also why is the exception different when tested from 2 different tools?
> Like when tested from SOAP UI i am seeing stack trace as DataReaderImpl
> and when tested from web services explorer i am seeing exception in
> DataWriterImpl?
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-2-4-1-XML-Beans-2-2-1-Spring-Java-1-6
> -Maven-Interceptor-XXX-has-thrown-exception-unwinding-now-Nl-tp5709858.htm
> l Sent from the cxf-user mailing list archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to