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 70460 - testPrepare error current thread not owner
Summary: testPrepare error current thread not owner
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Adamek
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-12-15 12:30 UTC by Jaroslav Tulach
Modified: 2006-01-03 09:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The failure (7.79 KB, text/html)
2005-12-15 12:30 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-12-15 12:30:10 UTC
Do not you have something wrong in code if you can get exception like this? 
 
 
      java.lang.IllegalMonitorStateException: current thread not owner 
        at java.lang.Object.notify(Native Method) 
        at 
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$3.run(WebProjectProperties.java:705) 
        at org.openide.util.Mutex.writeAccess(Mutex.java:378) 
        at 
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.setServerInstance(WebProjectProperties.java:694) 
        at 
org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:711) 
        at 
org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:50) 
        at 
org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:568) 
        at 
org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:609)
Comment 1 Jaroslav Tulach 2005-12-15 12:30:39 UTC
Created attachment 27873 [details]
The failure
Comment 2 Martin Adamek 2005-12-15 14:34:24 UTC
Test is temporary removed in release50 branch (not in trunk).
Comment 3 Andrei Badea 2005-12-16 11:49:43 UTC
The bug is not in a test, but in WebProjectProperties.setServerInstance():
calling ErrorManager.getDefault().notify() instead of EM.gD().notify(Exception). 

Should be fixed for 5.0.
Comment 4 Martin Adamek 2005-12-16 12:29:52 UTC
Thanks Andrei, I didn't see that. It's fixed in trunk. Jardo, should I put it to
release50 branch after some succesful passes later?
/cvs/web/project/src/org/netbeans/modules/web/project/ui/customizer/WebProjectProperties.java,v
 <--  WebProjectProperties.java
new revision: 1.98; previous revision: 1.97
Comment 5 Jaroslav Tulach 2005-12-16 14:49:45 UTC
Sure, fix this typo in release50 
Comment 6 Martin Adamek 2006-01-03 09:03:38 UTC
Test is fixed and enabled in release50 branch.
/cvs/web/project/src/org/netbeans/modules/web/project/ui/customizer/WebProjectProperties.java,v
 <--  WebProjectProperties.java
new revision: 1.97.4.1; previous revision: 1.97