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 162927 - IllegalStateException: An attempt to call ProjectState.markModified on a deleted project: /home/martin/NetBeansProjects/WebApplication1
Summary: IllegalStateException: An attempt to call ProjectState.markModified on a dele...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords:
: 167182 183690 (view as bug list)
Depends on:
Blocks: 183632
  Show dependency tree
 
Reported: 2009-04-17 13:36 UTC by martin_zmrhal
Modified: 2010-04-12 23:52 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 133288


Attachments
stacktrace (4.73 KB, text/plain)
2009-04-17 13:36 UTC, martin_zmrhal
Details
stacktrace (4.29 KB, text/plain)
2010-04-01 03:56 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martin_zmrhal 2009-04-17 13:36:32 UTC
Build: NetBeans IDE Dev (Build 200904170201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.27-7-generic, i386

User Comments:
sunbiz: Customize and pressed OK under project properties after project was deleted. The Customize should be disabled from the menubar after project is deleted or if no main project is selected

GUEST: First start up after installation.
Was offered to use values from a previous 6.5 installation, and I OK'ed.

martin_zmrhal: Creating a web project

sunsridharreddy: Tried to change the name of the Java file Main.java to Test.java and NetBeans was showing some error ...



Stacktrace: 
java.lang.IllegalStateException: An attempt to call ProjectState.markModified on a deleted project: /home/martin/NetBeansProjects/WebApplication1
        at org.netbeans.api.project.ProjectManager$ProjectStateImpl$1.run(ProjectManager.java:547)
        at org.netbeans.api.project.ProjectManager$ProjectStateImpl$1.run(ProjectManager.java:544)
        at org.openide.util.Mutex.writeAccess(Mutex.java:394)
        at org.netbeans.api.project.ProjectManager$ProjectStateImpl.markModified(ProjectManager.java:544)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.modifying(AntProjectHelper.java:513)
        at org.netbeans.spi.project.support.ant.AntProjectHelper.access$900(AntProjectHelper.java:102)
Comment 1 martin_zmrhal 2009-04-17 13:36:40 UTC
Created attachment 80348 [details]
stacktrace
Comment 2 Milos Kleint 2009-04-17 13:42:04 UTC
reassigning to rest services for evaluation
Comment 3 martin_zmrhal 2009-04-17 14:17:53 UTC
I am afraid it has nothing to do with REST. Actually mine case is duplicate of 162363. Will increase priority there
because it has at least 5 duplicates...
Comment 4 Milos Kleint 2009-04-17 14:31:44 UTC
ant project issue than. not really anything wrong in the project codebase, the illegal state is thrown for a good reason.
Comment 5 Milan Kubec 2009-04-20 15:36:41 UTC
Please, could you provide exact steps how to reproduce the problem? Thanks.
Comment 6 Exceptions Reporter 2009-07-14 11:16:24 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=133288
Comment 7 Jesse Glick 2009-08-19 15:44:05 UTC
martin_zmrhal's exception, and some others, looks like a bug in WebProjectRestSupport.ensureRestDevelopmentReady. Should
not be modifying the project here. There are other unrelated stack traces, however, which I cannot explain. Probably
this should be logged as an INFO warning stack trace rather than throwing ISE - likely harmless.
Comment 8 esmithbss 2010-04-01 03:56:08 UTC
Created attachment 96493 [details]
stacktrace

Changing the RAILS_ENV value in the project properties.
Comment 9 Jesse Glick 2010-04-08 19:00:25 UTC
core-main #aab8beb8ae34
Comment 10 Jesse Glick 2010-04-08 19:02:12 UTC
*** Bug 183690 has been marked as a duplicate of this bug. ***
Comment 11 Jesse Glick 2010-04-12 23:52:20 UTC
*** Bug 167182 has been marked as a duplicate of this bug. ***