I am using castor (ver 1.3.1) to unmarshal an xml into a java object. This object has member variables as collections (List).
Even though in the mapping file I used collections attribute of field tag and has set it to arraylist, it is still throwing this exception.
After doing a bit of research on this,I found that since UnmarshalHandler uses reflection to create object from xml, it is trying to invoke java.util.List.newInstance() which might be the root of the problem.
The class which I am trying to unmarshal is an already existing class and I cannot change the type of the member variables to ArrayList from List.