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 208234 - Race condition in ModuleLayersFS.setURLs
Summary: Race condition in ModuleLayersFS.setURLs
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 7.2
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 208243 208388 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-10 10:04 UTC by Petr Cyhelsky
Modified: 2012-03-02 08:22 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184974


Attachments
stacktrace (5.64 KB, text/plain)
2012-02-10 10:04 UTC, Petr Cyhelsky
Details
stacktrace (3.75 KB, text/plain)
2012-02-10 10:48 UTC, Antonin Nebuzelsky
Details
stacktrace (3.64 KB, text/plain)
2012-02-11 19:42 UTC, Jan Lahoda
Details
stacktrace (3.64 KB, text/plain)
2012-02-13 12:45 UTC, Petr Jiricka
Details
stacktrace (3.64 KB, text/plain)
2012-02-13 12:57 UTC, J Bachorik
Details
stacktrace (3.75 KB, text/plain)
2012-02-13 15:30 UTC, Jiri Prox
Details
stacktrace (3.75 KB, text/plain)
2012-02-16 14:21 UTC, Jiri Rechtacek
Details
stacktrace (2.86 KB, text/plain)
2012-02-19 20:54 UTC, Vladimir Kvashin
Details
stacktrace (2.86 KB, text/plain)
2012-02-19 20:57 UTC, Vladimir Kvashin
Details
stacktrace (5.63 KB, text/plain)
2012-02-20 07:39 UTC, Martin Fousek
Details
stacktrace (3.75 KB, text/plain)
2012-02-22 11:47 UTC, Jiri Skrivanek
Details
stacktrace (3.75 KB, text/plain)
2012-02-22 11:52 UTC, Stepan Zebra
Details
stacktrace (3.64 KB, text/plain)
2012-02-23 13:59 UTC, Tomas Danek
Details
stacktrace (3.64 KB, text/plain)
2012-02-27 09:53 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-02-10 10:04:26 UTC
This bug was originally marked as duplicate of bug 196437, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20120210-bc585d539739)
VM: OpenJDK 64-Bit Server VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_22-b22
OS: Linux

Stacktrace: 
java.lang.NullPointerException: Send us the messages.log please!
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.waitForDelegateWizard(DescriptionStep.java:288)
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.access$000(DescriptionStep.java:91)
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$1.call(DescriptionStep.java:114)
   at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$1.call(DescriptionStep.java:110)
   at org.netbeans.modules.ide.ergonomics.fod.ConfigurationPanel$2$1.run(ConfigurationPanel.java:213)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
Comment 1 Petr Cyhelsky 2012-02-10 10:04:29 UTC
Created attachment 115566 [details]
stacktrace
Comment 2 Petr Cyhelsky 2012-02-10 10:22:46 UTC
this exception occurs when J2EE is enabled via creating new web project
Comment 3 Antonin Nebuzelsky 2012-02-10 10:48:47 UTC
The same happens for me when activating Java SE through New Project wizard.
Comment 4 Antonin Nebuzelsky 2012-02-10 10:48:57 UTC
Created attachment 115570 [details]
stacktrace

Fresh trunk build (20120208), jdk 7u3, Linux. First start with a new userdir, closed Start Page, opened New Projects wizard and started creating AnagramGame sample.
Comment 5 Petr Cyhelsky 2012-02-10 11:04:53 UTC
For me it was same steps as Tonda, but with opening of web project instead of anagram and using ergonomics repo instead of trunk...
Comment 6 Antonin Nebuzelsky 2012-02-10 11:55:33 UTC
Increasing priority. I needed to manually disable Java SE (which was presented as active in Plugins manager, but it was not) and manually enable. Without this I was unable to work with Java SE projects.
Comment 7 Petr Cyhelsky 2012-02-10 12:01:02 UTC
*** Bug 208243 has been marked as a duplicate of this bug. ***
Comment 8 Petr Cyhelsky 2012-02-10 12:02:58 UTC
Another way to make it work is to restart the IDE
Comment 9 Jan Lahoda 2012-02-11 19:42:57 UTC
Created attachment 115621 [details]
stacktrace
Comment 10 Petr Jiricka 2012-02-13 12:45:56 UTC
Created attachment 115654 [details]
stacktrace

Activating Java EE features during the New Web Project wizard.
Comment 11 Exceptions Reporter 2012-02-13 12:46:05 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=184974
Comment 12 J Bachorik 2012-02-13 12:57:57 UTC
Created attachment 115655 [details]
stacktrace
Comment 13 Jiri Prox 2012-02-13 15:30:56 UTC
Created attachment 115669 [details]
stacktrace

NPE when creating new project
Comment 14 Jiri Rechtacek 2012-02-16 14:21:56 UTC
Created attachment 115821 [details]
stacktrace

Just open Mobile Application in fresh build of IDE (fresh userdir too).
Comment 15 Vladimir Kvashin 2012-02-19 20:54:57 UTC
Created attachment 115926 [details]
stacktrace

Opened a full IDE (userdir wasn't empty, I don't remember what was there), tried creating C/C++ project- got an exception
Comment 16 Vladimir Kvashin 2012-02-19 20:57:56 UTC
Created attachment 115927 [details]
stacktrace

Opened IDE with empy userdir, tries creating C/C++ project
Comment 17 Martin Fousek 2012-02-20 07:39:58 UTC
Created attachment 115931 [details]
stacktrace

1, started IDE with clean userdir
2, create new web application
-> exception thrown during enabling/finding web&ee
Comment 18 Exceptions Reporter 2012-02-20 07:40:07 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=184974
Comment 19 Jiri Skrivanek 2012-02-22 11:47:00 UTC
Created attachment 116019 [details]
stacktrace

To reproduce:
- install IDE from zip
- start IDE
- open new project wizard
- choose Java|Java Application
- while finding feature is in progress it throws this exception
Comment 20 Stepan Zebra 2012-02-22 11:52:59 UTC
Created attachment 116020 [details]
stacktrace

Product Version: NetBeans IDE Dev (Build 201202220400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

Activating Mobility support.
Comment 21 Jaroslav Tulach 2012-02-23 11:28:30 UTC
I was hoping all manipulation with modules must be done with ModuleManager.mutex(), but it does not seem to be fully true. Trying to enforce that: 

ergonomics#ea0417e828c3
Comment 22 Tomas Danek 2012-02-23 13:59:05 UTC
Created attachment 116054 [details]
stacktrace

created new project
Comment 23 Quality Engineering 2012-02-26 11:16:28 UTC
Integrated into 'main-golden', will be available in build *201202260400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ea0417e828c3
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #208234: Allow changes of layers only under ModuleManager.mutex().writeAccess
Comment 24 Martin Fousek 2012-02-27 09:53:44 UTC
Created attachment 116131 [details]
stacktrace

activating PHP by having new userdir
Comment 25 Martin Fousek 2012-02-27 10:01:47 UTC
I haven't #ea0417e828c3 in web-main yet, so it's OK.
Comment 26 Jaroslav Tulach 2012-03-02 08:22:20 UTC
*** Bug 208388 has been marked as a duplicate of this bug. ***