Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Getting stack overflow exception when Validator.validate(..) validates a complex object. #1401

Closed
pomortaz opened this issue Sep 2, 2016 · 1 comment

Comments

@pomortaz
Copy link

pomortaz commented Sep 2, 2016

Getting stack overflow exception when Validator.validate(..) is called to validate a complex object.
{"kid":null,"kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"xxx","e":"AQAB","d":"xxx","k":null,"key_hsm":null}

Here is the stack trace:
java.lang.StackOverflowError
at com.google.common.reflect.TypeToken$TypeCollector$ForwardingTypeCollector.getRawType(TypeToken.java:1181)
at com.google.common.reflect.TypeToken$TypeCollector.collectTypes(TypeToken.java:1139)
at com.google.common.reflect.TypeToken$TypeCollector.collectTypes(TypeToken.java:1147)
at com.google.common.reflect.TypeToken$TypeCollector.collectTypes(TypeToken.java:1127)
at com.google.common.reflect.TypeToken$TypeCollector$3.collectTypes(TypeToken.java:1114)
at com.google.common.reflect.TypeToken$ClassSet.rawTypes(TypeToken.java:664)
at com.microsoft.rest.Validator.validate(Validator.java:59)
at com.microsoft.rest.Validator.validate(Validator.java:83)
(x100)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants