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 179506 - No writes during startup.
Summary: No writes during startup.
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Martin Entlicher
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2010-01-14 08:18 UTC by Martin Entlicher
Modified: 2010-01-14 23:39 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 Martin Entlicher 2010-01-14 08:18:54 UTC
Properties$PrimitiveRegister.findSettings(Properties.java:605) creates the settings file even if we want to just read the settings:

checkWrite: /hudson/workdir/jobs/trunk/workspace/ide.kit/build/test/qa-functional/work/userdir0/config/Services/org-netbeans-modules-debugger-Settings.properties
java.lang.Exception: checkWrite: /hudson/workdir/jobs/trunk/workspace/ide.kit/build/test/qa-functional/work/userdir0/config/Services/org-netbeans-modules-debugger-Settings.properties
	at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:413)
	at java.io.File.createNewFile(File.java:849)
	at org.openide.filesystems.LocalFileSystem.createData(LocalFileSystem.java:268)
	at org.openide.filesystems.LocalFileSystem$Impl.createData(LocalFileSystem.java:550)
	at org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.java:471)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:891)
	at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1087)
	at org.openide.filesystems.FileUtil.createData(FileUtil.java:891)
	at org.openide.filesystems.MultiFileObject.createData(MultiFileObject.java:1087)
	at org.netbeans.api.debugger.Properties$PrimitiveRegister.findSettings(Properties.java:605)
	at org.netbeans.api.debugger.Properties$PrimitiveRegister.load(Properties.java:456)
	at org.netbeans.api.debugger.Properties$PrimitiveRegister.getProperty(Properties.java:431)
	at org.netbeans.api.debugger.Properties$PropertiesImpl.getArray(Properties.java:1068)
	at org.netbeans.api.debugger.Properties$DelegatingProperties.getArray(Properties.java:1432)
	at org.netbeans.modules.debugger.ui.actions.DebugMainProjectAction$AttachHistorySupport.init(DebugMainProjectAction.java:213)
	at org.netbeans.modules.debugger.ui.actions.DebugMainProjectAction.getToolbarPresenter(DebugMainProjectAction.java:169)
	at org.openide.awt.Toolbar$Folder.createInstance(Toolbar.java:424)
	at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:870)
	at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:735)
	at org.openide.util.Task.run(Task.java:245)
	at org.netbeans.modules.openide.loaders.AWTTask.run(AWTTask.java:70)
	at org.netbeans.modules.openide.loaders.AWTTask$Processor.run(AWTTask.java:111)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Martin Entlicher 2010-01-14 08:43:13 UTC
Fixed in changeset:   156755:97e1e01c5674
http://hg.netbeans.org/main/rev/97e1e01c5674
Comment 2 Quality Engineering 2010-01-14 23:39:07 UTC
Integrated into 'main-golden', will be available in build *201001150201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/97e1e01c5674
User: mentlicher@netbeans.org
Log: #179506 - Do not create settings file when loading Properties.