Community
Participate
Working Groups
Build Identifier: I20100129-1300 When exporting a simple feature-based RCP product using the Product Export Wizard, launching the product for the first time will yield an exception in the .log file. The problem only occurs when the option "Generate metadata repository" is checked. Note: This bug also affects 3.5.1 and 3.5.2, please see http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg35699.html Reproducible: Always Steps to Reproduce: 1. Import the attached projects 2. Run product export wizard on rcp.test/rcp.product 3. Be sure to check "Generate metadata repository" 4. Launch exported RCP app and inspect .log file
Created attachment 160603 [details] Sample projects for reproducing this bug
Created attachment 160607 [details] Log file
This looks similar to bug 304340
(In reply to comment #3) > This looks similar to bug 304340 Indeed, it is the very same error message. It should be noted though, that in my scenario no DS is used. It's just a very simple RCP plugin being referenced by a feature that in turn refers to the org.eclipse.rcp feature.
This is the same as bug 304340 The config.ini does not seem right in this case. The generated config.ini has this ... osgi.bundles=reference\:file\:org.eclipse.equinox.ds_1.2.0.v20100215.jar@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100123-1019.jar@1\:start Seems like it should only contain simpleconfigurator and not ds. If I remove ds from the osgi.bundles property then it works with no errors. I also find it strange that the start-level for ds is being set to 1. I thought the CU for ds was to set this to start-level 2?
*** Bug 304340 has been marked as a duplicate of this bug. ***
Default start levels are generated in build. The start level of 1 came from the original patch from Chris on bug 260315. I will change the default to 2 (that is also what the SDK uses). Work around is to set all your start levels explicitly in the .product file. (You need to do them all since defaults don't happen if any are set).
I updated pde/build to set 2 as the default level for ds
I'm still seeing this bug as of 3.6 M6 (I20100312-1448)
(In reply to comment #9) > I'm still seeing this bug as of 3.6 M6 (I20100312-1448) The generated config ini still reads osgi.bundles=reference\:file\:org.eclipse.equinox.ds_1.2.0.v20100301.jar@1\:start,reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100304.jar@1\:start
Sorry, I missed one case. DS should now be at 2. Fix is in next IBuild I20100323
*** Bug 308142 has been marked as a duplicate of this bug. ***
*** Bug 310472 has been marked as a duplicate of this bug. ***
*** Bug 276950 has been marked as a duplicate of this bug. ***
The documentation for 3.5.1 (Build id: M20090917-0800), topic "Configuring p2 Products" says the Start Level should be 1 (how I happened to be using 1 and hence getting the bug). This is just a note to ask you to check that the documentation has been changed as well as the implementation. Thanks.