function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DrewK.ax1106DrewK.ax1106 

Eclipse Force.com IDE Save Errors

Any ideas on how to fix this? Thanks.

 

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    **** line 1    Force.com save problem


Best Answer chosen by Admin (Salesforce Developers) 
nelsonatgrouponnelsonatgroupon

Just to update everyone, its July 2012 and we are having issues with Java JRE 7u5 and JDK 7u5.

 

So I DOWNGraded with the follwing steps:

 

  1. Manually UnInstall  any JRE/JDK versions you have on your PC via: Control Panel\Programs\Programs and Features (remove all Java v.7)
  2. Download (&install) JRE 6.27 from:  http://www.oracle.com/technetwork/java/javase/downloads/jre-6u27-download-440425.html
  3. Download (&install) JDK 6.27 from:  http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u27-download-440405.html
  4. Download Eclipse 3.6 (Helios):  http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-win32-x86_64.zip  (can take a while to download...)
  5. Follow the Force.com IDE instructions for Eclipse 3.6:  http://wiki.developerforce.com/page/Force.com_IDE_Installation_for_Eclipse_3.6

This worked fine.

 

Obviously we are slightly concerned that we now have an "old" version of JRE on our PCs (because security-concious apps like GoToMeeting require the latest versions to work) >> Salesforce, Please Solve this so we can use the latest (most secure/fast) version of JRE/JDK Thanks. :-)

All Answers

Ivar@MarelIvar@Marel

I get the same error on trying to create a new project in Eclipse. Can anyone shed a light on this?

AMIT_SFDCAMIT_SFDC



Okay I got to the bottom of it. Solution: 

- 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, downgrading solved the problem.

DaveHDaveH

Excellent! That did it thanks!

jeff00seattlejeff00seattle

Is the proposed installation fix pertaining to Save Errors still up-to-date?

 

Thanks

 

Jeff in Seattle

nelsonatgrouponnelsonatgroupon

Just to update everyone, its July 2012 and we are having issues with Java JRE 7u5 and JDK 7u5.

 

So I DOWNGraded with the follwing steps:

 

  1. Manually UnInstall  any JRE/JDK versions you have on your PC via: Control Panel\Programs\Programs and Features (remove all Java v.7)
  2. Download (&install) JRE 6.27 from:  http://www.oracle.com/technetwork/java/javase/downloads/jre-6u27-download-440425.html
  3. Download (&install) JDK 6.27 from:  http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u27-download-440405.html
  4. Download Eclipse 3.6 (Helios):  http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/SR2/eclipse-java-helios-SR2-win32-x86_64.zip  (can take a while to download...)
  5. Follow the Force.com IDE instructions for Eclipse 3.6:  http://wiki.developerforce.com/page/Force.com_IDE_Installation_for_Eclipse_3.6

This worked fine.

 

Obviously we are slightly concerned that we now have an "old" version of JRE on our PCs (because security-concious apps like GoToMeeting require the latest versions to work) >> Salesforce, Please Solve this so we can use the latest (most secure/fast) version of JRE/JDK Thanks. :-)

This was selected as the best answer
HariDineshHariDinesh

Hi,

 

Yes this will Solves the problem.

 

You can understand that Java Version 1.7 breakes some where and problem solved by installing Java 1.6 versions.

http://boards.developerforce.com/t5/Apex-Code-Development/Very-strange-IDE-error-occuring-today/td-p/339769

 

I appreciate you for sharing and it will defiantly useful to lot of people

curtiskcurtisk

That may well solve the "issue", but downgrading Eclipse to a version that was from 2010 and a version of Java from August 2011 (especially considering the numerous severe Java bug/exploits the last few months), that just doesn't feel like a "Solution"

 

michael_mcmahonmichael_mcmahon

CurtisK  +1

 

How long must we wait to be able to use current versions??  Downgrading is a terrible and ridiculous fix.

curtiskcurtisk

Just to follow up, if you look in this thread, you may be able to find a workaround without downgrading, my post there shows how I happened to get it working with my setup, but there are some variations as you'll see

michael_mcmahonmichael_mcmahon
Thanks! I'm checking it out. I appreciate the tip.
huskerwendyhuskerwendy
I'm receiving this error when trying to save a trigger in Eclipse. Is this really still the solution to the error? It's January 2014. Downgrading my version of java sounds like a terrible idea. 
huskerwendyhuskerwendy
This version of Eclipse is not longer supported by Salesforce:
http://wiki.developerforce.com/page/Force.com_IDE_Installation_for_Eclipse_3.6

I've uninstalled and am downloading the newer version indicated on this page:

http://wiki.developerforce.com/page/Force.com_IDE_Installation
Rich PRich P
I found that the errors went away after clicking "Help | Show Force.com Start Page" then selecting "Check for Updates" in the upper right hand corner and updating Force.com. I am still running Eclipse 3.5.2. See this page for details: http://wiki.developerforce.com/page/Updating_the_Force.com_IDE
Rich PRich P
I decided it was time to upgrade Eclipse as well, though upgrading Force.com fixed the error. Note that you can keep the old eclipse installation in place and just name the new install directory "eclipse-4.3" or something to that effect. Create a separate shortcut to each eclipse.exe. Very simple to upgrade following the instructions at: http://wiki.developerforce.com/page/Force.com_IDE_Installation