NEW DATE! Bugzilla will undergo maintenance 2024-03-28 18h00 CET. Bugzilla will be placed in read-only mode at that time.

Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 24657 - Update test R2, Connection time out
Summary: Update test R2, Connection time out
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0.2   Edit
Hardware: Sun Solaris
: P3 normal (vote)
Target Milestone: 2.0.2   Edit
Assignee: Christophe Elek CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 17787 20668 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-10 14:16 EDT by Konrad Kolosowski CLA
Modified: 2002-10-28 11:51 EST (History)
1 user (show)

See Also:


Attachments
timeout error dialog.gif (5.31 KB, image/gif)
2002-10-10 14:17 EDT, Konrad Kolosowski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Kolosowski CLA 2002-10-10 14:16:51 EDT
Installation progress for installing RoundLetters Extension pack 1.0.0 froze 
for over a minute, and later an error got displayed.
Screenshot attached.

After dismissing the error dialog, I clicked Finish on the intall location 
dialog and was presented with another dialog that 
file /var/temp...../eclipse15359.temp is not a valid jar file.

After cancelling and repeating install by, choosing install in the update view 
and following wizard the same error about the same eclipse13359.temp file is 
presented.
Comment 1 Konrad Kolosowski CLA 2002-10-10 14:17:27 EDT
Created attachment 2156 [details]
timeout error dialog.gif
Comment 2 Christophe Elek CLA 2002-10-10 15:00:22 EDT
we need to only map fully downloaded jar

alternativley we need to check if the JAR has changed on the server
investigate getTimeStamp() getLastModified() getContentLenght() from
URLConnection() class

If 'lastModified' on server is the same as the one in temp, but content length
is not, we should make assumption that the local copy is currupted.
Alternatively, we delete the local copy if download is not successful.

investigate for 2.0.2
Comment 3 Dejan Glozic CLA 2002-10-11 14:19:14 EDT
Will do for 2.0.2
Comment 4 Christophe Elek CLA 2002-10-14 10:31:49 EDT
refactored the methods Utilities.createLocalFile() and JarContentReference.unpack()

Utilities now contains 2 methods
createLocalFile() actually creates the file but does not map it
mapLocalFile() maps the local file to the key
unpack now calls createLocalFile and mapLocalFile when the download has been
successfull

So, when this issue happens, restarting the install will download the JAR again
instead of attempting to use the one downloaded.
Comment 5 Konrad Kolosowski CLA 2002-10-14 22:01:44 EDT
Great.

What about the first error (Connection time out)?  I thought the files were 
available on my local machine, so I would not expect time out?
Comment 6 Christophe Elek CLA 2002-10-15 05:54:56 EDT
The error is a valid error returned by the server when opening the stream.
Anything could have happen as I seem to remember the AIX/HP-UX and other are 
not physically in the same lab as the site. A firewall or a router could have 
caused this
Comment 7 Christophe Elek CLA 2002-10-28 11:43:23 EST
*** Bug 20668 has been marked as a duplicate of this bug. ***
Comment 8 Christophe Elek CLA 2002-10-28 11:51:51 EST
*** Bug 17787 has been marked as a duplicate of this bug. ***