简体   繁体   中英

java.lang.UnsupportedOperationException: JsonObject

I'm trying to make the Identity Toolkit work on my Java App Engine on Eclipse. It works fine until I have to choose my account on AccountChooser.com. After it's chosen, I'm getting the following error:

HTTP ERROR 500

Problem accessing /kalbasidentitytoolkit. Reason:

JsonObject

Caused by:

java.lang.UnsupportedOperationException: JsonObject
    at com.google.gson.JsonElement.getAsString(JsonElement.java:185)
    at com.google.identitytoolkit.GitkitVerifierManager.parseCertsResponse(GitkitVerifierManager.java:94)

What am I missing? The Quick-app using maven works fine.

Most likely the error is caused by the invalid private key. To isolate the root cause, you can grab the latest Google Identity Toolkit library 1.2.6 which was just released. In this version the private key is no longer needed for token verification. Let us know if you still see the same error with the v1.2.6 library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM