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
Salesforce_NikitaSalesforce_Nikita 

Exception Handling

why do we get System.QueryException Comparison method violates its general contract! ?

 

Subhani PSubhani P

Hi ,

 

 

Please check the following link, that may you solve your problem.

 

https://www.java.net//node/700601

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks,
Subhani,
Salesforce Certified Developer,
www.mydbsync.com

Ashish_SFDCAshish_SFDC

Hi Nikita, 

 

If you are getting this error on Eclipse, check the java version - Eclipse has some compatibility issues with java 1.7. 

Try downgrading to 1.6 and this should solve the problem. 

 

Regards,

Ashish