I did some debugging of the CXF code and figured the following: There is a
call to a method in StaxUtils that parses the SOAP fault response. It
correctly identifies values for all headers except <detail>. As a result a
NULL value is returned for fault detail; the created exception object
therefore has its member variables uninitialized. This could be a bug in
CXF. Maybe we need to include some jar file that has correct implementation
for parsing the SOAP fault. This is a serious block.
- Kannan
rkannan wrote:
>
> I am throwing an exception from server side but on the client side the
> exception object has all the fields set to NULL. I checked the incoming
> SOAP fault message and it has correct values for the fields. I believe the
> correct jar files are not being used because I had a similar problem in
> sending List data types as parameters and it was fixed by adding asm.jar.
> I am using Wrapped Doc/Lit with the following dependencies on client:
>
> --------------------------------------------------------------------------------------------------
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.1</version>
> <scope>provided</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-frontend-jaxws</artifactId>
> <version>${cxf.version}</version>
> </dependency>
>
>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-transports-http</artifactId>
> <version>${cxf.version}</version>
> </dependency>
>
> <dependency>
> <groupId>asm</groupId>
> <artifactId>asm</artifactId>
> <version>3.0</version>
> </dependency>
> --------------------------------------------------------------------------------------------------
>
> If it really is a problem with using the correct jar files, it will be
> very helpful to get a list of jars that need to be used on server and
> client side to enable web service using CXF. I read the <WHICH_JARS> file
> that is part of CXF download, but adding them has not solved my problem.
> Can someone point out which classes are absolutely needed to handle
> fault/exception objects properly?
>
> Thanks,
> Kannan
>
--
View this message in context:
http://www.nabble.com/Exception-object-has-all-fields-set-to-NULL-on-client-side-tp14723440p14729912.html
Sent from the cxf-user mailing list archive at Nabble.com.