Bug 465364 - ResourceException in Resource.delete (794)
Summary: ResourceException in Resource.delete (794)
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2015-04-24 02:21 EDT by EPP Error Reports CLA
Modified: 2017-06-30 16:43 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EPP Error Reports CLA 2015-04-24 02:21:04 EDT
The following incident was reported via the automated error reporting:


    code:                   10,000
    plugin:                 org.eclipse.ltk.ui.refactoring_3.7.200.v20140625-1835
    message:                Internal Error
    fingerprint:            0e7aa1a0
    exception class:        org.eclipse.core.internal.resources.ResourceException
    exception message:      Problems encountered while deleting resources.
    number of children:     1
    
    org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
    at org.eclipse.core.internal.resources.Resource.delete(Resource.java:794)
    at org.eclipse.core.internal.resources.Project.delete(Project.java:323)
    at org.eclipse.ltk.core.refactoring.resource.DeleteResourceChange.perform(DeleteResourceChange.java:160)
    at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
    at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:258)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:306)
    at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:92)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:218)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
    at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
   

---   

      code:                   273
      plugin:                 org.eclipse.core.resources_3.9.100.v20150313-1707
      message:                Problems encountered while deleting resources.
      fingerprint:            02449079
      number of children:     2
    
    
   

---   

        code:                   273
        plugin:                 org.eclipse.core.resources_3.9.100.v20150313-1707
        message:                Could not delete 'C:\Users\Lukas\workspace\jOOQ-ci'.
        fingerprint:            02449079
        exception class:        org.eclipse.core.runtime.CoreException
        exception message:      Problems encountered while deleting files.
        number of children:     1
    
    org.eclipse.core.runtime.CoreException: Problems encountered while deleting files.
    at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:135)
    at org.eclipse.core.internal.resources.ResourceTree.internalDeleteProject(ResourceTree.java:443)
    at org.eclipse.core.internal.resources.ResourceTree.standardDeleteProject(ResourceTree.java:850)
    at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1835)
    at org.eclipse.core.internal.resources.Resource.delete(Resource.java:781)
    at org.eclipse.core.internal.resources.Project.delete(Project.java:323)
    at org.eclipse.ltk.core.refactoring.resource.DeleteResourceChange.perform(DeleteResourceChange.java:160)
    at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
    at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:258)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:306)
    at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:92)
    at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:218)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
    at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
   

---   

          code:                   273
          plugin:                 org.eclipse.core.filesystem_1.5.0.v20150313-1707
          message:                Problems encountered while deleting files.
          fingerprint:            00000000
          number of children:     1
    
    
   

---   

            code:                   273
            plugin:                 org.eclipse.core.filesystem_1.5.0.v20150313-1707
            message:                Could not delete: C:\Users\Lukas\workspace\jOOQ-ci.
            fingerprint:            00000000
            number of children:     0
    
    
   

---   

        code:                   273
        plugin:                 org.eclipse.core.resources_3.9.100.v20150313-1707
        message:                Could not delete 'C:\Users\Lukas\workspace\jOOQ-ci'.
        fingerprint:            00000000
        number of children:     0
    
    
   
  

General Information:

    reported-by:      Lukas Eder
    anonymous-id:     db231407-f5a0-4b36-b04d-38aa61d7e49a
    eclipse-build-id: 4.5.0.I20150320-0800
    eclipse-product:  org.eclipse.epp.package.java.product
    operating system: Windows8 6.2.0 (x86_64) - win32
    jre-version:      1.8.0_40-b25

The following plug-ins were present on the execution stack (*):
    1. org.eclipse.core.filesystem_1.5.0.v20150313-1707
    2. org.eclipse.core.resources_3.9.100.v20150313-1707
    3. org.eclipse.jface_3.11.0.v20150313-1544
    4. org.eclipse.ltk.core.refactoring_3.6.200.v20140826-0859
    5. org.eclipse.ltk.ui.refactoring_3.7.200.v20140625-1835

Please note that:
* Messages, stacktraces, and nested status objects may be shortened.
* Bug fields like status, resolution, and whiteboard are sent
  back to reporters.
* The list of present bundles and their respective versions was
  calculated by package naming heuristics. This may or may not reflect reality.

Other Resources:
* Report: https://dev.eclipse.org/recommenders/committers/confess/#/problems/552bd8f4e4b026254ee03b58  
* Manual: https://dev.eclipse.org/recommenders/community/confess/#/guide


Thank you for your assistance.
Your friendly error-reports-inbox.
Comment 1 Szymon Ptaszkiewicz CLA 2015-05-04 10:44:02 EDT
This exception indicates that there was some unknown reason why the file/folder 'C:\Users\Lukas\workspace\jOOQ-ci' could not be deleted. Usually, it happens when a file is opened in external editor or if there is some external action reading from the file at the time we try to delete it. There is nothing we can do to improve it because this is highly platform dependent and can be caused by external programs or user activity. However, it is also possible that the file is locked by Eclipse itself (see an example in bug 327192). In such case we would need reproducible steps to be able to investigate further to find the cause. Please do reopen if you have consistent steps how to reproduce it.
Comment 2 Rodrigo Izquierdo CLA 2016-09-18 05:01:37 EDT
I came across with this problem with a synced SVN file which is a link from a folder I don't need any longer, I have an old SVN setup and I want now to get rid of the linked folder but this error is thrown:

"An exception has been caught while processing the refactoring 'Delete'.

Reason:
Problems encountered while deleting resources.

Details >>
Problems encountered while deleting resources.
  org.apache.subversion.javahl.ClientException: The specified path has an unexpected status
svn: '/home/***/***/***/***' is the root of a working copy and cannot be deleted

Problems encountered while deleting resources.
  org.apache.subversion.javahl.ClientException: The specified path has an unexpected status
svn: '/home/***/***/***/***' is the root of a working copy and cannot be deleted



The properties of the file say: status:external properties status:non-svn.
But everytime I delete it from local, it doesn't get removed on my repository when commiting and the linked folder doesn't even appear in the SVN server's trunk/branch.
Comment 3 Scott Warner CLA 2016-09-28 11:49:24 EDT
I just deleted the root of a hierarchical project with sub-projects.  I selected delete and checked the 'delete contents' checkbox
Comment 4 Vibor Pokupec CLA 2017-05-11 10:14:44 EDT
It happened to me while I was trying to delete project and files on file system. It happened because I had that folder open with windows explorer.

Perhaps eclipse could check if files are in use before offering user to delete them?
Comment 5 Sebastian Zartner CLA 2017-06-30 16:43:11 EDT
(In reply to Vibor Pokupec from comment #4)
> It happened to me while I was trying to delete project and files on file
> system. It happened because I had that folder open with windows explorer.
> 
> Perhaps eclipse could check if files are in use before offering user to
> delete them?

It also happened to me when deleting a project. I didn't have the Window Explorer open, though I also assume it happens while the files were still in use.

Sebastian