Git插件push时报异常java.util.NoSuchElementException

java.lang.RuntimeException: java.util.NoSuchElementException
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
 at java.net.HttpURLConnection.getResponseCode(Unknown Source)
 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
 at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:167)
 at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:430)
 at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:366)
 at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130)
 at org.eclipse.jgit.transport.Transport.push(Transport.java:1127)
 at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:153)
 at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:226)
 at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(PushOperationUI.java:145)
 at org.eclipse.egit.ui.internal.push.PushOperationUI$1.run(PushOperationUI.java:202)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.util.NoSuchElementException
 at java.util.StringTokenizer.nextToken(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)
 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
 ... 12 more

 

解决办法:检查Eclipse网络连接,去掉连接代理

你可能感兴趣的:(Git插件push时报异常java.util.NoSuchElementException)