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 235858 - Deadlock on opening projects
Summary: Deadlock on opening projects
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords: 7.4_HR_FIX
: 235854 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-12 07:46 UTC by markiewb
Modified: 2013-09-17 19:04 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Threaddump (49.16 KB, text/plain)
2013-09-12 07:46 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-09-12 07:46:48 UTC
Created attachment 139967 [details]
Threaddump

I installed a new dev build of post-7.4 and started it via the same user dir.
NetBeans tries to open my previously opened projects, but it stops at 70%. A deadlock? I attached a threaddump.


Product Version: NetBeans IDE Dev (Build 201309120002)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 Milos Kleint 2013-09-12 08:06:50 UTC
mjanicek: any calls that don't modify the model, are to effectively use the RESOLVED model via NbMavenProject.getMavenProject().

your methods that use the ModelOperation+Utilities.performPOMModelOperations api are not only deadlocking (as in this issue) but are effectively returning WRONG results as the model for writing is not resolved, thus doens't include values from parents, doesn't include profiles and doesn't have expressions resolved!

known to be affected, please check for more:
MavenProjectSupport.readSettingsFromPom()
WebModuleImpl.getProfileFromPOM()


either candidate for fix in 7.4 FCS or for any upcoming patch release
Comment 2 Milos Kleint 2013-09-12 08:07:07 UTC
*** Bug 235854 has been marked as a duplicate of this bug. ***
Comment 3 Martin Janicek 2013-09-12 08:49:00 UTC
Fixed by changeset web-main #a8e9b9407478
Milosi could you please review the changes?
Comment 4 Milos Kleint 2013-09-12 08:58:11 UTC
the diff looks ok to me.
Comment 5 Martin Janicek 2013-09-12 09:03:33 UTC
Thanks! Vlado may I ask you for verification?
Comment 6 Stepan Zebra 2013-09-12 11:34:29 UTC
(In reply to Martin Janicek from comment #3)
> Fixed by changeset web-main #a8e9b9407478

verified by QE
Comment 7 Martin Janicek 2013-09-12 11:47:39 UTC
Thanks Stepane! I've send an email to reviwers.. If there will be no objections, I'm going to integrate into the release74 branch tomorrow.
Comment 8 Quality Engineering 2013-09-13 02:03:05 UTC
Integrated into 'main-silver', will be available in build *201309130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a8e9b9407478
User: Martin Janicek <mjanicek@netbeans.org>
Log: #235858 - Deadlock on opening projects
Comment 9 Martin Janicek 2013-09-14 09:20:58 UTC
Transplanted in: releases #f4b79092a5a8