Exception in thread "main" java.lang.IllegalArgumentException: XPP3 pull parser library not present. Specify another driver. For example: new XStream(new DomDriver())
at com.thoughtworks.xstream.io.xml.XppDriver.loadLibrary(XppDriver.java:42)
at com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:29)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:773)
at com.poson.vc.ss.TestFillRecordQuery.main(TestFillRecordQuery.java:37)
解决策略:
1、引进xpp3-[版本].jar
2、使用标准的JAXP DOM解析器来代替:
QueryInfoResp qir = (QueryInfoResp) new XStream( new DomDriver()).fromXML(s);