Bug 176239 - ClassNotFoundException for ExportBuildListener when exporting plugin
Summary: ClassNotFoundException for ExportBuildListener when exporting plugin
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-02 15:49 EST by Nick Edgar CLA
Modified: 2019-09-06 16:06 EDT (History)
5 users (show)

See Also:


Attachments
Screen shot of the error dialog (16.07 KB, image/png)
2007-03-02 15:50 EST, Nick Edgar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2007-03-02 15:49:31 EST
3.3 M5

- exported a plugin via the plugin export wizard
- realized it was missing the plugin.xml file and icons folder (they apparently don't automatically get added to the build.properties file when the PDE tooling generates the plugin)
- fixed up the build.properties file and tried to re-export
- this time it failed with 4 ClassNotFoundExceptions for org.eclipse.pde.internal.core.ant.ExportBuildListener

These appeared in an error dialog.  Nothing in the log.
Comment 1 Nick Edgar CLA 2007-03-02 15:50:21 EST
Created attachment 60208 [details]
Screen shot of the error dialog
Comment 2 Nick Edgar CLA 2007-03-02 15:53:27 EST
This may be due to having run another workspace with -clean from the same install.
Comment 3 Nick Edgar CLA 2007-03-02 15:54:15 EST
I restarted and the problem went away.
Comment 4 Wassim Melhem CLA 2007-03-02 18:37:27 EST
the exception was thrown in the host workspace.  So the PDE plug-in was affected by, but is not responsible for the exception.

Looks like an ant classloader problem.
Comment 5 Darin Swanson CLA 2007-03-02 18:48:19 EST
This sounds suspiously like a problem we have seen every once in a while but have not been able to reproduce consistantly.

The JARs exploded into the ..LatestBuild\eclipse\configuration\org.eclipse.osgi\bundles\ space have appeared to go MIA...even when still physically present.

Have you had any reports similar to this Jeff?
Comment 6 Nick Edgar CLA 2007-03-07 14:18:17 EST
They likely went missing because I started another workspace from the same install with -clean.  Maybe the extra plugin resulted in jars going into different folders under ...\bundles than they were before.

If I look under there now, though, the only jar I see is launchingsupport.jar, containing classes in package org/eclipse/jdt/internal/launching/support/
So it doesn't seem to explain the case above.
Comment 7 Thomas Watson CLA 2007-03-12 11:11:05 EDT
Is it possible that ant is keeping a list of file paths to the extracted jars in one instance and reusing the file paths each time it creates a classloader?

Maybe something like this happens:
1) Workspace "X" is started and ant performs some operation.  While performing this operation ant finds the paths to several extracted library jars and creates a classloader.  This operation completes successfully.  Workspace "X" remains open.
2) Another workspace "Y" is started with -clean.  This clears all the extracted ant libraries used in workspace "X".
3) Workspace "X" tries to perform another ant operation.  Does ant at this point try to find the libraries again? or does it use the old paths from step 1?  If it uses the old paths from step one then I can see how this would happen because they got removed from the -clean operation.
Comment 8 Dani Megert CLA 2008-05-28 11:28:14 EDT
Just got that today using I20080527-2000. Export worked and when I did it again later in the same session it failed.
Comment 9 Natasha D'Silva CLA 2008-12-08 13:22:28 EST
This problem is also present using 3.4 build M20080911-1700.
Comment 10 Eclipse Webmaster CLA 2019-09-06 16:06:08 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.