java.lang.IllegalArgumentException: Cannot encode null object

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.IllegalArgumentException: Cannot encode null object
at org.scribe.utils.Preconditions.check(Preconditions.java:84)
at org.scribe.utils.Preconditions.checkNotNull(Preconditions.java:31)
at org.scribe.utils.OAuthEncoder.encode(OAuthEncoder.java:30)
at org.scribe.model.Parameter.asUrlEncodedPair(Parameter.java:23)
at org.scribe.model.ParameterList.asFormUrlEncodedString(ParameterList.java:74)
at org.scribe.model.ParameterList.asOauthBaseString(ParameterList.java:64)
at org.scribe.extractors.BaseStringExtractorImpl.getSortedAndEncodedParams(BaseStringExtractorImpl.java:36)
at org.scribe.extractors.BaseStringExtractorImpl.extract(BaseStringExtractorImpl.java:26)
at org.scribe.oauth.OAuth10aServiceImpl.getSignature(OAuth10aServiceImpl.java:150)
at org.scribe.oauth.OAuth10aServiceImpl.addOAuthParams(OAuth10aServiceImpl.java:75)
at org.scribe.oauth.OAuth10aServiceImpl.signRequest(OAuth10aServiceImpl.java:126)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.