Azure-docs: App ""keeps stopping"

Created on 13 Aug 2019  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

I followed all steps carefully but the app keeps stopping when I run it.
When I try to debug it I notice that the following line is driving this behavior:
private final FaceServiceClient faceServiceClient =
new FaceServiceRestClient(apiEndpoint, subscriptionKey);
If I comment it the app runs and I can choose the picture from gallery. I'm using the Endpoint and subscriptionKey provided by Azure.
Any ideas?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cognitive-servicesvc cxp face-apsubsvc product-question triaged

All 5 comments

@rtamellini
Thanks for the feedback! We are currently investigating and will update you shortly.

@rtamellini Hi, I think this issue need live trouble shooting, do you have a support plan? If yes, please feel free to open a support ticket under your account. If no, please feel free to send us an email at [email protected] with you Azure subscription ID and URL of this thread, we will help you to enable one. Thank you. ^^

Since this issue is not seen as doc issue now, I will close it.
We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.

I got same situation described here, any suggestion?

This error still keeps occuring please do fix!

2020-01-21 13:05:50.124 21967-21967/com.semicolon.sampleface E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.semicolon.sampleface, PID: 21967
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.semicolon.sampleface/com.semicolon.sampleface.MainActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2843)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at com.semicolon.sampleface.MainActivity.(MainActivity.java:32)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)
at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:41)
at android.app.Instrumentation.newActivity(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2831)

I am also facing same issue. Is there any update on this situation ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ponant picture Ponant  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

varma31 picture varma31  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments