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 186878 - "java.io.IOException: Project folder is not writeable." in automatic tests
Summary: "java.io.IOException: Project folder is not writeable." in automatic tests
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 10:06 UTC by soldatov
Modified: 2011-01-22 06: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 soldatov 2010-05-28 10:06:55 UTC
This exception appears in messages.log in automatic tests. And it can be reproduced easy. But It appears very very very seldom if I try to reproduce it manually. Problem can't be resolved without developer's assistance or "java.io.IOException: Project folder is not writeable." message should be marked as expected exception.

Scenario:
- Create Argument in /export/NB
- Add some environment variable into project properties
- Call context and select Move... menu item
- Type /export/NB/tmp and push Move button
- Check messages.log file
==>
INFO: Project folder is not writeable.
java.io.IOException: Project folder is not writeable.
	at org.netbeans.api.project.ProjectManager.saveProject(ProjectManager.java:660)
	at org.netbeans.modules.project.ui.OpenProjectList.close(OpenProjectList.java:841)
	at org.netbeans.modules.project.ui.actions.CloseProject.actionPerformed(CloseProject.java:85)
[catch] at org.netbeans.modules.project.ui.actions.CloseProject$1.run(CloseProject.java:78)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Comment 1 Thomas Preisler 2011-01-20 20:06:08 UTC
I can reproduce it in my environment. Investigating....
Comment 2 Thomas Preisler 2011-01-20 22:22:26 UTC
Looks line a race condition when trying o save the project from notifyMoving. Improved the save logic (so it doesn't save if not changed) and moved it up before move action is called. did the same for copy and rename projects.
Comment 3 Thomas Preisler 2011-01-20 22:22:55 UTC
changeset:   186820:a87218322b8c
user:        Thomas Preisler <thp@netbeans.org>
date:        Thu Jan 20 13:39:33 2011 -0800
summary:     #186878 - "java.io.IOException: Project folder is not writeable
Comment 4 Quality Engineering 2011-01-22 06:17:31 UTC
Integrated into 'main-golden', will be available in build *201101220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a87218322b8c
User: Thomas Preisler <thp@netbeans.org>
Log: #186878 - "java.io.IOException: Project folder is not writeable