Eclipse Error – Unable to refresh from server in Force.com

This morning when i started the eclipse and tried to refresh the contents from salesforce server, i got an error something like “com.salesforce. ide.api.metadata.types. Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor“.
I started searching for the solution and found below solution on salesforce community.
Note – I was using Windows 7 operating system.

Solution 1:

  • Use JRE v6 update 27 – 64bit (downgraded from JRE 7)
  • Use JDK v6 update 27 – 64 bit (downgraded from JDK 7)
  • Re-installed Eclipse SDK 3.6.2

In short you can say that you need to downgrade JDK installation.

However, uninstall and re-install would have been taken much of my time and therefore i started to search for the different solution and found below method and Solution 2 – worked for me!!!


Solution 2:
Use the -clean command of eclipse while opening. It can be done by adding the attribute “-clean” in the shortcut icon of the eclipse.

eclipse.exe -clean

or add the following line to the “myeclipse.ini” file, near the top:

-clean

as you can see in below image , right click on eclipse shortcut and add the “clean”.

add clean attribute in eclipse shortcut
add clean attribute in eclipse shortcut

What does mean by : -clean argument?

If you are having problems getting the system to pick up your new plug-in, then perhaps your configuration is out of date. This might be the case if you just unzipped a new plug-in into your /plugins directory and started up…Eclipse had parsed and cached the list of plug-ins that were previously in that directory and now it has changed without it recognizing that fact. You can clear any per-configuration cached data by using the -clean command line argument.

Note that -clean flushes the registry caches (amung other information) and forces the plug-in manifests to be parsed in order to regenerate the registry. This is not optimal for everyone all the time because (depending on the size of your development environment) it may take up to a couple of minutes.

Read more in detail here


Solution 3:
Case : If you have more than one JRE installed.
Solution :
In Eclipse “Windows | Preferences | Java | Installed JREs“, select JRE 6, if entry is not visible and JRE 6 is installed then manually add the JRE and select.

Eclipse force.com installed JRE
Eclipse force.com installed JRE

Posted

in

,

by


Related Posts

Comments

11 responses to “Eclipse Error – Unable to refresh from server in Force.com”

  1. Jitendra Zaa Avatar

    Go to eclipse shortcut – edit the path at end, add “clean” word as shown in image. Let me know if you face difficulty.

  2. ramu Avatar
    ramu

    where i find sfdc properties window……….

    now iam using eclipse-helios-3.6

  3. upendar Avatar
    upendar

    plz tell me how to create profiles,roles,role hierarchy,dataloader

    thank you

    1. Jitendra Zaa Avatar

      Hi,
      This is very generic question. Please visit http://boards.developerforce.com/t5/General-Development/bd-p/general_development to get detailed information on above topics.
      Regards,
      Jitendra Zaa

  4. Pawan Avatar
    Pawan

    You are awesome !! Solution 2 worked for me too !

  5. Pawan Avatar
    Pawan

    Solution 4:

    Use Eclipse 3.6 – HeliosDownload JRE 6 from Java site and install it.
    Now go to the eclipse.ini file in your eclipse directory
    place this line in the file.

    -vm
    C:Program FilesJavajre6binjavaw.exe

    Restart Eclipse

    Now create a new Force.com project and try saving the contents .It will do without any errors now.

  6. Twan Avatar
    Twan

    Thanks a lot for Solution 2 🙂

  7. Bhupendra Avatar
    Bhupendra

    Solution 2 works 🙂

  8. Hiren Soni Avatar
    Hiren Soni

    Solution 2 Works for me..

  9. Kunal Avatar
    Kunal

    Downgrading worked for me..

  10. kshitijlawate Avatar
    kshitijlawate

    Thanks, adding “-clean” parameter worked for me. I was not getting any error message. The refresh for existing project was working fine for me.

    While creating new project, after components selection it was not proceeding further. Nothing was happening after clicking on ‘Next’ button. The issue is resolved now.

Leave a Reply to ramuCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Jitendra Zaa

Subscribe now to keep reading and get access to the full archive.

Continue Reading