facebook

unable to backup/restore workspace [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #201064 Reply

    bobash
    Member

    If I backup and restore (using winzip) a project in my workspace, the .mymetadata file becomes invalid: I can no longer deploy web applications because the “deploy location” is empty. If I use file copy to backup and restore a project then the .mymetadata file is good.
    A binary file compare shows that the .mymetadata file is unchanged. Is there something special about that file — in the slack space perhaps?

    if I move the file to a FAT formatted floppy and put it back it also breaks things.

    bob

    #201069 Reply

    support-michael
    Keymaster

    There is nothing special about the .mymetadata file so I’m not sure what’s up. It is a simple XML text file. I have entered this case into our issue tracking system for further research. I assume that when you move/restore the .mymetadata file I assume that MyEclipse is not running?

    Michael
    MyEclipse Support

    #201083 Reply

    bobash
    Member

    Here’s what I do:
    MyEclipse not running
    win 2000 or xp
    in c:\eclipse\workspace\HelloWorld
    copy .mymetadata goodfile
    edit .mymetadata
    just space – backspace so it’s dirty then save
    start myeclipse
    attempt to deploy HelloWorld project
    deploy location will be blank — can’t deploy
    exit eclipse
    copy goodfile .mymetadata
    start myeclipse
    deploy works again!

    instead of editing .mymetadata, move it to a FAT partition, then back again — can’t deploy

    bob

    #201087 Reply

    support-michael
    Keymaster

    Thanks for the extra details. I believe the problem is the .mymetadata file is out of sync with its corresponding Eclipse resource handle. Try “refresh”ing the .mymetadata file and see if this resolves the problem.

    Michael
    MyEclipse Support

    #201201 Reply

    bobash
    Member

    When I refresh:
    java.lang.NullPointerException encountered while running com.genuitec.eclipse.j2eedt.core.builder.DeploymentDescriptorValidator.

    Can anyone else duplicate my problem?

    bob

    #201207 Reply

    Scott Anderson
    Participant

    Bob,

    Did you refresh the entire project, or just the .mymetadata file. Does the error occur with a full refresh? This looks like it could be this reported bug:
    https://www.genuitec.com/forums/topic/rebuild-project-deployment-descriptor-npe-closed/

    –Scott
    MyEclipse Support

    #201279 Reply

    bobash
    Member

    I refresh the entire project. XML validation for deployment descriptor only. Another strange thing is that if I try what I did from the “Dec 17, 2003 – 03:54 PM” post above, using the goodfile from that date, it does not work. It seems to be time sensitive.
    FYI: I have been conducting these experiments in a using a clean install of win xp, fully patched, a default install of JDK 1.4.2_02, a default install of eclipse 212 and myeclipse upgraded to 2.7rc1.
    I suppose I could try to debug DeploymentDescriptorValidator…

    The workaround that I use is: delete the project and recreate it (having saved .project and .classpath). It recreates a usable .mymetadata file. The project is from the getting started web project development tutorial.

    #201290 Reply

    Riyad Kalla
    Member

    Could this possibly be an encoding issue? Meaning that the file written out is relying on a non-ASCII character that gets toasted when you zip it?

    Bob, besides zipping destroying the file, have you tried RARing it or 7zip’ing it up? I’ve had the built in Windows Zip support kill off files (2 years worth of PPT files from work) before, so I wouldn’t put it past it that its ruining this file for you.

    I’m wondering if you can attach the .myeclipseide file to an email, send it to yourself and then try and use it and see if it still works.

    As you mentioned it might be a timestamp thing, if you right clikc on the file, change its perms, then come back in 20mins and change them back, will that update the “date last chnaged” time stamp? Maybe that’s a way to test the timestamp theory without actually modifying the file (incase its super sensative to change).

    #201368 Reply

    bobash
    Member

    RAR – failed
    email – failed
    timestamp – failed
    It seems that this is a very touchy file.

    #201420 Reply

    Riyad Kalla
    Member

    my god this is strange… Scott/Michael any ideas?

    #201424 Reply

    Scott Anderson
    Participant

    Truly freaky. I’d try refreshing the entire workspace, not just the project, just to make sure all the files are in sync. There’s nothing that we do that is “tricky” or anything with the .mymetadata file. It’s simply an XML config file.

    –Scott
    MyEclipse Support

    #201474 Reply

    bobash
    Member

    fixed in rc2 🙂

    #201476 Reply

    Riyad Kalla
    Member

    hey that’s good to hear!

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: unable to backup/restore workspace [Closed]

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