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
AnwarAnwar 

How To Synchronise Project with Force.com IDE

Hello All,

 

I am trying to create fields in salesforce through Force.com IDE.

 

But i am getting an error: 

 

Unable to synchronize resource 'Ownership__c.object' to server:
classcastException:
com.salesforce.ide,api.metadata.types,Metadata$JaxbAccessorF_fullName cannot be cast to com,sun.xml,internal.bind,v2,runtime.reflect.Accessor.
Reason:
com.salesforce.ide,api.metadata.types,Metadata$JaxbAccessorF_fullName cannot be cast to com,sun.xml,internal.bind,v2,runtime.reflect.Accessor.

 

Kindly advice.

 

Thanks

 

Anwar

 

rocwilcoxrocwilcox

I've seen this type of "cast" error before related to having multiple versions of java.

Are you using any of the API? stricly the IDE? 

 

Other than that you might have some bad syntax in that .object.