When using dom4j to parse XML, an exception is thrown because the XML file contains errors and unidentifiable labels or formats.
Someone on the Internet said that the lack of jaxen-1.1-beta-6.jar package, but I did not compile this jar package or make, do not know why.
Org. dom4j. extends entexception: C nested exception: c
At org. dom4j. Io. saxreader. Read (saxreader. Java: 321)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 201)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 190)
At testforstudy. parsexmldom4j. updatexml (parsexmldom4j. Java: 81)
At testforstudy. parsexmldom4j. Main (parsexmldom4j. Java: 26)
Nested exception:
Java.net. unknownhostexception: c
At java.net. plainsocketimpl. Connect (plainsocketimpl. Java: 177)
At java.net. Socket. Connect (socket. Java: 524)
At java.net. Socket. Connect (socket. Java: 474)
At sun.net. networkclient. doconnect (networkclient. Java: 157)
At sun.net. networkclient. openserver (networkclient. Java: 118)
At sun.net. FTP. ftpclient. openserver (ftpclient. Java: 488)
At sun.net. FTP. ftpclient. openserver (ftpclient. Java: 475)
At sun.net. www. Protocol. FTP. ftpurlconnection. Connect (ftpurlconnection. Java: 270)
At sun.net. www. Protocol. FTP. ftpurlconnection. getinputstream (ftpurlconnection. Java: 352)
At java.net. url. openstream (URL. Java: 1007)
At org. Apache. xerces. impl. xmlentitymanager. setupcurrententity (unknown source)
At org. Apache. xerces. impl. xmlentitymanager. startentity (unknown source)
At org. Apache. xerces. impl. xmlentitymanager. startdtdentity (unknown source)
At org. Apache. xerces. impl. xmldtdscannerimpl. setinputsource (unknown source)
At org. Apache. xerces. impl. xmldocumentscannerimpl $ dtddispatcher. Dispatch (unknown source)
At org. Apache. xerces. impl. xmldocumentfragmentscannerimpl. scandocument (unknown source)
At org. Apache. xerces. parsers. xml11configuration. parse (unknown source)
At org. Apache. xerces. parsers. dtdconfiguration. parse (unknown source)
At org. Apache. xerces. parsers. xmlparser. parse (unknown source)
At org. Apache. xerces. parsers. abstractsaxparser. parse (unknown source)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 302)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 201)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 190)
At testforstudy. parsexmldom4j. updatexml (parsexmldom4j. Java: 81)
At testforstudy. parsexmldom4j. Main (parsexmldom4j. Java: 26)
Nested exception: java.net. unknownhostexception: c
At java.net. plainsocketimpl. Connect (plainsocketimpl. Java: 177)
At java.net. Socket. Connect (socket. Java: 524)
At java.net. Socket. Connect (socket. Java: 474)
At sun.net. networkclient. doconnect (networkclient. Java: 157)
At sun.net. networkclient. openserver (networkclient. Java: 118)
At sun.net. FTP. ftpclient. openserver (ftpclient. Java: 488)
At sun.net. FTP. ftpclient. openserver (ftpclient. Java: 475)
At sun.net. www. Protocol. FTP. ftpurlconnection. Connect (ftpurlconnection. Java: 270)
At sun.net. www. Protocol. FTP. ftpurlconnection. getinputstream (ftpurlconnection. Java: 352)
At java.net. url. openstream (URL. Java: 1007)
At org. Apache. xerces. impl. xmlentitymanager. setupcurrententity (unknown source)
At org. Apache. xerces. impl. xmlentitymanager. startentity (unknown source)
At org. Apache. xerces. impl. xmlentitymanager. startdtdentity (unknown source)
At org. Apache. xerces. impl. xmldtdscannerimpl. setinputsource (unknown source)
At org. Apache. xerces. impl. xmldocumentscannerimpl $ dtddispatcher. Dispatch (unknown source)
At org. Apache. xerces. impl. xmldocumentfragmentscannerimpl. scandocument (unknown source)
At org. Apache. xerces. parsers. xml11configuration. parse (unknown source)
At org. Apache. xerces. parsers. dtdconfiguration. parse (unknown source)
At org. Apache. xerces. parsers. xmlparser. parse (unknown source)
At org. Apache. xerces. parsers. abstractsaxparser. parse (unknown source)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 302)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 201)
At org. dom4j. Io. saxreader. Read (saxreader. Java: 190)
At testforstudy. parsexmldom4j. updatexml (parsexmldom4j. Java: 81)
At testforstudy. parsexmldom4j. Main (parsexmldom4j. Java: 26)