Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363452 - Creating a Faceted Project without Java facet fails
Summary: Creating a Faceted Project without Java facet fails
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Libra (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard:
Keywords:
: 370937 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-10 05:57 EST by Kaloyan Raev CLA
Modified: 2022-02-24 11:24 EST (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 Kaloyan Raev CLA 2011-11-10 05:57:38 EST
This issue was originally reported in the Libra forums: http://www.eclipse.org/forums/index.php/mv/msg/261611/754999/

Steps to reproduce:
1. Call the New Faceted Project wizard. 
2. Select only the OSGi Bundle facet. Make sure the Java facet is not selected. 
3. Click Finish.

The creation of the new project fails with the following exception:

Java Model Exception: Java Model Status [q does not exist]
	at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:495)
	at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(JavaModelManager.java:2305)
	at org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo(JavaProject.java:1890)
	at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1940)
	at org.eclipse.jdt.internal.core.JavaProject.getAllPackageFragmentRoots(JavaProject.java:1413)
	at org.eclipse.jdt.internal.core.JavaProject.getAllPackageFragmentRoots(JavaProject.java:1408)
	at org.eclipse.libra.facet.OSGiBundleFacetInstallDelegate.getJavaSourceFolderPaths(OSGiBundleFacetInstallDelegate.java:329)
	at org.eclipse.libra.facet.OSGiBundleFacetInstallDelegate.getBundleClasspath(OSGiBundleFacetInstallDelegate.java:285)
	at org.eclipse.libra.facet.OSGiBundleFacetInstallDelegate.createBundleProjectDescription(OSGiBundleFacetInstallDelegate.java:134)
	at org.eclipse.libra.facet.OSGiBundleFacetInstallDelegate.doExecute(OSGiBundleFacetInstallDelegate.java:83)
..........
Comment 1 Kaloyan Raev CLA 2012-02-08 10:22:25 EST
*** Bug 370937 has been marked as a duplicate of this bug. ***
Comment 2 Kaloyan Raev CLA 2012-02-13 06:09:40 EST
Patch pushed to master and indigo branches: http://git.eclipse.org/c/libra/org.eclipse.libra.git/commit/?h=indigo&id=c883e1abe5178aff64f41ad11eebae06b08caf6e