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

Stack Overflow | ABi | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cant Upload File - NoClassDefFoundError: Commons IO ByteArrayOutputStream

    Stack Overflow | 6 months ago | ABi
    java.lang.RuntimeException: An error occured while executing doInBackground()

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org.apache.commons.io.output.ByteArrayOutputStream

      at org.apache.http.entity.mime.HttpMultipart.getTotalLength()
    2. Apache HttpClient Mime
      MultipartEntity.getContentLength
      1. org.apache.http.entity.mime.HttpMultipart.getTotalLength(HttpMultipart.java:219)
      2. org.apache.http.entity.mime.MultipartEntity.getContentLength(MultipartEntity.java:150)
      2 frames
    3. com.example.imtiaz
      UploadActivity$UploadFileToServer.doInBackground
      1. com.example.imtiaz.recognizer.UploadActivity$UploadFileToServer.UploadFile(UploadActivity.java:129)
      2. com.example.imtiaz.recognizer.UploadActivity$UploadFileToServer.doInBackground(UploadActivity.java:108)
      3. com.example.imtiaz.recognizer.UploadActivity$UploadFileToServer.doInBackground(UploadActivity.java:90)
      3 frames
    4. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:287)
      1 frame
    5. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:234)
      1 frame