java.lang.IllegalArgumentException: Cannot encode null object

GitHub | thizanetti | 8 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

    Getting null pointer at org.scribe.extractors.BaseStringExtractorImpl.getSortedAndEncodedParams

    GitHub | 8 months ago | thizanetti
    java.lang.IllegalArgumentException: Cannot encode null object

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot encode null object

      at org.scribe.utils.Preconditions.check()
    2. Scribe OAuth Library
      OAuth10aServiceImpl.signRequest
      1. org.scribe.utils.Preconditions.check(Preconditions.java:84)
      2. org.scribe.utils.Preconditions.checkNotNull(Preconditions.java:31)
      3. org.scribe.utils.OAuthEncoder.encode(OAuthEncoder.java:30)
      4. org.scribe.model.Parameter.asUrlEncodedPair(Parameter.java:23)
      5. org.scribe.model.ParameterList.asFormUrlEncodedString(ParameterList.java:74)
      6. org.scribe.model.ParameterList.asOauthBaseString(ParameterList.java:64)
      7. org.scribe.extractors.BaseStringExtractorImpl.getSortedAndEncodedParams(BaseStringExtractorImpl.java:36)
      8. org.scribe.extractors.BaseStringExtractorImpl.extract(BaseStringExtractorImpl.java:26)
      9. org.scribe.oauth.OAuth10aServiceImpl.getSignature(OAuth10aServiceImpl.java:150)
      10. org.scribe.oauth.OAuth10aServiceImpl.addOAuthParams(OAuth10aServiceImpl.java:75)
      11. org.scribe.oauth.OAuth10aServiceImpl.signRequest(OAuth10aServiceImpl.java:126)
      11 frames