facebook

Java file Errors and "Resource already exists on disk&q

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #320490 Reply

    Frank Lawlor
    Participant

    I am having a frequent problem when editing my project.
    I’ve seen this problem in the past (other ME versions).

    When I am editing a java file and save it, suddenly the file shows a bunch of errors and some other files also indicate errors in the package explorer. The current file will say it cannot find the imports for those other files with errors.

    There are no real errors.

    If I try to do a clean I get the error “Resource already exists on disk” about one of the files in the target directory for the class files.

    The only way I’ve found to clear the problem is to manually delete the class files in the target directory and then run clean.

    I tried to restart ME with the -clean option and that did not help.
    I’ve restarted ME many times and it didn’t help.

    How do I stop it from doing this?

    #320521 Reply

    support-joy
    Member

    flawlor,

    I am afraid, your issue is not clear to me. Could you provide below details –

    1. Copy and paste your installation details. Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details
    2. Clear your .log file, replicate issue and attach file
    3. Attach a screenshot of the issue you are facing to help me get a visual
    4. What is the type of project you are working on? Is this project created in MyEclipse or outside ME? Are you using any configuration management tool such as CVS / VSS?

    #320525 Reply

    Frank Lawlor
    Participant

    The requested info is attached.

    The project was created in another eclipse and imported into my ME9.
    Everything worked well (for months) until the problem started. Now this error recurs frequently while I’m working (1 per hour).

    We are using RTC as the repo.

    Attachments:
    You must be logged in to view attached files.
    #320526 Reply

    Frank Lawlor
    Participant

    The requested info is attached.

    The project was created in another eclipse and imported into my ME9.
    Everything worked well (for months) until the problem started. Now this error recurs frequently while I’m working (1 per hour).

    We are using RTC as the repo.

    Attachments:
    You must be logged in to view attached files.
    #320542 Reply

    support-joy
    Member

    flawlor,

    Thank you for the screenshot and attachments. Could you clarify what is the perspective you are using? Screenshot shows as “_FDL_Java”. Also attach a screenshot of builders (right click on your project > properties > builders)

    #320574 Reply

    Frank Lawlor
    Participant

    Joy,

    The perspective is basically the MyEclipse Java perspective, but re-arranged a bit for my convenience.

    Attached is the screenshot you wanted.

    Attachments:
    You must be logged in to view attached files.
    #320607 Reply

    support-joy
    Member

    flawlor,

    Thank you for the screenshot and detail. I have escalated your issue to dev team members. They would get back to you on this shortly.

    Sorry for the inconvenience.

    #320645 Reply

    support-tony
    Keymaster

    Frank,

    I notice that you have a builder specified that is missing. It might be worth fixing that, just to eliminate that as connected to this problem (which I don’t think it is). If you don’t use the builder (and, if it’s missing, I suspect you don’t), just select it and remove it.

    This seems to related to base eclipse functionality. If you look at the exception trace, it appears that an output folder (presumably “target”) has been cleared and some resources are being copied back in but one of the files to be copied (security.properties) is already there. It’s as if something else has placed the file there before the Java builder got round to copying it back.

    Is there a security.properties file in the source folder? Does this problem occur only occasionally after saving some changes? Can you try a clean and build (Project->Clean) and see if you can reproduce the problem?

    I’m wondering if one of your extra plug-ins is kicking in from time to time and recreating or copying the file. Do you know what the security.properties file is related to (i.e. what piece of technology is using it or needs it)?

    #320652 Reply

    Frank Lawlor
    Participant

    I noticed that these property files had dates of 9/2.

    I watched the directory as I performed the operations.

    I deleted the security.properties file and then did a refresh as the directions on the error message say to. Immeditely the security.properties file reappeard. It is being copied from its source directory.

    When I now do the clean, it complains about a DIFFERENT property file in the target directory. When I delete that, refresh and do clean, it again complains about security.properties.

    I tried removing more and more of the property files, but it just complains about the unremoved ones and on the next clean it complains about one that was automatically copied back.

    The only way I can get it to actually do a clean is to delete ALL the target files manually first.

    I disabled the unused builder and it had no effect.

    The problem only occurs after about an hour of editing java files.

    The target directory is not stored in the repository so I don’t think it is involved.

    #320664 Reply

    support-tony
    Keymaster

    Frank,

    Do you know what the security.properties file is? I’m not familiar with it and wonder if it is connected with one of your other plug-ins (maybe RTC?). Can you turn off all of the builders on that project and then do a clean, to see if the file appears again? If it doesn’t, turn on the PyDev builder and do a clean. If the file still doesn’t reappear, turn on the Java Builder and do a clean.

    Answering these questions might give us more to go on, but it is certainly odd behavior.

    #320676 Reply

    Frank Lawlor
    Participant

    security.properties is just one of the java application properties files. When I disable the java builder it is no longer copied from the source to the target when I do a refresh or clean. When I turn the java builder back on it copies the delected security.properties file when I do a refresh and then complains about one of the other files wich is still in the target directory.

    One of the jobs of the builder is to copy these types of files from the source to the target.

    #320692 Reply

    support-tony
    Keymaster

    Frank,

    Sorry you’re still seeing this issue.

    Some other things to try or to look for:

    Is the target output folder linked to by any other projects, or within the same project? This might have done this by accident. Another project builder may be getting in and copying files to that folder while your builder is trying to do its stuff, or the builder itself is being confused by the link.

    Try closing any projects that this problem project doesn’t depend on, so that the problem can be narrowed down, if it still occurs.

    Try creating a new workspace (you can copy settings across from your current workspace, either by using the File->Switch Workspace->Other wizard, or exporting and importing settings), and then importing your projects from the old workspace (this can be done in one operation) making sure you select the option to copy the files to your new workspace.

    the security.properties file is not a standard Java project file, so I’m still confused by what it is. When the problem occurs with that other resource file, is it always the same other file, or does it vary?

    What do you mean by “refresh”, when you say you do a refresh? File->Refresh just ensures that the files in the project are synchronized with the physical file system. If the problem is occurring then, it might be because some external process is getting involved somehow.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Java file Errors and "Resource already exists on disk&q

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in