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 162652 - Transition between maven groups hangs up IDE
Summary: Transition between maven groups hangs up IDE
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-15 00:20 UTC by mjreged
Modified: 2009-06-09 14:35 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
During group switching snapshot 1 (130.16 KB, application/octet-stream)
2009-04-15 00:21 UTC, mjreged
Details
another snapshot (75.00 KB, application/octet-stream)
2009-04-15 00:22 UTC, mjreged
Details
Group is a parent Pom with 13 modules- jars, wars, ears. (41.58 KB, image/png)
2009-04-15 14:30 UTC, mjreged
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjreged 2009-04-15 00:20:31 UTC
Running NB6.7 200904131401
I have two different branches of a project. I created 2 Groups and switched between the two.  The IDE hang for a long 
period of time about 10 min. I was able to capture some Hot Spots and call tree. I will attach them below.
I am not sure if it's maven related, but i figure i create the issue here since i am working with maven projects.
Comment 1 mjreged 2009-04-15 00:21:48 UTC
Created attachment 80088 [details]
During group switching snapshot 1
Comment 2 mjreged 2009-04-15 00:22:26 UTC
Created attachment 80089 [details]
another snapshot
Comment 3 Milos Kleint 2009-04-15 07:21:02 UTC
what kind of groups are these? folder-based, subproject-based or based on open projects?

there's a lot of time spent in filesystem operations. If your group is folder based, can you give an estimate on the
number of subfolders (recursively) in the group folder?

jtulach: also Feature on Demand is involved and the project loading via FoD takes some time.. often the FS activities
are triggered by FoD, please evaluate
Comment 4 Jiri Skrivanek 2009-04-15 07:59:01 UTC
I don't think Filesystem operations can take minutes. Only if sources are on network drives. Suspicious is 
org.netbeans.modules.maven.jaxws.JaxWsOpenHook$WebservicesChangeListener.updateJaxWs() hotspot in the
maven-switching-groups1.nps snapshot.
Comment 5 Milos Kleint 2009-04-15 08:08:49 UTC
updateJaxWs() is afaik only waiting for the CP scanning to finish (to perform it's own task). #162635 is related to that..
Comment 6 Jaroslav Tulach 2009-04-15 13:31:10 UTC
I am sure this is not the root cause of the problem, but please note that maven.jaxws is using request processor 
incorrectly. There seems to be about 20 threads blocked in updateJaxWs. Please use own dedicated RequestProcessor.
Comment 7 mjreged 2009-04-15 14:30:30 UTC
Created attachment 80158 [details]
Group is a  parent Pom with 13 modules- jars, wars, ears.
Comment 8 Milan Kuchtiak 2009-04-15 14:46:59 UTC
OK, I'll change the code to use own (dedicated) instance of RP.
Comment 9 mjreged 2009-04-16 01:36:21 UTC
I Need to point out and ask; Why is netbeans wasting my CPU cycles on some JAXWS processing. My project has jaxws
configured in spring configuration by CXF and there is nothing that i would want netbeans to do in this regard.  When i
start a new Netbeans installation it asks me about jaxws entries in web.xml, i select the option to never ask me about
it again. This choice i made should be checked and jaxws processing should leave me alone.  Just assuming a lot here.
Comment 10 Milos Kleint 2009-04-16 13:31:32 UTC
reassigning to mkuchtiak. 
Comment 11 Milan Kuchtiak 2009-04-16 17:06:22 UTC
"JAX-WS processing" is a listener mechanism implemented to recognize all web services - java classes annotated with
@javax.jws.WebService annotation, in a Web or EJB project.
It's being initialized when the project is being opened.

Hopefully this will help :
http://hg.netbeans.org/main?cmd=changeset;node=50b123a52883
Comment 12 Quality Engineering 2009-04-17 08:41:28 UTC
Integrated into 'main-golden', will be available in build *200904170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/50b123a52883
User: mkuchtiak@netbeans.org
Log: #162652: created own instance of RequestProcessor for WS Annotations handling
Comment 13 Jaroslav Pospisil 2009-05-11 13:26:10 UTC
mjreged, could you please verify the fix?
Comment 14 Jaroslav Pospisil 2009-06-09 14:35:52 UTC
v.