Pages

Tuesday, February 26, 2013

Error on Fetching, Saving ,Refreshing and Creating force.com Project in Eclipse.


Hi Guys,
Recently I was trying to update some of my code on Eclipse.  It was throwing so wearied Error that i havent seen before.
  
Save error: Unable to perform save on all files: com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor Antibiogram_Survey.page/Cubist Dev/src/pages line 1Force.com save problem

Then i thought may be i have older version of code on my eclipse and i was trying to refresh from the instance and the same error message showed up again. 

Then I thought may be my project got screwed up and was trying to create a new Force.com project, and the error was back.This was driving me crazy and went on doing google and found few solutions online.
  • Downgrading JRE to 1.6 instead of 1.7.
  • Working as an Admin.
  • using -clean
  • Switching between the workspaces.
Then with the above options i was trying to see which option will fix my problem. Firstly I was trying to downgrade my JRE but found it to be  little difficult and lengthy process.
Then i wanted some thing quick to solve my problem. I choose to use switching workspace. magically it started working. 
Follow the following steps to switch between workspaces.
  • Open your eclipse
  • File > Switch workspace >other
  • Now select the same workspace and click on  "ok"
  • This will restart your Eclipse and read to use.
Note : Make sure to copy all your code modifications before choosing this option. Since eclipse will restart after switching between workspaces and all the unsaved data will be lost.


I haven't got a chance to test and comment on the use of "-clean" way of fixing this issue. Eclipse say -clean will remove the loading and cache problems.

hope this helps.


Happy coding. 

No comments:

Post a Comment