This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 241295 - IllegalStateException on facet selection
Summary: IllegalStateException on facet selection
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 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 14:11 EDT by Kaloyan Raev CLA
Modified: 2008-08-04 10:31 EDT (History)
1 user (show)

See Also:


Attachments
exception (3.37 KB, text/plain)
2008-07-17 14:11 EDT, Kaloyan Raev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2008-07-17 14:11:26 EDT
Created attachment 107764 [details]
exception

build: M-3.0.1-20080717094056

I got IllegalStateException (see attached) when clicking on the facet version drop-down in the Project Facets property page. This happens on EJB, EJB Client and EAR project, but not on Web project (surprise!).
Comment 1 Konstantin Komissarchik CLA 2008-07-17 16:56:42 EDT
I am not seeing this and the stack trace is not enough to go on in this case. Are you targeting a runtime? Which one? What do you do before opening the facets selection dialog? Please describe the exact sequence of clicks after opening the dialog and leading up to the exception.
Comment 2 Konstantin Komissarchik CLA 2008-07-17 16:57:45 EDT
Also, please confirm that you are seeing this on Windows XP as indicated by the OS field.
Comment 3 Kaloyan Raev CLA 2008-07-18 02:59:22 EDT
Confirm for WinXP. 

I target Glassfish V2, but it also happens if I don't have a server runtime. 
The simplest path to reproduce:
1. Create an EAR project with no runtime. 
2. Right-click on the project > Properties > Project Facets.
3. Click on the drop-down of the EAR facet version. 
4. Error is logged. (Error Log)
Comment 4 Konstantin Komissarchik CLA 2008-07-21 13:44:53 EDT
Was able to reproduce. This only happens if you click on the version field of the first facet listed in the table before doing anything else. Subsequent clicks will not produce an exception. Clicking on any other facet first will not product an exception. Clicking on the facet name and then selecting the version field will also not produce an exception.
Comment 5 Konstantin Komissarchik CLA 2008-07-21 14:00:37 EDT
Released fix to 3.0.1 and HEAD.
Comment 6 Kaloyan Raev CLA 2008-08-04 10:31:14 EDT
Verified with wtp-sdk-M-3.0.1-20080731174940 and wtp-sdk-I-3.1-20080801151537.