I try to use scribe for authorization with facebook and twitter. There is no problems with facebook. But when I try
requestToken = service.getRequestToken()
for twitter I get
Cannot get String from a null object
> ru.myx.ae3.exec.ExecErrorDefault
> Cannot get String from a null object
> java.lang.IllegalArgumentException
: org.scribe.utils.Preconditions.check(Preconditions.java:84)
: org.scribe.utils.Preconditions.checkNotNull(Preconditions.java:31)
: org.scribe.utils.StreamUtils.getStreamContents(StreamUtils.java:22)
: org.scribe.model.Response.parseBodyContents(Response.java:43)
: org.scribe.model.Response.getBody(Response.java:69)
: org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:60)
: org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:40)
: org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:45)
: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
: java.lang.reflect.Method.invoke(Method.java:606)
Could anybody help me to fix it?