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

Bug 344082

Summary: [Java Discovery] IllegalArgumentException in launch configurations
Product: [Modeling] MoDisco Reporter: Fabien Giquel <fabien.giquel>
Component: TechnologiesAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: fabien.giquel: indigo+
Target Milestone: 0.9.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Stack Trace
none
Stack Trace alternative none

Description Fabien Giquel CLA 2011-04-28 03:49:10 EDT
Two kind of IllegalArgumentException are thrown with following scenario :

- opening launch configrations window (run as...)
- creating on discovery launch config with any discoverer/source
- creating a second discovery launch config with oem.discover.java.project discoverer and one valid source
- switching to the second launch config to the first.

The problem comes from getInitialValue service invocation for ElementsToAnalyze.

I attach two stacktrace.
Comment 1 Fabien Giquel CLA 2011-04-28 03:51:15 EDT
Created attachment 194238 [details]
Stack Trace
Comment 2 Fabien Giquel CLA 2011-04-28 03:51:36 EDT
Created attachment 194239 [details]
Stack Trace alternative
Comment 3 Fabien Giquel CLA 2011-04-28 04:13:30 EDT
Problem is coming from abnormal discovery source change event when switching from one launch config to another.
Comment 4 Fabien Giquel CLA 2011-04-28 05:25:48 EDT
A fix is commited into SVN (revision 4361)
Comment 5 Hugo Bruneliere CLA 2011-08-18 08:17:54 EDT
Bug solved.