Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 222667 - Update Manager cannot consume packed feature jars
Summary: Update Manager cannot consume packed feature jars
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Update-Inbox CLA
QA Contact:
URL:
Whiteboard: obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-13 16:55 EDT by Martin Oberhuber CLA
Modified: 2012-07-24 10:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2008-03-13 16:55:31 EDT
Have an update site which includes
   features/foo.jar.pack.gz

Update manager cannot read this feature jar and fails without user-visible error -- the corresponding feature simply is not shown.

I think the problem is related to following backtrace, where UM should really first look for feature.jar.pack.gz, then for feature.jar.pack, then for feature.jar:

!ENTRY org.eclipse.update.core 1 0 2008-03-13 21:10:23.470
!MESSAGE An exception occured while downloading feature from "file:/D:/Download/devtools/Eclipse/ganymede/features/org.eclipse.jdt_3.4.0.v20080204-1800-7o7qEFDEFpPqiqYydmCVKgP.jar".
!STACK 0
java.io.FileNotFoundException: D:\Download\devtools\Eclipse\ganymede\features\org.eclipse.jdt_3.4.0.v20080204-1800-7o7qEFDEFpPqiqYydmCVKgP.jar (The system cannot find the file specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
	at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
	at java.net.URL.openStream(Unknown Source)
	at org.eclipse.update.internal.core.connection.FileResponse.getInputStream(FileResponse.java:28)
	at org.eclipse.update.core.ContentReference.getInputStream(ContentReference.java:149)
	at org.eclipse.update.core.FeatureContentProvider.asLocalReference(FeatureContentProvider.java:268)
	at org.eclipse.update.internal.core.FeaturePackagedContentProvider.getFeatureEntryArchiveReferences(FeaturePackagedContentProvider.java:157)
	at org.eclipse.update.internal.core.FeaturePackagedContentProvider.getFeatureManifestReference(FeaturePackagedContentProvider.java:83)
	at org.eclipse.update.internal.core.FeaturePackagedFactory.createFeature(FeaturePackagedFactory.java:39)
	at org.eclipse.update.core.Site.createFeature(Site.java:534)
	at org.eclipse.update.core.FeatureReference.createFeature(FeatureReference.java:122)
	at org.eclipse.update.core.FeatureReference.getFeature(FeatureReference.java:110)
	at org.eclipse.update.core.FeatureReference.getFeature(FeatureReference.java:97)
	at org.eclipse.update.internal.search.SiteSearchCategory$FeatureDownloader.run(SiteSearchCategory.java:222)
	at java.lang.Thread.run(Unknown Source)
Comment 1 John Arthorne CLA 2012-07-24 10:18:29 EDT
The Eclipse Update component is no longer under development, and no longer exists in the Eclipse Platform 4.x stream. If this problem still occurs in Eclipse Platform 4.2 or later, please enter a new bug report against Equinox p2.