Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Install from updatesite hangs under Java 7
Install from updatesite hangs under Java 7 [message #759918] Wed, 30 November 2011 10:04 Go to next message
Bernhard Lutzmann is currently offline Bernhard Lutzmann
Messages: 9
Registered: March 2010
Junior Member
We created a local p2 repository with the Eclipse b3 aggregator.

When trying to access the local p2 repository via "Install new software..." it hangs:
"Fetching children of p2: (10%)"

We are using Eclipse 3.7 SR1 with Java 7.

Now the interesting thing: if starting Eclipse with Java 6 it does not hang.

Any hints how to get it work with Java 7?

Thanks for your help,
Bernhard
Re: Install from updatesite hangs under Java 7 [message #761449 is a reply to message #759918] Tue, 06 December 2011 08:47 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Any errors in your log? <workspace>/.metadata/.log

There's also a problem with p2 and the new timSort, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=352089, although that was fixed in 3.7.1.

Try the legacy merge sort workaround in https://bugs.eclipse.org/bugs/show_bug.cgi?id=317785#c22

Does that allow your update to proceed when running on java 7?

PW


Re: Install from updatesite hangs under Java 7 [message #761508 is a reply to message #761449] Tue, 06 December 2011 09:59 Go to previous messageGo to next message
Bernhard Lutzmann is currently offline Bernhard Lutzmann
Messages: 9
Registered: March 2010
Junior Member
Thanks Paul, the legacy merge sort workaround works here.
Re: Install from updatesite hangs under Java 7 [message #761509 is a reply to message #761508] Tue, 06 December 2011 10:00 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Are there any errors in your error log? The bug I mentioned was fixed in 3.7.1, which implies that there is another p2 (or its dependencies) bug still in 3.7.1 that it would be nice to find.

PW



Re: Install from updatesite hangs under Java 7 [message #761513 is a reply to message #761509] Tue, 06 December 2011 10:10 Go to previous messageGo to next message
Bernhard Lutzmann is currently offline Bernhard Lutzmann
Messages: 9
Registered: March 2010
Junior Member
The following error occurs in the logfile:

==========
!ENTRY org.eclipse.ecf.provider.filetransfer 4 0 2011-12-06 16:07:59.483
!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)

!ENTRY org.eclipse.equinox.p2.ui 4 0 2011-12-06 16:07:59.498
!MESSAGE Unable to read repository at http://192.168.1.54/repo/content.jar.
!STACK 1
org.eclipse.equinox.p2.core.ProvisionException: Unable to read repository at http://192.168.1.54/repo/content.jar.
at org.eclipse.equinox.internal.p2.repository.CacheManager.updateCache(CacheManager.java:359)
at org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:205)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:66)
at org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:88)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at org.eclipse.equinox.p2.ui.ProvisioningUI.loadMetadataRepository(ProvisioningUI.java:402)
at org.eclipse.equinox.internal.p2.ui.model.MetadataRepositoryElement.getMetadataRepository(MetadataRepositoryElement.java:120)
at org.eclipse.equinox.internal.p2.ui.model.MetadataRepositoryElement.fetchChildren(MetadataRepositoryElement.java:70)
at org.eclipse.equinox.internal.p2.ui.model.RemoteQueriedElement.fetchDeferredChildren(RemoteQueriedElement.java:34)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: 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.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:127)
at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:172)
at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:73)
... 1 more
!SUBENTRY 1 org.eclipse.equinox.p2.transport.ecf 4 1002 2011-12-06 16:07:59.499
!MESSAGE Unable to read repository at http://192.168.1.54/repo/content.jar.
!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.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:127)
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)
==========

Hope that helps.

Bernhard
Re: Install from updatesite hangs under Java 7 [message #761621 is a reply to message #761513] Tue, 06 December 2011 13:58 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Thanx, someone suggested it might be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=362741. See comment 6 for more links about the socket exception on java 7

PW


Previous Topic:Using P2 on RCP featured Plugin can't see Install/Update Menu
Next Topic:Error when updating RCP application feature.
Goto Forum:
  


Current Time: Thu Aug 28 11:35:23 EDT 2014

Powered by FUDForum. Page generated in 0.01993 seconds