Issue 11273
Agent.toString throws Stackoverflow
11273
Reporter: mdoering
Assignee: trobertson
Type: Bug
Summary: Agent.toString throws Stackoverflow
Description: in debugger the Agent.toString method threw 'java.lang.StackOverflowError' exception. Seems to be some infinite loops in there - please check
Priority: Critical
Resolution: Fixed
Status: Closed
Created: 2012-05-31 21:42:23.724
Updated: 2013-12-16 17:50:49.346
Resolved: 2012-06-20 15:08:51.781
Author: fmendez@gbif.org
Comment: Indeed, there are infinite loops: agent.toString() calls contact.toString that calls agent.toString(), the same occurs for: identifier, relations, tags, adminPrimaryContact,technicalPrimaryContact, extendedProperties, metadataProperties. The easiest solutions seems to be delete those references in the toString function. This method is not referenced by any other class directly.
Created: 2012-06-20 13:40:38.168
Updated: 2012-06-20 13:40:38.168
Author: trobertson@gbif.org
Created: 2012-06-20 15:08:51.879
Updated: 2012-06-20 15:08:51.879
Fixed with http://code.google.com/p/gbif-registry/source/detail?r=3054
Note this affected more than the reported cases. Circular dependencies existed for the Agent and AgentRelation, Contact, ExtendedProperty, Identifier, MetadataProperty,Service and Tag classes.