java.lang.IllegalArgumentException: IMyClient.getUser: Must have return type or Callback as last argument, not both.

Stack Overflow | Keeano | 1 month 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

    Retrofit 1.9 Error on Callback

    Stack Overflow | 1 month ago | Keeano
    java.lang.IllegalArgumentException: IMyClient.getUser: Must have return type or Callback as last argument, not both.
  2. 0

    Illegal argument exception in unread conversations api call, missing callback

    GitHub | 2 years ago | gennadiiivanov
    java.lang.IllegalArgumentException: IntercomApiInterface.getUnreadConversations: Must have either a return type or Callback as last argument.
  3. 0

    Retrofit Exception During Execution

    Stack Overflow | 2 years ago | Qasim Khokhar
    java.lang.IllegalArgumentException: RetrofitInterface.getUser: Must have return type or Callback as last argument, not both.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Only one HTTP method is allowed. Found: POST and POST

    GitHub | 3 years ago | francisdb
    MyRestApi.postRawData: No Retrofit annotation found. (parameter #1)
  6. 0

    Delete with body is still not working with Retrofit

    Stack Overflow | 2 years ago | Paula Kristin
    retrofit.RetrofitError: TimeTrackerWebServiceMethods.deleteLoggedHour: @Body parameters cannot be used with form or multi-part encoding. (parameter #1)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      IMyClient.getUser: Must have return type or Callback as last argument, not both.

      at retrofit.RestMethodInfo.methodError()
    2. Retrofit
      RestAdapter$RestHandler.invoke
      1. retrofit.RestMethodInfo.methodError(RestMethodInfo.java:107)
      2. retrofit.RestMethodInfo.parseResponseType(RestMethodInfo.java:267)
      3. retrofit.RestMethodInfo.<init>(RestMethodInfo.java:97)
      4. retrofit.RestAdapter.getMethodInfo(RestAdapter.java:213)
      5. retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:236)
      5 frames
    3. Java RT
      Proxy.invoke
      1. java.lang.reflect.Proxy.invoke(Proxy.java:393)
      1 frame
    4. Unknown
      $Proxy15.getUser
      1. $Proxy15.getUser(Unknown Source)
      1 frame
    5. client
      MyClient.getUser
      1. client.MyClient.getUser(MyClient.java:111)
      1 frame
    6. task
      UserProfileTask.call
      1. task.UserProfileTask.call(UserProfileTask.java:41)
      2. task.UserProfileTask.call(UserProfileTask.java:22)
      2 frames
    7. RoboGuice
      AndroidCallable.run
      1. roboguice.util.SafeAsyncTask$SafeAsyncTaskAndroidCallable.doInBackground(SafeAsyncTask.java:163)
      2. roboguice.util.AndroidCallableWrapper.doDoInBackgroundThread(AndroidCallableWrapper.java:113)
      3. roboguice.util.AndroidCallableWrapper.run(AndroidCallableWrapper.java:41)
      4. roboguice.util.AndroidCallable.run(AndroidCallable.java:20)
      4 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      5. java.lang.Thread.run(Thread.java:818)
      5 frames
    9. Android Platform
      VMStack.getThreadStackTrace
      1. dalvik.system.VMStack.getThreadStackTrace(Native Method)
      1 frame
    10. Java RT
      Thread.getStackTrace
      1. java.lang.Thread.getStackTrace(Thread.java:580)
      1 frame
    11. RoboGuice
      SafeAsyncTask.execute
      1. roboguice.util.AndroidCallable.<init>(AndroidCallable.java:12)
      2. roboguice.util.SafeAsyncTask$SafeAsyncTaskAndroidCallable.<init>(SafeAsyncTask.java:160)
      3. roboguice.util.SafeAsyncTask.newTask(SafeAsyncTask.java:156)
      4. roboguice.util.SafeAsyncTask.future(SafeAsyncTask.java:66)
      5. roboguice.util.SafeAsyncTask.execute(SafeAsyncTask.java:94)
      6. roboguice.util.SafeAsyncTask.execute(SafeAsyncTask.java:90)
      6 frames
    12. ui.fragment
      AccountFragment.onViewCreated
      1. ui.fragment.AccountFragment.onViewCreated(AccountFragment.java:122)
      1 frame
    13. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1127)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
      3. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801)
      4. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677)
      5. android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:388)
      6. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:604)
      6 frames
    14. Android v7
      AppCompatActivity.onStart
      1. android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
      1 frame
    15. RoboGuice
      RoboActionBarActivity.onStart
      1. roboguice.activity.RoboActionBarActivity.onStart(RoboActionBarActivity.java:106)
      1 frame
    16. ui.activity
      AccountActivity.onStart
      1. ui.activity.BaseActivity.onStart(BaseActivity.java:270)
      2. ui.activity.AccountActivity.onStart(AccountActivity.java:60)
      2 frames
    17. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1237)
      2. android.app.Activity.performStart(Activity.java:6253)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
      4 frames