UnmarshalException
Opened this issue · 0 comments
Deleted user commented
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; systemId: file:/C:/Users/Vladislavs/AppData/Roaming/.ensemplix/client4851349123629125763.zip.tmp; lineNumber: 1; columnNumber: 1; Premature end of file.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at com.zhan_dui.download.DownloadMission.resumeMission(DownloadMission.java:312)
at com.zhan_dui.download.DownloadMission.startMission(DownloadMission.java:339)
at com.zhan_dui.download.DownloadManager.start(DownloadManager.java:64)
at ru.ensemplix.updater.ClientUpdater.download(ClientUpdater.java:70)
at ru.ensemplix.updater.ClientUpdater.<init>(ClientUpdater.java:37)
at ru.ensemplix.gui.Launcher.<init>(Launcher.java:90)
at ru.ensemplix.gui.Launcher.main(Launcher.java:31)
Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/Vladislavs/AppData/Roaming/.ensemplix/client4851349123629125763.zip.tmp; lineNumber: 1; columnNumber: 1; Premature end of file.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(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)
... 13 more
DownloadManager downloadManager = DownloadManager.getInstance();
String url = "http://files.ensemplix.ru/client/client.zip";
File zip = File.createTempFile("client", ".zip", targetDir);
DownloadMission mission = new DownloadMission(url,
targetDir.getAbsolutePath(), zip.getName());
downloadManager.addMission(mission);
totalDownload = mission.getFileSize();
onePercent = (double) (totalDownload / 100);
downloadManager.start();