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 186318

Summary: [69cat] IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778
Product: javacard Reporter: abajja <abajja>
Component: Java CardAssignee: _ tboudreau <tboudreau>
Status: RESOLVED FIXED    
Severity: normal CC: abajja, epdv, jirka_x1, johnjullion, lebedkov, malakim, mmirilovic
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 170188
Attachments: stacktrace
stacktrace
stacktrace
threaddump
stacktrace
Fix for 186318

Description abajja 2010-05-18 17:43:40 UTC
This bug was originally marked as duplicate of bug 128224, 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 201005170932)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
GUEST: I deleted some JAR files from de libraries path

abajja: New install. openning a java project.

malakim: Removing a SVGMenu from the "Flow" mode in the midlet editor




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:681)
   at org.openide.util.Mutex.enter(Mutex.java:631)
   at org.openide.util.Mutex.writeEnter(Mutex.java:609)
   at org.openide.util.Mutex.writeAccess(Mutex.java:430)
   at org.netbeans.modules.javacard.ri.platform.RIPlatform.getDefault(RIPlatform.java:221)
   at org.netbeans.modules.javacard.ri.platform.RIPlatform.<clinit>(RIPlatform.java:113)
Comment 1 abajja 2010-05-18 17:43:44 UTC
Created attachment 99154 [details]
stacktrace
Comment 2 jirka_x1 2010-05-24 19:44:26 UTC
Created attachment 99406 [details]
stacktrace

Clicked on a project (suite) in open project dlg
Comment 3 Karol Harezlak 2010-05-25 07:43:19 UTC
Tim, I think it's yours.
Comment 4 Peter Nabbefeld 2010-05-26 08:02:32 UTC
Created attachment 99477 [details]
stacktrace

I already uninstalled the two (?) Javacard plugins, but probably this is also related (probably a problem with uninstalling?):

java.io.IOException: Could not delete: C:\Dokumente und Einstellungen\pna\.netbeans\dev\var\cache\all-layers.dat
	at org.netbeans.Stamps.deleteCache(Stamps.java:513)
	at org.netbeans.Stamps.access$300(Stamps.java:79)
	at org.netbeans.Stamps$Store.store(Stamps.java:570)
[catch] at org.netbeans.Stamps$Worker.run(Stamps.java:744)
Comment 5 Exceptions Reporter 2010-05-26 08:02:47 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=4902
Comment 6 Peter Nabbefeld 2010-05-26 08:05:22 UTC
In current build (201005250001) this bug is blocking opening projects. I had to even deactivate the RI platform module (which is only possible using Module Manager) to finally get my installation back to work.
Comment 7 Peter Nabbefeld 2010-05-27 05:44:53 UTC
Hm, probably this blocks only if J2ME is installed, would explain why currently only few users are reporting this bug.

However, You should at least have a look at it before releasing 6.9, because it may lead to blocking NetBeans, so setting priority to P1 for the moment.
Comment 8 Marian Mirilovic 2010-05-27 08:08:53 UTC
23 duplicates so far ...
Comment 9 abajja 2010-05-27 16:20:40 UTC
Created attachment 99556 [details]
threaddump
Comment 10 abajja 2010-05-28 08:56:38 UTC
Created attachment 99589 [details]
stacktrace
Comment 11 Petr Suchomel 2010-05-28 11:49:02 UTC
Changes merged and integrated
Comment 12 Petr Suchomel 2010-05-30 18:05:18 UTC
Need to reopen, the fix needs more when using ergonomics
Comment 13 Petr Suchomel 2010-05-30 18:06:23 UTC
Created attachment 99657 [details]
Fix for 186318
Comment 14 Tomas Zezula 2010-05-31 12:42:44 UTC
Seems fine to me.
Comment 15 Petr Suchomel 2010-05-31 14:20:00 UTC
Integrated in release69 http://hg.netbeans.org/release69/rev/02f8cfcbc927