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 165628 - Diff cannot be applied
Summary: Diff cannot be applied
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: diff-issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 16:57 UTC by _ tboudreau
Modified: 2009-05-26 07:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (1.37 KB, patch)
2009-05-20 16:57 UTC, _ tboudreau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2009-05-20 16:57:22 UTC
Download the mercurial source.  Open  $SRC/mercurial/keepalive.py in the editor.  Right click
$SRC/mercurial/keepalive.py.  Choose Tools > Apply Diff Patch and apply the attached patch.

The following exception is thrown endlessly in the log file and the patch is not applied.


Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get
shared access to C:\mercurial-4c030ada58d2\mercurial\keepalive.py (probably open
ed for writing).
        at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSExce
ption.java:115)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.MutualExclusion
Support.addResource(MutualExclusionSupport.java:97)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInpu
tStream(FileObj.java:154)
Caused: java.io.FileNotFoundException
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInpu
tStream(FileObj.java:179)
        at org.openide.filesystems.MIMESupport$CachedFileObject.getInputStream(M
IMESupport.java:368)
        at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Ty
pe.accept(MIMEResolverImpl.java:1061)
        at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Ty
pe.access$2800(MIMEResolverImpl.java:723)
[catch] at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Fi
leElement.resolve(MIMEResolverImpl.java:683)
        at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Fi
leElement.access$700(MIMEResolverImpl.java:654)
        at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$Im
pl.findMIMEType(MIMEResolverImpl.java:313)
        at org.openide.filesystems.MIMESupport$CachedFileObject.resolveMIME(MIME
Support.java:343)
        at org.openide.filesystems.MIMESupport$CachedFileObject.getMIMEType(MIME
Support.java:284)
        at org.openide.filesystems.MIMESupport.findMIMEType(MIMESupport.java:120
)
        at org.openide.filesystems.FileUtil.getMIMEType(FileUtil.java:1314)
        at org.openide.filesystems.FileObject.getMIMEType(FileObject.java:492)
        at org.netbeans.spi.palette.PaletteSwitch.getPaletteFromTopComponent(Pal
etteSwitch.java:219)
        at org.netbeans.spi.palette.PaletteSwitch.findPalette(PaletteSwitch.java
:163)
        at org.netbeans.spi.palette.PaletteSwitch.run(PaletteSwitch.java:143)
        at org.netbeans.spi.palette.PaletteSwitch$1.propertyChange(PaletteSwitch
.java:320)
        at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)

        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:327)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:263)
        at org.netbeans.core.windows.RegistryImpl.doFirePropertyChange(RegistryI
mpl.java:316)
        at org.netbeans.core.windows.RegistryImpl.tryFireChanges(RegistryImpl.ja
va:289)
        at org.netbeans.core.windows.RegistryImpl.selectedNodesChanged(RegistryI
mpl.java:234)
        at org.netbeans.core.windows.RegistryImpl.topComponentActivated(Registry
Impl.java:172)
        at org.netbeans.core.windows.WindowManagerImpl.notifyRegistryTopComponen
tActivated(WindowManagerImpl.java:1024)
        at org.netbeans.core.windows.Central.setActiveMode(Central.java:235)
        at org.netbeans.core.windows.Central.userActivatedMode(Central.java:1847
)
        at org.netbeans.core.windows.view.DefaultView.userActivatedModeView(Defa
ultView.java:620)
        at org.netbeans.core.windows.view.ui.TabbedHandler$ActivationManager.han
dleActivation(TabbedHandler.java:490)
        at org.netbeans.core.windows.view.ui.TabbedHandler$ActivationManager.eve
ntDispatched(TabbedHandler.java:437)
        at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.ja
va:2408)
        at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java
:2300)
        at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java
:2299)
        at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2258)
        at java.awt.Component.dispatchEventImpl(Component.java:4516)
        at java.awt.Container.dispatchEventImpl(Container.java:2141)
        at java.awt.Component.dispatchEvent(Component.java:4446)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4663
)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4323)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4256)
        at java.awt.Container.dispatchEventImpl(Container.java:2127)
        at java.awt.Window.dispatchEventImpl(Window.java:2612)
        at java.awt.Component.dispatchEvent(Component.java:4446)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:605)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.j
ava:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:286)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:191)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
ALL [null]: Cannot get shared access to C:\mercurial-4c030ada58d2\mercurial\keep
alive.py (probably opened for writing).
ALL [null]: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot
get shared access to C:\mercurial-4c030ada58d2\mercurial\keepalive.py (probably
opened for writing).
Comment 1 _ tboudreau 2009-05-20 16:57:56 UTC
Created attachment 82499 [details]
patch
Comment 2 _ tboudreau 2009-05-20 17:00:21 UTC
However, the content of keepalive.py is deleted.  User data loss -> P1.
Comment 3 Tomas Stupka 2009-05-20 17:12:05 UTC
it would be nice if you also could attach your messages.log file

also please see "Use Attachments" at http://wiki.netbeans.org/IssuezillaRules on how to attach long stacktraces

thanks
Comment 4 Ondrej Vrabec 2009-05-20 17:26:55 UTC
fix: cdev #52b6b4f2401e
Comment 5 Quality Engineering 2009-05-21 08:29:45 UTC
Integrated into 'main-golden', will be available in build *200905210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/52b6b4f2401e
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #165628 - Diff cannot be applied
file encoding detection before locking the file
Comment 6 Quality Engineering 2009-05-26 07:32:15 UTC
Integrated into 'main-golden', will be available in build *200905260201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b41143dd0899
User: Tomas Stupka <tstupka@netbeans.org>
Log: #165628 - Diff cannot be applied