android.os.NetworkOnMainThreadException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by pedro.olimpio
, 2 years ago
This exception has no message.
android.os.NetworkOnMainThreadException:
at com.android.org.conscrypt.OpenSSLSocketImpl.shutdownAndFreeSslNative(OpenSSLSocketImpl.java:1131)
at com.android.org.conscrypt.OpenSSLSocketImpl.close(OpenSSLSocketImpl.java:1126)
at android.gov.nist.javax.sip.stack.TLSMessageChannel.close(TLSMessageChannel.java:180)
at android.gov.nist.javax.sip.stack.ConnectionOrientedMessageChannel.close(ConnectionOrientedMessageChannel.java:127)
at android.gov.nist.javax.sip.stack.TLSMessageProcessor.stop(TLSMessageProcessor.java:225)
at android.gov.nist.javax.sip.SipProviderImpl.removeListeningPoints(SipProviderImpl.java:1082)
at android.gov.nist.javax.sip.SipStackImpl.deleteSipProvider(SipStackImpl.java:1691)
at org.mobicents.restcomm.android.sipua.impl.SipManager.unbind(SipManager.java:282)
at org.mobicents.restcomm.android.sipua.impl.SipManager.shutdown(SipManager.java:265)
at org.mobicents.restcomm.android.sipua.impl.DeviceImpl.Shutdown(DeviceImpl.java:143)
at org.mobicents.restcomm.android.client.sdk.RCDevice$1.run(RCDevice.java:278)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5466)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

Once, 1 year ago
34 times, 8 months ago
4 times, 9 months ago
2 times, 1 year ago
3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.