{"action":"created","issue":{"url":"https://api.github.com/repos/fernandezpablo85/scribe-java/issues/526","labels_url":"https://api.github.com/repos/fernandezpablo85/scribe-java/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/fernandezpablo85/scribe-java/issues/526/comments","events_url":"https://api.github.com/repos/fernandezpablo85/scribe-java/issues/526/events","html_url":"https://github.com/fernandezpablo85/scribe-java/issues/526","id":52454234,"number":526,"title":"Twitter API example fails with a Null Pointer Exception","user":{"login":"priav03","id":8236393,"avatar_url":"https://avatars.githubusercontent.com/u/8236393?v=3","gravatar_id":"","url":"https://api.github.com/users/priav03","html_url":"https://github.com/priav03","followers_url":"https://api.github.com/users/priav03/followers","following_url":"https://api.github.com/users/priav03/following{/other_user}","gists_url":"https://api.github.com/users/priav03/gists{/gist_id}","starred_url":"https://api.github.com/users/priav03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priav03/subscriptions","organizations_url":"https://api.github.com/users/priav03/orgs","repos_url":"https://api.github.com/users/priav03/repos","events_url":"https://api.github.com/users/priav03/events{/privacy}","received_events_url":"https://api.github.com/users/priav03/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-19T07:07:22Z","updated_at":"2015-07-29T15:40:40Z","closed_at":null,"body":"I copied the sample code to a new class file. Replaced consumer key and consumer key secret with the key and secret supplied to me by Twitter. I executed the program and received the following error message.\r\n\r\n=== Twitter's OAuth Workflow ===\r\n\r\nFetching the Request Token...\r\nException in thread \"main\" org.scribe.exceptions.OAuthSignatureException: Error while signing string: POST&http%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_callback%3Doob%26oauth_consumer_key%3D******************************%26oauth_nonce%3D2959459152%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1418972664%26oauth_version%3D1.0\r\n\tat org.scribe.services.HMACSha1SignatureService.getSignature(HMACSha1SignatureService.java:36)\r\n\tat org.scribe.oauth.OAuth10aServiceImpl.getSignature(OAuth10aServiceImpl.java:145)\r\n\tat org.scribe.oauth.OAuth10aServiceImpl.addOAuthParams(OAuth10aServiceImpl.java:75)\r\n\tat org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:55)\r\n\tat org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:40)\r\n\tat org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:45)\r\n\tat Tweets.main(Tweets.java:44)\r\nCaused by: java.lang.NullPointerException\r\n\tat javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:547)\r\n\tat org.scribe.services.DatatypeConverterEncoder.encode(DatatypeConverterEncoder.java:10)\r\n\tat org.scribe.services.HMACSha1SignatureService.bytesToBase64String(HMACSha1SignatureService.java:51)\r\n\tat org.scribe.services.HMACSha1SignatureService.doSign(HMACSha1SignatureService.java:46)\r\n\tat org.scribe.services.HMACSha1SignatureService.getSignature(HMACSha1SignatureService.java:32)\r\n\t... 6 more"},"comment":{"url":"https://api.github.com/repos/fernandezpablo85/scribe-java/issues/comments/125993093","html_url":"https://github.com/fernandezpablo85/scribe-java/issues/526#issuecomment-125993093","issue_url":"https://api.github.com/repos/fernandezpablo85/scribe-java/issues/526","id":125993093,"user":{"login":"fernandezpablo85","id":28029,"avatar_url":"https://avatars.githubusercontent.com/u/28029?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandezpablo85","html_url":"https://github.com/fernandezpablo85","followers_url":"https://api.github.com/users/fernandezpablo85/followers","following_url":"https://api.github.com/users/fernandezpablo85/following{/other_user}","gists_url":"https://api.github.com/users/fernandezpablo85/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandezpablo85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandezpablo85/subscriptions","organizations_url":"https://api.github.com/users/fernandezpablo85/orgs","repos_url":"https://api.github.com/users/fernandezpablo85/repos","events_url":"https://api.github.com/users/fernandezpablo85/events{/privacy}","received_events_url":"https://api.github.com/users/fernandezpablo85/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T15:40:40Z","updated_at":"2015-07-29T15:40:40Z","body":"Also, can you check that the tests pass on your version of the JDK? which version is it?"}}