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

Crash report: JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING #1640

Open
NgWaiKong opened this issue Sep 2, 2021 · 1 comment

Comments

@NgWaiKong
Copy link

NgWaiKong commented Sep 2, 2021

Hi, we'd like to report a crash which we captured .
we're using com.microsoft.aad:adal 3.1.3

--------- beginning of crash
09-01 20:23:09.393 E/AndroidRuntime(14240): FATAL EXCEPTION: pool-20-thread-1
09-01 20:23:09.393 E/AndroidRuntime(14240): Process: com.microsoft.office.outlook, PID: 14240
09-01 20:23:09.393 E/AndroidRuntime(14240): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(SourceFile:13)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.google.gson.Gson.i(SourceFile:6)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.google.gson.Gson.k(SourceFile:2)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.google.gson.Gson.m(SourceFile:2)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.google.gson.Gson.l(SourceFile:1)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.DefaultTokenCacheStore.getItem(SourceFile:4)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AuthenticationContext$1.getItem(SourceFile:1)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.TokenCacheAccessor.getRegularRefreshTokenCacheItem(SourceFile:3)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.TokenCacheAccessor.getATFromCache(SourceFile:1)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AcquireTokenSilentHandler.getAccessToken(SourceFile:4)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AcquireTokenRequest.tryAcquireTokenSilentLocally(SourceFile:3)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AcquireTokenRequest.acquireTokenSilentFlow(SourceFile:4)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AcquireTokenRequest.tryAcquireTokenSilent(SourceFile:3)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AcquireTokenRequest.performAcquireTokenRequest(SourceFile:1)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AcquireTokenRequest.access$200(SourceFile:1)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.microsoft.aad.adal.AcquireTokenRequest$1.run(SourceFile:4)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at java.lang.Thread.run(Thread.java:764)
09-01 20:23:09.393 E/AndroidRuntime(14240): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.google.gson.stream.JsonReader.b(SourceFile:5)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(SourceFile:4)
09-01 20:23:09.393 E/AndroidRuntime(14240): 	... 18 more
09-01 20:24:09.414 E/AndroidRuntime(15202): FATAL EXCEPTION: pool-17-thread-1

Would you mind taking a look on it? please let me know if anything i can help with.

@paulkagiri
Copy link
Contributor

Hello @NgWaiKong, are you still experiencing this?

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

2 participants