Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324693 - [import] [plugin] File Not Found Exception importing binary plugins
Summary: [import] [plugin] File Not Found Exception importing binary plugins
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 15:58 EDT by Jeff McAffer CLA
Modified: 2019-09-09 02:33 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 Jeff McAffer CLA 2010-09-07 15:58:33 EDT
in 3.6.x (0902-1717 build)...

An error occurs when importing a plugin from disk. It appears that if there is a related source bundle then the problem happens.  reproduce as follows

1) download the Eclipse project test harness zip and unzip at some place on your drive. This gives you, amongst other things, the org.eclipse.test and org.eclipse.test.source folders (both version 3.3.0)

2) in your workspace use Import > Plugin development > plugins and fragments.  Indicate the location at which you unzip'd the test harness. click next.  Ensure you are importing the plugins as BINARY projects (first option)

3) On the plugin page Add the org.eclipse.test plugin to the list ot be imported.  Click OK/Finish.

4) notice the error below

Problems detected while importing plug-ins
/Users/jeff/Desktop/eclipse/plugins/org.eclipse.test.source_3.3.0 (No such file or directory)
/Users/jeff/Desktop/eclipse/plugins/org.eclipse.test.source_3.3.0 (No such file or directory)

If you look in the log you will see something like...

!ENTRY org.eclipse.pde.ui 4 0 2010-09-07 15:50:50.194
!MESSAGE Problems detected while importing plug-ins
!SUBENTRY 1 org.eclipse.pde.ui 4 0 2010-09-07 15:50:50.194
!MESSAGE /Users/jeff/Desktop/eclipse/plugins/org.eclipse.test.source_3.3.0 (No such file or directory)
!STACK 0
java.io.FileNotFoundException: /Users/jeff/Desktop/eclipse/plugins/org.eclipse.test.source_3.3.0 (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.eclipse.pde.internal.ui.wizards.imports.PluginImportHelper.copyArchive(PluginImportHelper.java:206)
	at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.importSourceArchives(PluginImportOperation.java:787)
	at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.importAsBinary(PluginImportOperation.java:380)
	at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.importPlugin(PluginImportOperation.java:342)
	at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.runInWorkspace(PluginImportOperation.java:147)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


5) looking on disk, the desired location does in fact exist.

There is a question as well as to why the import operation is looking at/for source bundles anyway since the workflow indicated BINARY projects not projects with source.
Comment 1 Curtis Windatt CLA 2010-09-07 16:51:00 EDT
PDE looks up the source bundles for a binary import to get schema files and source for the binary plug-in.  The source is not imported, but is attached to the plug-in container so source is available for debugging.

No idea what is going on here if the file exists but Java.IO says it doesn't.
Comment 2 Jeff McAffer CLA 2010-09-07 17:37:52 EDT
Makes sense (the looking for source bundles for schemas).  As for not finding the location one thing I did notice is that the test.source plugin does not show up in the list of bundles to import.  I assumed that that was some smart filtering on PDEs part.  I did happen to get the test harness build from 3.5.1 and import the bundles as projects from that.  When I went through that workflow the source bundle DID show up in the list and the import completed fine.  Thoughts:

- The more recent source bundles have the new funky source bundle layout (with automatedsrc dirs) and the have the Eclipse-BundleSource header whereas the old source bundles were just normal bundles with src dirs.

- I happened to notice that the test.source bundle is a folder (not a jar) but that is true in both the new and 3.5.1 builds.  (seems like a bug that that is so but its a different bug...)
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:15:40 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 4 Julian Honnen CLA 2019-09-09 02:33:29 EDT
Please remove the stalebug flag, if this issue is still relevant and can be reproduced on the latest release.