java.lang.RuntimeException: ServiceCode Error in function uploadOverwrite at 13

GitHub | MisterY | 10 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

    Error on GoogleDrive upload

    GitHub | 10 months ago | MisterY
    java.lang.RuntimeException: ServiceCode Error in function uploadOverwrite at 13
  2. 0

    Handle error on update from sync service

    GitHub | 10 months ago | MisterY
    java.lang.RuntimeException: ServiceCode Error in function uploadOverwrite at 13

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.app.ContextImpl cannot be cast to android.app.Activity

      at com.cloudrail.si.servicecode.commands.GetMimeType.init()
    2. com.cloudrail.si
      GoogleDrive.upload
      1. com.cloudrail.si.servicecode.commands.GetMimeType.init(GetMimeType.java:44)
      2. com.cloudrail.si.servicecode.commands.GetMimeType.execute(GetMimeType.java:34)
      3. com.cloudrail.si.servicecode.Interpreter.run(Interpreter.java:84)
      4. com.cloudrail.si.servicecode.Interpreter.callFunction(Interpreter.java:42)
      5. com.cloudrail.si.services.GoogleDrive.upload(GoogleDrive.java:972)
      5 frames
    3. com.money.manager
      SyncService.onHandleIntent
      1. com.money.manager.ex.sync.SyncManager.upload(SyncManager.java:523)
      2. com.money.manager.ex.sync.SyncService.triggerUpload(SyncService.java:246)
      3. com.money.manager.ex.sync.SyncService.onHandleIntent(SyncService.java:125)
      3 frames
    4. Android Platform
      HandlerThread.run
      1. android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
      2. android.os.Handler.dispatchMessage(Handler.java:102)
      3. android.os.Looper.loop(Looper.java:158)
      4. android.os.HandlerThread.run(HandlerThread.java:61)
      4 frames