Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335670 - Error on product export when checking "Generate metadata repository"
Summary: Error on product export when checking "Generate metadata repository"
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 05:16 EST by Marco Descher CLA
Modified: 2018-12-03 09:12 EST (History)
3 users (show)

See Also:


Attachments
test.mail project to reproduce the error (109.19 KB, application/x-zip-compressed)
2013-01-17 10:09 EST, Christoph Keimel CLA
no flags Details
Target definition project to reproduce the error (27.99 MB, application/x-zip-compressed)
2013-01-17 10:18 EST, Christoph Keimel CLA
no flags Details
Target definition project to reproduce the error (reduced) (19.66 MB, application/x-zip-compressed)
2013-01-17 10:41 EST, Christoph Keimel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Descher CLA 2011-01-28 05:16:49 EST
Build Identifier: 20100917-0705

Exporting the product fails if "Generate metadata repository" is selected.

The output given by Eclipse is as follows:
/Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:90: The following error occurred while executing this line:
/Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line:
/Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:237: A problem occured while invoking the director.
The following error occurred while executing this line:
/Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line:
/Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:237: A problem occured while invoking the director.

Log output is:
!MESSAGE /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:90: The following error occurred while executing this line:
/Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line:
/Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:236: A problem occured while invoking the director.
!STACK 0
/Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:90: The following error occurred while executing this line:
/Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line:
/Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:236: A problem occured while invoking the director.
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
	at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:424)
	at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:287)
	at org.eclipse.pde.internal.core.exports.ProductExportOperation.run(ProductExportOperation.java:106)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: /Users/marco/Development/workspace-desktopAT/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/package.org.eclipse.pde.container.feature.macosx.cocoa.x86_64.xml:605: The following error occurred while executing this line:
/Users/marco/Development/eclipse-rcp-helios-SR1/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:236: A problem occured while invoking the director.
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
	at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	... 25 more


Reproducible: Always

Steps to Reproduce:
1. Export a product without "Generating metadata repository" -> Works
2. Do the same WITH "Generating metadata repository" -> FAILS
Comment 1 Christoph Keimel CLA 2013-01-17 09:09:24 EST
I am having the same problem, although the error output is different. I have stumbled onto this, because we would like to add p2 update support to a rcp application. 

The build works fine, when "Generate metadata repository" is not selected. If it is selected, the build fails with this error:

 Cannot complete the install because one or more required items could not be found.
 Software being installed: Kompetenzmanager 1.8.0 (de.emsw.gosa.product.kompman.export 1.8.0)
 Missing requirement: toolingorg.eclipse.core.runtime 1.8.0 requires 'bundle org.eclipse.core.runtime [3.8.0.v20120521-2346]' but it could not be found
 Cannot satisfy dependency:

This is strange, since the "repository" folder was created as expected. The missing plugin (org.eclipse.core.runtime_3.8.0.v20120521-2346.jar) is in the repository/plugins folder.

In the export folder, only the p2 folder is generated. After this the build fails.

Version: Juno Service Release 1
Build id: 20121004-1855
Comment 2 Christoph Keimel CLA 2013-01-17 10:08:27 EST
For further testing a used the RCP Mail template project and a target definition to test the error (attachments will follow). 

One thing that I noticed is that, if I use "Running Platform" as the Target Platform everything works fine. As soon as I change to a custom target definition (which only uses local directories), the export fails.

Using the mail.test project, the error message is slightly different than in my earlier comment, but I have the feeling that the issue is connected:

 An error occurred while collecting items to be installed
 session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
 Problems downloading artifact: osgi.bundle,org.eclipse.equinox.launcher.win32.win32.x86,1.1.200.v20120522-1813.

As described earlier, the missing plugin is available and has already been exported to the repository/plugins directory.

To reproduce:
- Import the TestTarget project 
- Activate the error.target target platform
- Import the test.mail project
- Open mail.product and choose the "Eclipse Product export wizard"
- Activate "Generate metadata repository"
- Finish

If the working.target is used (which uses the active Platform) everything works fine.
Comment 3 Christoph Keimel CLA 2013-01-17 10:09:17 EST
Created attachment 225771 [details]
test.mail project to reproduce the error
Comment 4 Christoph Keimel CLA 2013-01-17 10:18:41 EST
Created attachment 225772 [details]
Target definition project to reproduce the error
Comment 5 Christoph Keimel CLA 2013-01-17 10:41:44 EST
Created attachment 225773 [details]
Target definition project to reproduce the error (reduced)
Comment 6 Lars Vogel CLA 2018-12-03 09:10:50 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 7 Lars Vogel CLA 2018-12-03 09:12:05 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.