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 99897 - IllegalMonitorState exception when adding EJB-JAR project
Summary: IllegalMonitorState exception when adding EJB-JAR project
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-03 23:13 UTC by rituraj_tiwari
Modified: 2007-05-17 12:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Messages.log file (30.57 KB, text/plain)
2007-04-03 23:15 UTC, rituraj_tiwari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rituraj_tiwari 2007-04-03 23:13:44 UTC
My netbeans is setup to work with Perforce VCS. Opening an EJB-JAR project whose
files are under perforce leads to the following stack trace:

java.lang.IllegalMonitorStateException: current thread not owner
	at java.lang.Object.notify(Native Method)
	at
org.netbeans.modules.j2ee.ejbjarproject.ui.customizer.EjbJarProjectProperties$2.run(EjbJarProjectProperties.java:545)
	at org.openide.util.Mutex.writeAccess(Mutex.java:384)
	at
org.netbeans.modules.j2ee.ejbjarproject.ui.customizer.EjbJarProjectProperties.setServerInstance(EjbJarProjectProperties.java:534)
	at
org.netbeans.modules.j2ee.ejbjarproject.EjbJarProject$ProjectOpenedHookImpl.projectOpened(EjbJarProject.java:773)
	at
org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:56)
	at
org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:581)
	at
org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:622)
	at org.netbeans.modules.project.ui.OpenProjectList.doOpen(OpenProjectList.java:297)
	at
org.netbeans.modules.project.ui.OpenProjectList.access$000(OpenProjectList.java:77)
	at org.netbeans.modules.project.ui.OpenProjectList$1.run(OpenProjectList.java:200)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)


The project is never opened.
Messages.log file is attached.
Comment 1 rituraj_tiwari 2007-04-03 23:15:23 UTC
Created attachment 40379 [details]
Messages.log file
Comment 2 rituraj_tiwari 2007-05-16 22:24:04 UTC
I think I have found a workaround. Since the ejb-jar projects are under version
control in perforce, all the files are initially read only. 

I find that making private.properties writable removes this error. 

Bear in mind that other kinds of projects are not affected by this.
Comment 3 Andrei Badea 2007-05-17 12:09:16 UTC
Fixed the IllegalMonitorStateException. You will now probably start to get
IOException's, please reopen this issue or file another one for them.

Checking in EjbJarProjectProperties.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/customizer/EjbJarProjectProperties.java,v
 <--  EjbJarProjectProperties.java
new revision: 1.31; previous revision: 1.30
done