{"id":2533,"date":"2011-12-08T20:00:12","date_gmt":"2011-12-08T14:30:12","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=2533"},"modified":"2011-12-08T20:00:12","modified_gmt":"2011-12-08T14:30:12","slug":"eclipse-error-unable-to-refresh-from-server-in-force-com","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/eclipse-error-unable-to-refresh-from-server-in-force-com\/","title":{"rendered":"Eclipse Error &#8211; Unable to refresh from server in Force.com"},"content":{"rendered":"<p>This morning when i started the eclipse and tried to refresh the contents from salesforce server, i got an error something like &#8220;<strong>com.salesforce. ide.api.metadata.types. Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor<\/strong>&#8220;.<br \/>\nI started searching for the solution and found below solution on salesforce community.<br \/>\nNote &#8211; I was using Windows 7 operating system.<\/p>\n<p><strong>Solution 1:<\/strong><\/p>\n<ul>\n<li>Use JRE v6 update 27 &#8211; 64bit (downgraded from JRE 7)<\/li>\n<li>Use JDK v6 update 27 &#8211; 64 bit (downgraded from JDK 7)<\/li>\n<li>Re-installed Eclipse SDK 3.6.2<\/li>\n<\/ul>\n<p><!--more-->In short you can say that you need to downgrade JDK installation.<\/p>\n<p>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 <strong>Solution 2 &#8211; worked for me<\/strong>!!!<\/p>\n<hr \/>\n<p><strong>Solution 2:<\/strong><br \/>\nUse the -clean command of eclipse while opening. It can be done by adding the attribute &#8220;-clean&#8221; in the shortcut icon of the eclipse.<\/p>\n<blockquote><p>eclipse.exe -clean<\/p><\/blockquote>\n<p>or add the following line to the &#8220;myeclipse.ini&#8221; file, near the top:<\/p>\n<blockquote><p>-clean<\/p><\/blockquote>\n<p>as you can see in below image , right click on eclipse shortcut and add the &#8220;clean&#8221;.<\/p>\n<figure id=\"attachment_2596\" aria-describedby=\"caption-attachment-2596\" style=\"width: 369px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/12\/add-clean-attribute-in-eclipse-shortcut.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2596\" title=\"add clean attribute in eclipse shortcut\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/12\/add-clean-attribute-in-eclipse-shortcut.png?resize=369%2C321&#038;ssl=1\" alt=\"add clean attribute in eclipse shortcut\" width=\"369\" height=\"321\" \/><\/a><figcaption id=\"caption-attachment-2596\" class=\"wp-caption-text\">add clean attribute in eclipse shortcut<\/figcaption><\/figure>\n<p><strong>What does mean by : -clean argument?<\/strong><\/p>\n<p>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&#8230;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.<\/p>\n<p>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) <span style=\"text-decoration: underline;\">it may take up to a couple of minutes<\/span>.<\/p>\n<p><a title=\"Eclipse -clean argument\" href=\"http:\/\/www.eclipse.org\/eclipse\/platform-core\/documents\/3.1\/debug.html\" rel=\"nofollow\">Read more in detail here<\/a><\/p>\n<hr \/>\n<p><strong>Solution 3:<\/strong><br \/>\n<strong>Case : If you have more than one JRE installed.<\/strong><br \/>\n<strong> Solution :<\/strong><br \/>\nIn Eclipse &#8220;<strong>Windows | Preferences | Java | Installed JREs<\/strong>&#8220;, select JRE 6, if entry is not visible and JRE 6 is installed then manually add the JRE and select.<\/p>\n<figure id=\"attachment_2553\" aria-describedby=\"caption-attachment-2553\" style=\"width: 488px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/12\/Eclipse-force.com-installed-JRE.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2553 \" title=\"Eclipse force.com installed JRE\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/12\/Eclipse-force.com-installed-JRE.png?resize=488%2C372&#038;ssl=1\" alt=\"Eclipse force.com installed JRE\" width=\"488\" height=\"372\" \/><\/a><figcaption id=\"caption-attachment-2553\" class=\"wp-caption-text\">Eclipse force.com installed JRE<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Solve the force.com error of the eclipse while getting the refresh from server. &#8220;com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor&#8221;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[23,9],"tags":[86,331],"class_list":["post-2533","post","type-post","status-publish","format-standard","hentry","category-configuration","category-salesforce","tag-eclipse","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":968,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/install-force-com-ide-in-eclipse-salesforce-com\/","url_meta":{"origin":2533,"position":0},"title":"Install or Update Force.com IDE in Eclipse &#8211; Salesforce.com","author":"Jitendra","date":"September 4, 2010","format":false,"excerpt":"Install the Salesforce IDE and Set up the Salesforce Project in Eclipse.","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Eclipse Kepler","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Eclipse-Kepler.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2892,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-migration-tool-ant\/","url_meta":{"origin":2533,"position":1},"title":"Complete Salesforce Deployment Guide using Ant Migration Tool","author":"Jitendra","date":"June 5, 2012","format":false,"excerpt":"Step by Step tutorial of Salesforce Migration using ANT tool with Proxy settings and retrieving content from Salesforce Organization. Also fix some common errors like java.lang.OutOfMemoryError or unable to find tools.jar","rel":"","context":"In &quot;Configuration&quot;","block_context":{"text":"Configuration","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/configuration\/"},"img":{"alt_text":"Salesforce Get ANT version ","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/Salesforce-Get-ANT-version-Original.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/Salesforce-Get-ANT-version-Original.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/Salesforce-Get-ANT-version-Original.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3086,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-git-eclipse-egit-better-and-distributed-source-control\/","url_meta":{"origin":2533,"position":2},"title":"Salesforce + Git + Eclipse + EGIT = Better and Distributed Source Control","author":"Jitendra","date":"September 16, 2012","format":false,"excerpt":"During my J2EE and .Net days, I was much dependent on the subversion repository. I had never thought my code without SVN. When I moved to Salesforce few years back, the first thing I missed is code repository to have better source code control. As svn creates either \".svn\"\u009d or\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Architecture of GIT","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/09\/Architecture-of-GIT.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5246,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/resolve-error-while-fetching-project-code-in-force-com-ide\/","url_meta":{"origin":2533,"position":3},"title":"Resolve error while fetching project code in Force.com IDE","author":"Jitendra","date":"January 20, 2016","format":false,"excerpt":"Resolve Force.com IDE error while fetching Salesforce project because of different version","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Eclipse Force.com IDE - MARS.1","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2016\/01\/Eclipse-Force.com-IDE-MARS.1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":287,"url":"https:\/\/www.jitendrazaa.com\/blog\/java\/install-sun-java-6-on-ubuntu-10-04\/","url_meta":{"origin":2533,"position":4},"title":"How to Install java on Ubuntu 10 and Ubuntu 11","author":"Jitendra","date":"June 13, 2010","format":false,"excerpt":"Run below command on the terminal of ubuntu to install the JAVA. Ubuntu 10 : Ubuntu 11:","rel":"","context":"In &quot;JAVA&quot;","block_context":{"text":"JAVA","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1192,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/step-by-step-salesforce-tutorial-creating-custom-object-1-of-n\/","url_meta":{"origin":2533,"position":5},"title":"Step by Step Salesforce Tutorial \u2013 Creating custom object \u2013 1 of 6","author":"Jitendra","date":"October 6, 2010","format":false,"excerpt":"Step by Step Salesforce Tutorial - Creating custom object - 1 of n tutorial series","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Create Custom object Eclipse Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/10\/Create-Custom-object-Eclipse-Salesforce-300x290.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=2533"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2533\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=2533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=2533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=2533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}