Community
Participate
Working Groups
When creating some Discovery Launch Config, and selecting oem.java.discover.fromProject, and opening ELEMENTS_TO_SERIALIZE widget without providing an input project, there are two thrown exceptions : - Illegal parameter initializer for ELEMENTS_TO_ANALYZE - IllegalArgumentException: Path for project must have only one segment See stackTrace for details.
Created attachment 193034 [details] stack trace
Fixed in revision 4297.
I have updated the modifications but still have the exceptions. More precisions about use case : 1 - going "Run Configurations..." 2 - creating conf Discoverer 3 - choosing in combo the discoverer "oem.java.discover.project" --> immediatly two new entries in log error --> if open widget "Elemnts_to_analyse", another exceptions in log error
I committed a new fix in revision 4301. There was a problem when the source field was empty : it resulted in the workspace root to be returned, which doesn't have the expected type. So, I added a cell editor and dialog that deal specifically with IProjects.
Hi Nicolas, i tested the fix. It works for "oem.java.discover.project" but i still have the exception for "oem.java.discover.javaProject". I had a look at the fix in "JavaElementsToAnalyzeComposite" and understood that the problem should be that a change source event has been sent when choosing "oem.java.discover.javaProject", and so one ElementsToAnalyze instance has been created. Moreover I think that "JavaElementsToAnalyzeComposite" class should not deduce, from one "ElementsToAnalyze" null value, that the discovery source is still null. So "You must first select a Java project as source." message should be replaced with some neutral "No Java elements to analyze" message.
(In reply to comment #5) > I still have the exception for "oem.java.discover.javaProject". Fixed in revision 4326 by never creating an instance of ElementsToAnalyze for a null source. I also changed the error message in the dialog box.
Bug solved.