com.thoughtworks.xstream.converters.ConversionException:

08-15 10:22:35.935: E/XMLParseHelper(18082): com.thoughtworks.xstream.converters.ConversionException: Cannot construct xxxxx as it does not have a no-args constructor : Cannot construct com.xz.jyapp.model.xml.QxxtSjzd_Root as it does not have a no-args constructor
08-15 10:22:35.935: E/XMLParseHelper(18082): ---- Debugging information ----
08-15 10:22:35.935: E/XMLParseHelper(18082): message             : Cannot construct com.xz.jyapp.model.xml.QxxtSjzd_Root as it does not have a no-args constructor
08-15 10:22:35.935: E/XMLParseHelper(18082): cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
08-15 10:22:35.935: E/XMLParseHelper(18082): cause-message       : Cannot construct com.xz.jyapp.model.xml.QxxtSjzd_Root as it does not have a no-args constructor
08-15 10:22:35.935: E/XMLParseHelper(18082): class               : com.xz.jyapp.model.xml.QxxtSjzd_Root
08-15 10:22:35.935: E/XMLParseHelper(18082): required-type       : com.xz.jyapp.model.xml.QxxtSjzd_Root
08-15 10:22:35.935: E/XMLParseHelper(18082): converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
08-15 10:22:35.935: E/XMLParseHelper(18082): path                : /root
08-15 10:22:35.935: E/XMLParseHelper(18082): version             : 0.0
08-15 10:22:35.935: E/XMLParseHelper(18082): -------------------------------
08-15 10:22:35.935: E/LoginActivity(18082): DownLoadAsyncTask:null	

最近使用注解框架,遇到一个奇葩的问题。我昨天运行还没有问题,今天一运行就报错,我也是郁闷了
 
  

后来找了好久才知道是因为没有无参的构造函数,原来可以运行就没有怀疑这个问题。
后来把每个实体类都加一个无参的构造函数。运行,嗨 好了。。。。

你可能感兴趣的:(android,异常处理)