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 119244 - log error: SEVERE: Attempt to call ProjectManager.findProject within the body of ProjectFactory.loadProject
Summary: log error: SEVERE: Attempt to call ProjectManager.findProject within the body...
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 16:30 UTC by jamespb
Modified: 2008-09-20 17:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-10-17 16:30:18 UTC
Deleted my userdir, attempted to open an existing project.  Got a a red do not enter icon in the bottom right, message
in log file is:

SEVERE: Attempt to call ProjectManager.findProject within the body of ProjectFactory.loadProject (hint: try using
ProjectManager.mutex().postWriteRequest(...) within the body of your Project's constructor to prevent this)
java.lang.IllegalStateException: Attempt to call ProjectManager.findProject within the body of
ProjectFactory.loadProject (hint: try using ProjectManager.mutex().postWriteRequest(...) within the body of your
Project's constructor to prevent this)

This attempt with fresh userdir was with build 4660.

I had originally reported this in http://scripting.netbeans.org/issues/show_bug.cgi?id=119229 but it's probably unrelated.

Log file at http://www.netbeans.org/nonav/issues/showattachment.cgi/51131/messages.log

Tor said this may be related to subversion - I use the windows subversion client, v. 1.4.3
Comment 2 Martin Krauskopf 2007-10-17 16:42:05 UTC
Yes it is. Will try to fix it somehow or switch back to the workaround. But finally without deadlock. Is it 100%
reproducible? I was not able to reproduce at all, so I've committed that code. Great you catched it.
Comment 3 jamespb 2007-10-17 19:01:12 UTC
My (wild) guess would be that it has something to do with removing a file (or in my case, many files) from the
filesystem without doing a svn rm, then removing the .project directory.
Comment 4 Martin Krauskopf 2007-10-18 12:38:15 UTC
Let me know if you find other problem. Thanks.

Hopefully fixed. Pretty subtle issue.

railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsSources.java;
new revision: 1.5; previous revision: 1.4
Comment 5 Quality Engineering 2008-09-20 17:17:02 UTC
Integrated into 'main-golden', will be available in build *200809201401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e2d38a5c0059
User: Martin Krauskopf <mkrauskopf@netbeans.org>
Log: Fixing #120014 by taking back fix for #119244 and workarounding it in the safe way.

#119244: log error: SEVERE: Attempt to call ProjectManager.findProject within the body of ProjectFactory.loadProject
#120014: IllegalArgumentException: Already listening to /RailsApplication/something