首页 新闻 会员 周边 捐助

java jdom.jar 操作XML时报错

0
悬赏园豆:20 [已关闭问题] 关闭于 2015-08-15 16:51

Exception in thread "main" java.net.MalformedURLException
 at java.net.URL.<init>(Unknown Source)
 at java.net.URL.<init>(Unknown Source)
 at java.net.URL.<init>(Unknown Source)
 at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
 at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
 at org.jdom.input.SAXBuilder.build(SAXBuilder.java:518)
 at org.jdom.input.SAXBuilder.build(SAXBuilder.java:865)
 at Sample1.main(Sample1.java:8)
Caused by: java.lang.NullPointerException
 ... 13 more

 

跟视频教程写的一样,不知道为什么会错

LovingNow的主页 LovingNow | 初学一级 | 园豆:132
提问于:2015-08-15 16:47
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册