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 188949 - IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778
Summary: IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10...
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Projects (show other bugs)
Version: 8.0.1
Hardware: All All
: P1 normal with 7 votes (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 239091 246925 249212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-26 08:31 UTC by fvogler
Modified: 2015-06-03 14:31 UTC (History)
128 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171566


Attachments
stacktrace (2.79 KB, text/plain)
2010-07-26 08:31 UTC, fvogler
Details
stacktrace (2.79 KB, text/plain)
2010-07-30 02:49 UTC, XVilka
Details
stacktrace (4.04 KB, text/plain)
2011-01-14 16:03 UTC, Jesse Glick
Details
stacktrace (3.98 KB, text/plain)
2011-02-28 11:22 UTC, michbarsinai
Details
stacktrace (2.82 KB, text/plain)
2011-03-04 13:28 UTC, michbarsinai
Details
stacktrace (2.82 KB, text/plain)
2011-03-06 12:22 UTC, michbarsinai
Details
stacktrace (2.82 KB, text/plain)
2011-11-05 14:09 UTC, Michal Mocnak
Details
stacktrace (2.66 KB, text/plain)
2012-03-25 04:25 UTC, MackSix
Details
stacktrace (3.04 KB, text/plain)
2012-06-29 13:26 UTC, luislobo
Details
stacktrace (1.86 KB, text/plain)
2012-09-15 22:05 UTC, David Konecny
Details
stacktrace (3.29 KB, text/plain)
2012-11-01 21:17 UTC, _ pandajava
Details
stacktrace (3.29 KB, text/plain)
2012-11-02 09:32 UTC, _ pandajava
Details
stacktrace (2.82 KB, text/plain)
2013-07-16 19:45 UTC, rodrigorsantos
Details
stacktrace (2.82 KB, text/plain)
2013-11-06 21:02 UTC, Lou Dasaro
Details
stacktrace (2.49 KB, text/plain)
2013-11-20 14:51 UTC, Petr Jiricka
Details
stacktrace (2.82 KB, text/plain)
2013-12-03 13:09 UTC, rodrigorsantos
Details
stacktrace (2.79 KB, text/plain)
2014-01-08 10:45 UTC, _ pandajava
Details
stacktrace (2.82 KB, text/plain)
2014-01-08 12:42 UTC, rodrigorsantos
Details
Startup error 1 (63.46 KB, image/png)
2014-01-08 15:21 UTC, _ pandajava
Details
Startup error 2 (62.65 KB, image/png)
2014-01-08 15:22 UTC, _ pandajava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fvogler 2010-07-26 08:31:35 UTC
This bug was originally marked as duplicate of bug 186318, 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 nbms-and-javadoc-5507-on-100725)
VM: Java HotSpot(TM) Server VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Windows XP

User Comments:
fvogler: Occurred on startup. (Deadlock build 5507)




Stacktrace: 
java.lang.IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778 
   at org.openide.util.Mutex.enterImpl(Mutex.java:669)
   at org.openide.util.Mutex.enter(Mutex.java:634)
   at org.openide.util.Mutex.writeEnter(Mutex.java:612)
   at org.openide.util.Mutex.writeAccess(Mutex.java:433)
   at org.netbeans.spi.project.support.ant.PropertyUtils.putGlobalProperties(PropertyUtils.java:165)
   at org.netbeans.modules.python.api.PythonPlatformManager$2.run(PythonPlatformManager.java:217)
Comment 1 fvogler 2010-07-26 08:31:38 UTC
Created attachment 101021 [details]
stacktrace
Comment 2 XVilka 2010-07-30 02:49:30 UTC
Created attachment 101094 [details]
stacktrace

After starting IDE - on opening/scanning projects stage
Comment 3 nbphpuser 2010-10-09 09:18:45 UTC
Now I cannot start IDE anymore. Please, fix it. Last error in messages.log

SEVERE [org.openide.util.Exceptions]
java.lang.IllegalStateException: WARNING: Going from readAccess to writeAccess through queue, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778 
	at org.openide.util.Mutex.enterImpl(Mutex.java:702)
	at org.openide.util.Mutex.enter(Mutex.java:634)
	at org.openide.util.Mutex.writeEnter(Mutex.java:612)
	at org.openide.util.Mutex.writeAccess(Mutex.java:433)
	at org.netbeans.modules.python.api.PythonPlatformManager.storePlatform(PythonPlatformManager.java:212)
	at org.netbeans.modules.python.api.PythonPlatformManager.getBundledPlatform(PythonPlatformManager.java:98)
	at org.netbeans.modules.python.api.PythonPlatformManager.load(PythonPlatformManager.java:176)
	at org.netbeans.modules.python.api.PythonPlatformManager.<init>(PythonPlatformManager.java:61)
	at org.netbeans.modules.python.api.PythonPlatformManager.getInstance(PythonPlatformManager.java:112)
	at org.netbeans.modules.python.project.ui.actions.RunSingleCommand.<init>(RunSingleCommand.java:34)
	at org.netbeans.modules.python.project.PythonActionProvider.<init>(PythonActionProvider.java:45)
	at org.netbeans.modules.python.project.PythonProject.createLookup(PythonProject.java:95)
	at org.netbeans.modules.python.project.PythonProject.<init>(PythonProject.java:72)
	at org.netbeans.modules.python.project.PythonProjectType.createProject(PythonProjectType.java:31)
	at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.loadProject(AntBasedProjectFactorySingleton.java:258)
	at org.netbeans.api.project.ProjectManager.createProject(ProjectManager.java:361)
	at org.netbeans.api.project.ProjectManager.access$300(ProjectManager.java:85)
	at org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:282)
	at org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:233)
	at org.openide.util.Mutex.readAccess(Mutex.java:330)
	at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:233)
	at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:131)
	at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:104)
	at org.netbeans.modules.project.ui.actions.ActionsUtil.getProjectsFromLookup(ActionsUtil.java:100)
[catch] at org.netbeans.modules.project.ui.actions.MainProjectAction$1.run(MainProjectAction.java:200)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1426)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Comment 4 digijock 2010-11-24 14:46:54 UTC
Windows XP 2002 (32 bit) + SP3 

Product Version: NetBeans IDE 7.0 M2 (Build 201010151251)
Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\jbevis\.netbeans\7.0m2
Comment 5 Marian Mirilovic 2011-01-14 15:17:09 UTC
298 dups -> P1
Comment 6 Jesse Glick 2011-01-14 16:03:00 UTC
Created attachment 105001 [details]
stacktrace

Opening a module project.
Comment 7 michbarsinai 2011-02-28 11:22:07 UTC
Created attachment 106539 [details]
stacktrace

after a java program execution was finished with java result: 4
Comment 8 michbarsinai 2011-03-04 13:28:18 UTC
Created attachment 106712 [details]
stacktrace

While browsing for projects in the "Open projects" dialog. The dorecotry had a java proejct and a python project.
Comment 9 michbarsinai 2011-03-06 12:22:23 UTC
Created attachment 106762 [details]
stacktrace

Project open dialog.
Comment 10 huam 2011-06-14 20:44:35 UTC
After closing the Python project the problem did not repeat.
Comment 11 Michal Mocnak 2011-11-05 14:09:43 UTC
Created attachment 112868 [details]
stacktrace

Open project dialog
Comment 12 MackSix 2012-03-25 04:25:55 UTC
Created attachment 117208 [details]
stacktrace

Installed Python Module and Samples. Opened up the JySwing Python sample and this Exception was thrown.
Comment 13 luislobo 2012-06-29 13:26:07 UTC
Created attachment 121565 [details]
stacktrace

I was following this tutorial http://netbeans.org/kb/docs/php/phpunit.html
When It asks to create the test folder, when selecting the created test folder inside /var/www/calculator/tests , the exception appeared
Comment 14 David Konecny 2012-09-15 22:05:13 UTC
Created attachment 124403 [details]
stacktrace
Comment 15 David Konecny 2012-09-16 21:33:56 UTC
Many exceptions for different modules are reported in this issue. I filed http://netbeans.org/bugzilla/show_bug.cgi?id=218433 to fix it. And also moved some reports to PHP -http://netbeans.org/bugzilla/show_bug.cgi?id=218432 and one to JAX-WS - http://netbeans.org/bugzilla/show_bug.cgi?id=218431
Comment 16 _ pandajava 2012-11-01 21:17:06 UTC
Created attachment 126956 [details]
stacktrace
Comment 17 _ pandajava 2012-11-02 09:32:06 UTC
Created attachment 126975 [details]
stacktrace

After GUI Builder plugin installation.
Comment 18 Exceptions Reporter 2012-12-20 08:46:46 UTC
This bug already has 1400 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=171566
Comment 19 Exceptions Reporter 2013-03-26 18:57:44 UTC
This bug already has 1600 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=171566
Comment 20 rodrigorsantos 2013-07-16 19:45:36 UTC
Created attachment 137246 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
Comment 21 Lou Dasaro 2013-11-06 21:02:41 UTC
Created attachment 141918 [details]
stacktrace

Open existing JavaFX project. Scrolling through list of projects using mouse wheel when exception occurred.
Comment 22 Petr Jiricka 2013-11-20 14:51:54 UTC
Created attachment 142410 [details]
stacktrace

Created a new HTML5 project.
Comment 23 rodrigorsantos 2013-12-03 13:09:00 UTC
Created attachment 142811 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
Comment 24 Exceptions Reporter 2013-12-04 03:54:09 UTC
This bug already has 1750 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=171566
Comment 25 Marian Mirilovic 2013-12-04 07:29:29 UTC
*** Bug 239091 has been marked as a duplicate of this bug. ***
Comment 26 _ pandajava 2014-01-08 10:45:41 UTC
Created attachment 143701 [details]
stacktrace

Slowness at the start of the editor
Comment 27 rodrigorsantos 2014-01-08 12:42:41 UTC
Created attachment 143705 [details]
stacktrace

<Please provide a description of the problem or the steps to reproduce>
Comment 28 _ pandajava 2014-01-08 15:21:06 UTC
Created attachment 143717 [details]
Startup error 1

Startup error screenshot
Comment 29 _ pandajava 2014-01-08 15:22:22 UTC
Created attachment 143718 [details]
Startup error 2

Startup error second screenshot
Comment 30 Jackie_Rosen 2014-02-16 11:24:52 UTC
SPAM - Removed by Administrator
Comment 31 Exceptions Reporter 2014-02-20 01:07:31 UTC
This bug already has 1800 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=171566
Comment 32 Ralph Ruijs 2015-03-23 19:56:02 UTC
changeset:   978fda131a9f
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Mon Mar 23 20:53:49 2015 +0100
summary:     #188949 - Do not load PlatformManager under readlock (ea. when opening project)
Comment 33 Lou Dasaro 2015-03-24 06:07:48 UTC
Thank you!
Comment 34 Ralph Ruijs 2015-04-04 13:04:50 UTC
*** Bug 249212 has been marked as a duplicate of this bug. ***
Comment 35 Lou Dasaro 2015-05-26 02:24:40 UTC
*** Bug 246925 has been marked as a duplicate of this bug. ***
Comment 36 Lou Dasaro 2015-05-26 02:25:50 UTC
We are diligently working to improve Python support for NetBeans 8.1, and you can test our work in progress.
See "How to install new Development build(s) for testing" at http://forums.nbpython.org/viewtopic.php?f=6&t=69