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 254228

Summary: IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778
Product: python Reporter: Milos Kleint <mkleint>
Component: ProjectsAssignee: Lou Dasaro <mr_lou_d>
Status: RESOLVED FIXED    
Severity: normal CC: Jenselme
Priority: P4    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219038
Attachments: stacktrace

Description Milos Kleint 2015-08-10 00:20:46 UTC
This bug was originally marked as duplicate of bug 188949, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Mac OS X

User Comments:
mkleint: python




Stacktrace: 
java.lang.IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778 
   at org.netbeans.modules.openide.util.DefaultMutexImplementation.enterImpl(DefaultMutexImplementation.java:440)
   at org.netbeans.modules.openide.util.DefaultMutexImplementation.enter(DefaultMutexImplementation.java:405)
   at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeEnter(DefaultMutexImplementation.java:381)
   at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:290)
   at org.openide.util.Mutex.writeAccess(Mutex.java:299)
   at org.netbeans.spi.project.support.ant.PropertyUtils.putGlobalProperties(PropertyUtils.java:166)
Comment 1 Milos Kleint 2015-08-10 00:20:49 UTC
Created attachment 155236 [details]
stacktrace
Comment 2 Lou Dasaro 2015-08-12 23:30:06 UTC
Thank you for your report. However, I am unable to reproduce this anomaly.

What version of Python plugin did you install on the 8.1 Beta?

Currently, the Python plugin for use with the Beta resides at the Plugin Development Update Center. See http://wiki.netbeans.org/FaqPluginsInDevelopment#Additional_update_centers

If you were using the latest Development Python Plugin when this error occured, please provide a short narrative on how to reproduce it. 

Otherwise, please uninstall the Python plugin, install the one from the Development UC, and let me know what you find!
Comment 3 Milos Kleint 2015-08-12 23:37:13 UTC
I've been getting it with 8.0.x as well basically on every start with the python project  opened or on opening I believe.

currently I'm using Python plugin > 0.107 (might have been from the update center, but could be coming from the upgrade)
Comment 4 Lou Dasaro 2015-08-12 23:50:48 UTC
I haven't ever (?) changed the version number; I will make a note to do that.
Note that the 8.0.2 plugin is guaranteed to exhibit the error you described. 

For the 8.1 Beta (and current Dev bundles), please UNinstall the Python plugin you are currently using, and install the one currently provided at the DEVELOPMENT Update Center, i.e. from http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz

I haven't seen this error in quite a while, but it IS possible that it may occur.

Let us know what you find, and thanks for testing!
Comment 5 Jenselme 2015-10-02 16:55:08 UTC
I think this error is fixed in new version of nbpython. If you experience this problem again, let us know.

Downgrading priority to P4. This should be close with the next release of nbpython.
Comment 6 Lou Dasaro 2015-11-27 20:33:30 UTC
"Fixed" in Python Plugin version .151118 
If you get this error, and are using NetBeans IDE 8.0.x (or earlier), please upgrade to IDE 8.1 and install the latest Python plugin from the Update Center (Tools->Plugins).

If you are using NetBeans 8.1 with Python Plugin version .151118 or greater, and you receive this error, please reopen with a duplicable test case and my apologies.