Tuesday 4 September 2012

com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

While creating New Force.com project or while adding new resource to your already existing projects, if you are getting the below mentioned error message.

com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

 Please follow the steps below.

This error is because of the Java 1.7 so till the time this release gets fixed, we need to downgrade our JRE to 1.6, this could be a really tedious task and the simplest way that I found and  I did was, Replaced the contents of floder C:\Program Files\Java\jre7 with that of C:\Program Files\Java\jre6 (i already had java 6 hence i could do so, If you do not have you would need to download Jre6).

Doing above mentioned swapping of files saved me from uninstalling (Java7) and reinstalling (Java6) just by copying files of these two folders i can anytime switch back to java7 or java6 as per my requirement.

2 comments:

  1. This little tweak worked! Thanks. Parm

    ReplyDelete
  2. You are awesome !! you saved my day :) Thank you soooo much

    May God bless you ..

    ReplyDelete