This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 209626 - Cannot create project added to an EAR
Summary: Cannot create project added to an EAR
Status: CLOSED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Chuck Bridgham CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-13 08:01 EST by Kaloyan Raev CLA
Modified: 2008-05-29 12:54 EDT (History)
1 user (show)

See Also:


Attachments
Add a null check for the fpjwc's project name (1.34 KB, patch)
2007-11-14 15:08 EST, Carl Anderson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2007-11-13 08:01:15 EST
One more scenario that fails creating a Java EE project.

Prerequisites:
1. EAR project in workspace.

Steps to reproduce (exactly this order): 
1. Open a project creation wizard (Web, EJB, etc)
2. Check the "Add project to an EAR". 
3. Type something in the "Project name" field. 

A NullPointerException is thrown on this step: 

java.lang.NullPointerException
	at org.eclipse.jst.j2ee.project.facet.J2EEModuleFacetInstallDataModelProvider.validate(J2EEModuleFacetInstallDataModelProvider.java:207)
	at org.eclipse.jst.j2ee.web.project.facet.WebFacetInstallDataModelProvider.validate(WebFacetInstallDataModelProvider.java:129)


If you now try to finish the wizard, another NPE is thrown

java.lang.RuntimeException: java.lang.NullPointerException
	at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:344)
	at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:298)
Comment 1 Chuck Bridgham CLA 2007-11-14 14:10:51 EST
I have verified this problem - and raising to critical... need a repin for this if possible...   looking at code currently.
Comment 2 Carl Anderson CLA 2007-11-14 15:08:34 EST
Created attachment 82901 [details]
Add a null check for the fpjwc's project name

Once the first NPE is hit, a lot of updating that needs to happen doesn't happen.  So, fixing the first NPE fixes the rest.
Comment 3 Kaloyan Raev CLA 2007-11-15 08:46:19 EST
This issue was resolved by Carl. 
Comment 4 Kaloyan Raev CLA 2007-11-15 08:46:39 EST
Verified with the S-3.0M3-20071114232332 build.
Comment 5 Kaloyan Raev CLA 2008-05-29 12:54:31 EDT
Closing