cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 158395 - RootMethod Selector fails for maven based projects
: RootMethod Selector fails for maven based projects
Status: VERIFIED FIXED
: profiler
Base
: Dev
: All All
: P2 (vote)
: 6.7
Assigned To:
:
:
: MAVEN
:
:
:
  Show dependency treegraph
 
Reported: 2009-02-11 14:09 by
Modified: 2009-06-03 15:14 (History)
Issue Type: DEFECT
:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-02-11 14:09:42
Steps to reproduce:
1. Create/open a project with "jar" packaging.
2. Select "Profile" action on that project
3. Choose "Part of application", click "define" and "Add From Project..."

The result is the following exception:

ava.lang.IllegalArgumentException: setSelectedIndex: 0 out of bounds
    at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:601)
    at
org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.refreshBuilderList(ProjectSelectRootMethodsPanel.java:361)
    at
org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.access$000(ProjectSelectRootMethodsPanel.java:90)
    at
org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel$1.propertyChange(ProjectSelectRootMethodsPanel.java:154)
    at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347)
    at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    at java.awt.Component.firePropertyChange(Component.java:7961)
    at
org.netbeans.modules.profiler.selector.ui.RootSelectorTree.setContext(RootSelectorTree.java:123)
    at
org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel$2.run(ProjectSelectRootMethodsPanel.java:164)
    at
org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.updateSelector(ProjectSelectRootMethodsPanel.java:383)
    at
org.netbeans.modules.profiler.ui.panels.ProjectSelectRootMethodsPanel.getRootMethods(ProjectSelectRootMethodsPanel.java:161)
    at
org.netbeans.modules.profiler.ui.panels.RootMethodsPanel$1.run(RootMethodsPanel.java:153)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
------- Comment #1 From 2009-02-12 12:53:06 -------
Resolving this issue required a bit bigger overhaul of the profiling support
infrastructure.

Originally, the root methods, marker methods and categorization relied on the
fact that there was one project type per
application type (read - j2se, web app, ejb, ear, etc.). This is not true for
maven based projects. There is only one
project type (maven) and the application type is derived from the maven
packaging.

Fixed in http://hg.netbeans.org/profiler-main/rev/f9564966572e
------- Comment #2 From 2009-02-13 21:48:52 -------
Integrated into 'main-golden', will be available in build *200902131548* on
http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f9564966572e
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #158395 - adjusting the profiling support infrastructure to the fact that
instead of various project types there is only one project type for maven - but
exposing different functionality depending on the packaging type
------- Comment #3 From 2009-06-03 15:14:01 -------
marking verified