java.lang.RuntimeException: An error occurred while executing doInBackground()

Stack Overflow | Sourav Das | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ClassCastException with HttpURLConnection

    Stack Overflow | 6 months ago | Sourav Das
    java.lang.RuntimeException: An error occurred while executing doInBackground()

    Root Cause Analysis

    1. java.lang.ClassCastException

      libcore.net.url.FtpURLConnection cannot be cast to java.net.HttpURLConnection

      at daveytree.mysql.BackgroundWorker.doInBackground()
    2. daveytree.mysql
      BackgroundWorker.doInBackground
      1. daveytree.mysql.BackgroundWorker.doInBackground(BackgroundWorker.java:41)
      2. daveytree.mysql.BackgroundWorker.doInBackground(BackgroundWorker.java:22)
      2 frames
    3. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:295)
      1 frame