java - WstxIOException "Invalid UTF-8 start byte" while downloading files using TFS SDK -
i use tfs sdk java , randomly exception while downloading files server:
com.ctc.wstx.exc.wstxioexception: invalid utf-8 start byte 0xab (at char #6473861, byte #6473740)
has faced before? ideas?
the full stacktrace below:
com.ctc.wstx.exc.wstxioexception: invalid utf-8 start byte 0xab (at char #6473861, byte #6473740)
@ com.ctc.wstx.sr.streamscanner.constructfromioe(streamscanner.java:599)
@ com.ctc.wstx.sr.streamscanner.loadmore(streamscanner.java:967)
@ com.ctc.wstx.sr.streamscanner.loadmore(streamscanner.java:1006)
@ com.ctc.wstx.sr.streamscanner.getnextchar(streamscanner.java:758)
@ com.ctc.wstx.sr.basicstreamreader.parsenormalizedattrvalue(basicstreamreader.java:1862)
@ com.ctc.wstx.sr.basicstreamreader.handlensattrs(basicstreamreader.java:3013)
@ com.ctc.wstx.sr.basicstreamreader.handlestartelem (basicstreamreader.java:2910)
@ com.ctc.wstx.sr.basicstreamreader.nextfromtree(basicstreamreader.java:2786)
@ com.ctc.wstx.sr.basicstreamreader.next(basicstreamreader.java:1054)
@ com.ctc.wstx.sr.basicstreamreader.nexttag(basicstreamreader.java:1129)
@ ms.tfs.versioncontrol.clientservices._03._itemset.readfromelement(_itemset.java:138)
@ ms.tfs.versioncontrol.clientservices._03._repository4soap_queryitemsresponse.readfromelement(_repository4soap_queryitemsresponse.java:98)
@ ms.tfs.versioncontrol.clientservices._03._repository4soap12service$44.readsoapresponse(_repository4soap12service.java:1214)
@ com.microsoft.tfs.core.ws.runtime.client.soapservice.executesoaprequestinternal(soapservice.java:668)
... 28 more
caused by: java.io.charconversionexception: invalid utf-8 start byte 0xab (at char #6473861, byte #6473740)
@ com.ctc.wstx.io.utf8reader.reportinvalidinitial(utf8reader.java:303)
@ com.ctc.wstx.io.utf8reader.read(utf8reader.java:189)
@ com.ctc.wstx.io.readersource.readinto(readersource.java:84)
@ com.ctc.wstx.io.branchingreadersource.readinto(branchingreadersource.java:55)
@ com.ctc.wstx.sr.streamscanner.loadmore(streamscanner.java:961)
... 40 more
the source code:
private void overwritechangedfiles(@notnull versioncontrolclient vc, @notnull workspace workspace, @notnull versionspec version, @notnull string localpath) { workingfolder workingfolder = workspace.getexactmappingforlocalpath(localpath); itemset itemset = vc.getitems(m_path, version, recursiontype.full, deletedstate.non_deleted, itemtype.file); // line causes exception
Comments
Post a Comment