Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Possible loop in thredds.client.catalog graph? #1284

Open
JohnLCaron opened this issue May 14, 2019 · 0 comments
Open

Possible loop in thredds.client.catalog graph? #1284

JohnLCaron opened this issue May 14, 2019 · 0 comments

Comments

@JohnLCaron
Copy link
Collaborator

Adding this method to DatasetNode:
@OverRide
public String toString() {
return MoreObjects.toStringHelper(this)
.add("parent", parent)
.add("name", name)
.add("flds", flds)
.toString();
}

causes a test failure:

thredds.server.cdmr.TestCdmRemoteServer2.testUrlReading

Error Message
java.lang.StackOverflowError

Stacktrace
java.lang.StackOverflowError
at java.util.HashMap$EntryIterator.(HashMap.java:1474)
at java.util.HashMap$EntrySet.iterator(HashMap.java:1014)
at java.util.AbstractMap.toString(AbstractMap.java:547)
at java.util.Collections$UnmodifiableMap.toString(Collections.java:1493)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.google.common.base.MoreObjects$ToStringHelper.toString(MoreObjects.java:353)
at thredds.client.catalog.DatasetNode.toString(DatasetNode.java:124)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.google.common.base.MoreObjects$ToStringHelper.toString(MoreObjects.java:353)
at thredds.client.catalog.DatasetNode.toString(DatasetNode.java:124)
....

JohnLCaron added a commit to JohnLCaron/thredds that referenced this issue May 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant