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 196300 - FileNotFoundException on build full remote project
Summary: FileNotFoundException on build full remote project
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 13:55 UTC by Alexander Pepin
Modified: 2011-03-07 05:35 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 Alexander Pepin 2011-03-04 13:55:26 UTC
Prerequisite - create a makefile based project on some Solaris host using OSS
express tool collection

Steps to reproduce:
- add the remote host
- import the project
- try to build the project
Result: FileNotFoundException occurs:

java.io.FileNotFoundException
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:152)
	at org.netbeans.modules.cnd.makeproject.actions.ShadowProjectSynchronizer.copyImpl(ShadowProjectSynchronizer.java:373)
	at org.netbeans.modules.cnd.makeproject.actions.ShadowProjectSynchronizer.copy(ShadowProjectSynchronizer.java:351)
	at org.netbeans.modules.cnd.makeproject.actions.ShadowProjectSynchronizer.copy(ShadowProjectSynchronizer.java:347)
	at org.netbeans.modules.cnd.makeproject.actions.ShadowProjectSynchronizer.updateRemoteProject(ShadowProjectSynchronizer.java:107)
[catch] at org.netbeans.modules.cnd.makeproject.actions.MakeConfigurationSaveListenerImpl.updateRemoteProject(MakeConfigurationSaveListenerImpl.java:133)
	at org.netbeans.modules.cnd.makeproject.actions.MakeConfigurationSaveListenerImpl.configurationSaved(MakeConfigurationSaveListenerImpl.java:101)
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor$SaveRunnable.run(MakeConfigurationDescriptor.java:746)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Comment 1 Vladimir Kvashin 2011-03-04 23:21:56 UTC
This can happen only in the case a project is being saved more than one time:
save is called 1-st time, and while it is in process it is called the 2-nd time. Nothing in project system code prevents this. I'll fix this.
Comment 2 Vladimir Kvashin 2011-03-06 00:07:10 UTC
http://hg.netbeans.org/cnd-main/rev/f9be6c21ce86
Comment 3 Quality Engineering 2011-03-07 05:35:24 UTC
Integrated into 'main-golden', will be available in build *201103070000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f9be6c21ce86
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: don't allow to save the same project in parallel (fixing #196300 FileNotFoundException, #196238 Importing of the remote project breaks the original project )