org.gjt.xpp.XmlPullParserException 错误解决
来源:互联网 发布:电大挂科软件 编辑:程序博客网 时间:2024/06/06 06:46
// 定义一个SringBuffer对象,用于接受参数StringBuffer xmlBuffer = new StringBuffer();String line = null;// 通过request获取获取输入流BufferedReader reader = request.getReader();// 一次读取请求输入流的数据while ((line = reader.readLine()) != null) {xmlBuffer.append(line);}// 将从输入流中读取到的内容转换成字符串String xml = xmlBuffer.toString();// 以Dom4J开始解析XML字符串InputStream in = new ByteArrayInputStream(xml.getBytes());Document xmlDoc = (Document)new XPPReader().read(new ByteArrayInputStream(xml.getBytes()));今天在学习Ajax时后,写到
Document xmlDoc = (Document)new XPPReader().read(new ByteArrayInputStream(xml.getBytes()));
一直报错误,提示
Multiple annotations found at this line:- The type org.gjt.xpp.XmlPullParserException cannot be resolved. It is indirectly referenced from required .class files- The method read(InputStream) from the type XPPReader refers to the missing type XmlPullParserException- The type org.gjt.xpp.XmlPullParserException cannot be resolved. It is indirectly referenced from required .class files- The method read(InputStream) from the type XPPReader refers to the missing type XmlPullParserException
异常,查了半天,并且看了源代码,原因是,找不到
import org.gjt.xpp.XmlPullParserException;的包,于是,网上各种找,都没有结果。随后在dom4j的源代码包中找到了
pull-parser-2.1.10.jar架包,于是加入,顺利解决。
0 0
- org.gjt.xpp.XmlPullParserException 错误解决
- org.gjt.xpp.XmlPullParserException 错误解决
- org.gjt.mm.mysql.Driver
- java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver错误在eclipse中的解决方法
- .NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
- 异常org.xmlpull.v1.XmlPullParserException
- org.xmlpull.v1.XmlPullParserException:异常
- .NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
- java 连接 mysql 数据库"javax.servlet.ServletException: org.gjt.mm.mysql.Driver"是什么问题,怎样解决?
- 访问WebService时出现org.xmlpull.v1.XmlPullParserException: Expected a quoted string错误
- android ksoap 报错 org.xmlpull.v1.XmlPullParserException: expected: START_TAG 的解决经验
- android ksoap 报错 org.xmlpull.v1.XmlPullParserException: expected: START_TAG 的解决经验
- android ksoap 报错 org.xmlpull.v1.XmlPullParserException: expected: START_TAG 的解决经验
- org.xmlpull.v1.XmlPullParserException: expected: START_TAG
- org.xmlpull.v1.XmlPullParserException: precondition: START_TAG
- org.xmlpull.v1.XmlPullParserException: preconditon: START_TAG
- org.xmlpull.v1.XmlPullParserException: Unexpected token
- XStream报错 org/xmlpull/v1/XmlPullParserException org.xmlpull.v1.XmlPullParserException
- 产品使用技术小结
- boost线程创建方式总结
- [leet code] Palindrome Partitioning
- xml文件的读写
- unresolved external symbol __forceAtlDllManifest错误的解决
- org.gjt.xpp.XmlPullParserException 错误解决
- linux 帮助命令
- 快速理解Kafka分布式消息队列框架
- wordpress+nat123迅速学会搭建并发布个人博客网站
- UVa 10061 多少个零和数字?
- Boost.Function内核剖析
- 396高校毕业设计选题
- 数据库连接池原理
- linux命令之网络命令