Nov 22nd, 2012, 03:29 AM
create Log for reading error in StaxEventItemReader
I am using StaxEventItemReader and CastorMarshaller to read a XML file and this XML file contains some invalid records.
So whenever it throws a reading time exception (like UnmarshallingFailureException) , i just want to write this current faulty record to another file lets called bad.xml .
For this,i am using skiplistner implementation but i am not able to fetch error record.
Please help me to find a solution for this.
Tags for this Thread