This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 144884 - NPE in WebProjectUtils.getWebModules()
Summary: NPE in WebProjectUtils.getWebModules()
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL: http://statistics.netbeans.org/except...
Keywords:
: 145591 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-22 17:03 UTC by Tomas Hurka
Modified: 2009-01-13 14:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 96738


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2008-08-22 17:03:10 UTC
Build: NetBeans IDE Dev (Build 200808220201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Linux, 2.6.24-19-generic, amd64
User comments: Attempting to profile an enterprise project resulted in this exception.
STACKTRACE: (first 10 lines)
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.netbeans.modules.profiler.categories.CategoryBuilder.processCategories(CategoryBuilder.java:173)
        at org.netbeans.modules.profiler.categories.CategoryBuilder.processCategories(CategoryBuilder.java:205)
        at org.netbeans.modules.profiler.categories.CategoryBuilder.processCategories(CategoryBuilder.java:105)
        at org.netbeans.modules.profiler.categories.CategoryBuilder.getRootCategory(CategoryBuilder.java:92)
        at org.netbeans.modules.profiler.categories.Categorization.getRoot(Categorization.java:132)
        at org.netbeans.modules.profiler.categories.Categorization.getMappings(Categorization.java:149)
Comment 1 Tomas Hurka 2008-08-22 17:05:25 UTC
Steps to reproduce:
1) Start IDE
2) Create LotteryAnnotation sample project
3) Profile Main Project, CPU, default settings
4) you will get NPE
5) subsequent invocation of Profile Main Project are fine.
Comment 2 Tomas Hurka 2008-08-22 17:10:49 UTC
NetBeansProfiler.getDefaultNB().getProfiledProject() returns null in this situation - the profiled project is not set yet.

Fixed in profiler-main.
changeset:   97305:33fd5bb5ef83
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Aug 22 18:10:12 2008 +0200
summary:     bugfix #144884, use project passed to constructor; NetBeansProfiler.getProfiledProject() is not set yet.

Comment 3 Jiri Sedlacek 2008-08-29 17:45:24 UTC
*** Issue 145591 has been marked as a duplicate of this issue. ***
Comment 4 Quality Engineering 2008-09-01 17:32:25 UTC
Integrated into 'main-golden', available in build *200809011401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/33fd5bb5ef83
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #144884, use project passed to constructor; NetBeansProfiler.getProfiledProject() is not set yet.
Comment 5 mariadavydova 2009-01-13 14:55:14 UTC
verified in Build 200812170242