Transport.send() has thrown a NetworkOnMainThreadException

We found this prefix in 12 webpages.
MapChildren (11)Typical messages (1)TraceDetailed Map
  1. android.os.NetworkOnMainThreadException
    1.   at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork()
    2.   at java.net.InetAddress.lookupHostByName()
    3.   at java.net.InetAddress.getLocalHost()
    4.   at javax.mail.internet.InternetAddress.getLocalAddress()
    5.   at javax.mail.internet.UniqueValue.getUniqueMessageIDValue()
    6.   at javax.mail.internet.MimeMessage.updateMessageID()
    7.   at javax.mail.internet.MimeMessage.updateHeaders()
    8.   at javax.mail.internet.MimeMessage.saveChanges()
    9.   at javax.mail.Transport.send()
  1. NetworkOnMainThreadException

    NativeStart.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  2. Android Service, JavaMail API

    First:5 years ago
    Last:3 years ago
    Author:BangBoat
  3. Email App is not working on real device

    First:5 years ago
    Last:3 years ago
    Author:Mussa Kassim
  4. Email without user intervention

    First:4 years ago
    Last:3 years ago
    Author:jebinga
  5. Cannot send emails via javamail api on android 3.2

    First:6 years ago
    Last:3 years ago
    Author:Yusuf Hoque
  6. Email Program working and I am not sure why

    First:6 years ago
    Last:3 years ago
    Author:user1457104
  7. Send email in android 4.1 and more

    First:5 years ago
    Last:3 years ago
    Author:haibtbk
  8. GitHub iconGitHub comment 71#50426253

    First:4 years ago
    Last:3 years ago
    Author:tony19
  9. sending email with default id without using intents

    First:4 years ago
    Last:3 years ago
    Author:sanketh
  10. Android app send email without user interaction

    First:2 years ago
    Last:2 years ago
    Author:Zhen Chua
  11. sending email on android using smtp and Gmail how to make it work

    First:4 years ago
    Last:3 years ago
MessageNumber of crashes
<No message>12
  1. android.os.NetworkOnMainThreadException
    1.   at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork()
    2.   at java.net.InetAddress.lookupHostByName()
    3.   at java.net.InetAddress.getLocalHost()
    4.   at javax.mail.internet.InternetAddress.getLocalAddress()
    5.   at javax.mail.internet.UniqueValue.getUniqueMessageIDValue()
    6.   at javax.mail.internet.MimeMessage.updateMessageID()
    7.   at javax.mail.internet.MimeMessage.updateHeaders()
    8.   at javax.mail.internet.MimeMessage.saveChanges()
    9.   at javax.mail.Transport.send()