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 210929 - Lock when changing icon in branding and then building
Summary: Lock when changing icon in branding and then building
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 180482
  Show dependency tree
 
Reported: 2012-04-10 09:52 UTC by mienamoo
Modified: 2012-04-16 07:48 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 mienamoo 2012-04-10 09:52:43 UTC
NetBeans build 201203280401
JDK 7u3 32-bit

I am working on a Maven-based platform application project. I changed the 16x16 application icon in the branding module (right-click, Branding...). I clicked OK and then invoked Clean and Build on the branding module. I got the error message below. The build did complete.


java.lang.Throwable: Locked by:
	at org.openide.filesystems.FileLock.<init>(FileLock.java:85)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.<init>(LockForFile.java:91)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:102)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:359)
	at org.openide.filesystems.FileObject.getOutputStream(FileObject.java:732)
	at org.netbeans.modules.apisupport.project.spi.BrandingModel$1.run(BrandingModel.java:316)
	at org.netbeans.modules.apisupport.project.spi.BrandingSupport.brandFile(BrandingSupport.java:296)
	at org.netbeans.modules.apisupport.project.spi.BrandingModel.store(BrandingModel.java:274)
	at org.netbeans.modules.apisupport.project.spi.BrandingModel.doSave(BrandingModel.java:832)
	at org.netbeans.modules.apisupport.project.ui.branding.BrandingEditorPanel.doSave(BrandingEditorPanel.java:158)
	at org.netbeans.modules.apisupport.project.ui.branding.BrandingEditorPanel.access$100(BrandingEditorPanel.java:60)
	at org.netbeans.modules.apisupport.project.ui.branding.BrandingEditorPanel$1.actionPerformed(BrandingEditorPanel.java:121)
	at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1342)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6505)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2713)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
	at java.awt.EventQueue.access$000(EventQueue.java:101)
	at java.awt.EventQueue$3.run(EventQueue.java:666)
	at java.awt.EventQueue$3.run(EventQueue.java:664)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:680)
	at java.awt.EventQueue$4.run(EventQueue.java:678)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Comment 1 Jesse Glick 2012-04-10 14:09:31 UTC
Missing stream close.
Comment 2 Jesse Glick 2012-04-10 14:21:32 UTC
core-main #93f547917f0f
Comment 3 Jesse Glick 2012-04-10 14:22:35 UTC
Probably broken since NB 6.9 but may only occur rarely.
Comment 4 Quality Engineering 2012-04-11 09:56:05 UTC
Integrated into 'main-golden', will be available in build *201204110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/93f547917f0f
User: Jesse Glick <jglick@netbeans.org>
Log: #210929: Lock when changing icon in branding and then building
Comment 5 Quality Engineering 2012-04-12 09:54:09 UTC
Integrated into 'main-golden', will be available in build *201204120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/93f547917f0f
User: Jesse Glick <jglick@netbeans.org>
Log: #210929: Lock when changing icon in branding and then building
Comment 6 mienamoo 2012-04-16 07:48:40 UTC
Verified with NetBeans IDE Dev (Build 201204150400), JDK 7u3 64-bit.