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

  1. 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.
  2. 0

    Retrofit 1.3.0 doesn't work after obfuscation using ProGuard

    GitHub | 3 years ago | tshevchuk
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testobfuscation/com.example.testobfuscation.MainActivity}: java.lang.IllegalArgumentException: Last parameter of getPuzzleComments must be of type Callback<X> or Callback<? super X>. Found: interface retrofit.Callback
  3. 0

    cryptic error if you forgot to mark an outgoing parameter as @Body

    GitHub | 3 years ago | kenyee
    java.lang.IllegalArgumentException: Method uploadDoc contains multiple HTTP methods. Found: PUT and PUT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    url == null exception

    GitHub | 3 years ago | julio-cotta-edx
    java.lang.IllegalArgumentException: url == null
  6. 0

    Retrofit 1.6: Call RestService with different (TCP)-Ports

    Stack Overflow | 2 years ago | Christopher
    java.lang.IllegalArgumentException: AutoSuggestRemote.getSuggestions: URL path ":{port}/suggest" must start with '/'.

    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

      RetrofitInterface.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. com.sun.proxy
      $Proxy0.getUser
      1. com.sun.proxy.$Proxy0.getUser(Unknown Source)
      1 frame
    4. com.company
      Main.main
      1. com.company.Main.main(Main.java:19)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    6. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      1 frame