Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362744

Summary: Cannot do any software installs using jdk1.7.0_01
Product: [Eclipse Project] Equinox Reporter: Matt <mattinger>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3 CC: kane.mx, kane.zhu, pascal, remy.suen
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Matt CLA 2011-11-02 21:58:06 EDT
Build Identifier: 20110916-0149

 If i start eclipse using jdk1.7.0_01, i cannot do any software installs.  All of the http connections either through the market, or a direct update site will timeout.

However, everything works right if I then change the eclipse.ini to change the vm to JDK 1.6:

-vm
C:\Java\jdk1.6.0_22\bin\javaw.exe


Reproducible: Always

Steps to Reproduce:
1. Set JDK 1.7.0_1 to be JAVA_HOME environment variable
2. Start Eclipse
3. Attempt to check for updates to eclipse
4. Wait for timeout
Comment 1 Remy Suen CLA 2011-11-02 22:03:27 EDT
Check your logs for errors.

And as the current component is named, please open bugs with the provisioning system against Equinox p2.
Comment 2 Matt CLA 2011-11-02 23:13:00 EDT
Getting alot of this kind of error:

!ENTRY org.eclipse.ecf.provider.filetransfer 4 0 2011-11-02 21:39:19.657
!MESSAGE org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.provider.filetransfer;code=4;message=hardClose;severity4;exception=java.net.SocketTimeoutException: Read timed out;children=[]]
!STACK 0
java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read1(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170)
	at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:184)
	at org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:369)
	at org.apache.commons.httpclient.ContentLengthInputStream.close(ContentLengthInputStream.java:118)
	at java.io.FilterInputStream.close(Unknown Source)
	at org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:194)
	at org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:158)
	at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:185)
	at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:73)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 3 Matt CLA 2011-11-02 23:13:36 EDT
!SUBENTRY 1 org.eclipse.equinox.p2.transport.ecf 4 1002 2011-11-02 00:05:47.415
!MESSAGE Unable to read repository at http://subclipse.tigris.org/update_1.8.x/plugins/org.tigris.subversion.subclipse.ui_1.8.2.jar.
!STACK 0
java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read1(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:182)
	at java.io.FilterInputStream.read(Unknown Source)
	at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108)
	at java.util.zip.InflaterInputStream.fill(Unknown Source)
	at java.util.zip.InflaterInputStream.read(Unknown Source)
	at java.util.zip.GZIPInputStream.read(Unknown Source)
	at java.io.FilterInputStream.read(Unknown Source)
	at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:172)
	at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:73)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SESSION 2011-11-02 21:26:37.661 -----------------------------------------------
eclipse.buildId=M20110909-1335
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
Comment 4 Meng Xin Zhu CLA 2011-11-03 01:53:03 EDT
It's caused by unstable network connection.

If you can try to use Juno(3.8 M2 or later) with below argument[1] to increase the number of p2 retrying when socket timeout/reset happens.


[1] -Dorg.eclipse.equinox.p2.transport.ecf.retry=5
Comment 5 Pascal Rapicault CLA 2014-04-08 10:15:54 EDT
Missing details.