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 80457 - ISE when invoking context menu of a java file
Summary: ISE when invoking context menu of a java file
Status: VERIFIED DUPLICATE of bug 87932
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-18 10:25 UTC by Max Sauer
Modified: 2008-12-22 18:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack trace (2.22 KB, text/plain)
2006-07-18 10:25 UTC, Max Sauer
Details
messages.log (compressed) (15.87 KB, application/x-gzip)
2006-08-08 09:23 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2006-07-18 10:25:10 UTC
I got following exception when invoking context menu of a java file inside
Explorer. I cannnot reproduce it anymore.

java.lang.IllegalStateException
	at org.openide.util.Mutex.leaveImpl(Mutex.java:759)
	at org.openide.util.Mutex.leave(Mutex.java:742)
	at org.openide.util.Mutex.leaveImpl(Mutex.java:833)
	at org.openide.util.Mutex.leave(Mutex.java:742)
	at org.openide.util.Mutex.readAccess(Mutex.java:272)
...
(whole stack trace attached)

-----------
NetBeans IDE Dev (Build 200607171800)
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b90
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 1 Max Sauer 2006-07-18 10:25:38 UTC
Created attachment 31944 [details]
exception stack trace
Comment 2 Marian Mirilovic 2006-07-24 09:28:27 UTC
reassigne to Petr
Comment 3 Petr Nejedly 2006-07-24 12:19:44 UTC
There was a read transaction with nested postWriteRequest, during processing of
the write phase (at read's leave()), the internal data structures has to get
corrupted somehow. I don't see anything in the Mutex that could cause this so far.
Comment 4 Max Sauer 2006-08-07 14:31:30 UTC
I'm facing this exception fairly often when working with trunk, say once in 
two days, on different places/actions. 
Comment 5 Petr Nejedly 2006-08-08 09:03:13 UTC
So you are able to weakly reproduce the problem?
Can you try running your IDE with -J-Dorg.openide.util.Mutex.level=500
It will produce a lot of noise on the output, but in case the exception occurs,
we could analyze the sequence of actions that led to the problem.
Thanks.
Comment 6 Max Sauer 2006-08-08 09:22:10 UTC
I got it again, this time when opening Junit project out of NetBeans sources. 
I'm attaching messages.log file with the switch mentioned above. It is rather 
large, the appeared exception resides on line 10642, and its stack trace is 
little bit different, please check it. 
 
----- 
NetBeans IDE Dev (Build 200608071800) 
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b94 
Linux version 2.6.12-1.1390_FC4smp running on i386 
en_US (nb); UTF-8 
 
Comment 7 Max Sauer 2006-08-08 09:23:51 UTC
Created attachment 32626 [details]
messages.log (compressed)
Comment 8 Petr Nejedly 2006-10-11 15:02:36 UTC
I'm trying to analyze the log, but it is very hard, as there is no thread info
in there. I've improved the logging code in the Mutex, it should shed more light
on what's happening with the Mutex.

Please try newer build (i.e. build from 12th Oct) with logging turned on and
report the log in case you reproduce the failure.
Comment 9 Petr Nejedly 2006-10-26 11:03:39 UTC
#87932 has better log.

*** This issue has been marked as a duplicate of 87932 ***
Comment 10 Max Sauer 2006-10-26 11:28:51 UTC
OK, verified duplicate. Enjoy your log studies ;)