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
ospehnerospehner 

Apex webservice error - Cricular graph object detected

Hi everyone,

 

I developped an Apex webservice class which return a complex type. Webservice is called by Java code. All my Apex tests run fine but then when Java code get this error :

 

"Circular Object Graph detected during serialization, you can not have circular object references in an Apex WebService response."

 

I have no idea where does it comes from :

 

- Java development environment configuration

- Apex code

- Data serialization return from my class. My complex type I return contains list.

 

Please help.