Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363452

Summary: Creating a Faceted Project without Java facet fails
Product: z_Archived Reporter: Kaloyan Raev <kaloyan>
Component: LibraAssignee: Kaloyan Raev <kaloyan>
Status: RESOLVED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: normal    
Priority: P3 CC: Dimo.Stoilov
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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