{"action":"created","issue":{"url":"https://api.github.com/repos/HolgerHees/cloudsync/issues/22","labels_url":"https://api.github.com/repos/HolgerHees/cloudsync/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/HolgerHees/cloudsync/issues/22/comments","events_url":"https://api.github.com/repos/HolgerHees/cloudsync/issues/22/events","html_url":"https://github.com/HolgerHees/cloudsync/issues/22","id":112583428,"number":22,"title":"NullPointerException on start","user":{"login":"gelse","id":707864,"avatar_url":"https://avatars.githubusercontent.com/u/707864?v=3","gravatar_id":"","url":"https://api.github.com/users/gelse","html_url":"https://github.com/gelse","followers_url":"https://api.github.com/users/gelse/followers","following_url":"https://api.github.com/users/gelse/following{/other_user}","gists_url":"https://api.github.com/users/gelse/gists{/gist_id}","starred_url":"https://api.github.com/users/gelse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gelse/subscriptions","organizations_url":"https://api.github.com/users/gelse/orgs","repos_url":"https://api.github.com/users/gelse/repos","events_url":"https://api.github.com/users/gelse/events{/privacy}","received_events_url":"https://api.github.com/users/gelse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-10-21T13:05:40Z","updated_at":"2015-10-22T06:59:02Z","closed_at":"2015-10-22T06:59:02Z","body":"Call:\r\n```\r\n./cloudsync.sh --backup /home/werner/testBackupDir --name testbackup\r\n```\r\nLog:\r\n```\r\n[2015.10.21 13:53:08] - FINEST - use exclude pattern: [^.*\\.git/.*$] | [$.*\\.svn/.*$]\r\n[2015.10.21 13:53:16] - INFO - load structure from remote server\r\n```\r\nStacktrace:\r\n```\r\nException in thread \"main\" java.lang.NullPointerException\r\n        at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)\r\n        at com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)\r\n        at com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:92)\r\n        at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)\r\n        at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)\r\n        at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)\r\n        at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)\r\n        at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)\r\n        at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:384)\r\n        at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)\r\n        at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)\r\n        at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:859)\r\n        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)\r\n        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)\r\n        at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)\r\n        at cloudsync.connector.RemoteGoogleDriveConnector._getDriveFolder(RemoteGoogleDriveConnector.java:706)\r\n        at cloudsync.connector.RemoteGoogleDriveConnector._getBackupFolder(RemoteGoogleDriveConnector.java:696)\r\n        at cloudsync.connector.RemoteGoogleDriveConnector.initService(RemoteGoogleDriveConnector.java:894)\r\n        at cloudsync.connector.RemoteGoogleDriveConnector.readFolder(RemoteGoogleDriveConnector.java:401)\r\n        at cloudsync.helper.Handler.readRemoteStructure(Handler.java:260)\r\n        at cloudsync.helper.Handler.readRemoteStructure(Handler.java:254)\r\n        at cloudsync.helper.Handler.init(Handler.java:140)\r\n        at cloudsync.Cloudsync.start(Cloudsync.java:120)\r\n        at cloudsync.Cloudsync.main(Cloudsync.java:160)\r\n\r\n```\r\n\r\nHappens in both authentication options the same way (when using installed application i have to get and enter the code first).\r\n\r\nRunning on a raspberry pi, java 7 JDK:\r\nOpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-1~deb7u1+rpi1)\r\nOpenJDK Zero VM (build 24.79-b02, mixed mode)\r\nAnd Maven 3.3.3 and ofc the JCE installed.\r\n\r\nTbh, i have no idea where to start here.\r\n\r\nOn a sidenote: it should not have to do with my (headless) raspi, as gsync (https://github.com/iwonbigbro/gsync) is working fine. I just need crypto, too."},"comment":{"url":"https://api.github.com/repos/HolgerHees/cloudsync/issues/comments/150125318","html_url":"https://github.com/HolgerHees/cloudsync/issues/22#issuecomment-150125318","issue_url":"https://api.github.com/repos/HolgerHees/cloudsync/issues/22","id":150125318,"user":{"login":"gelse","id":707864,"avatar_url":"https://avatars.githubusercontent.com/u/707864?v=3","gravatar_id":"","url":"https://api.github.com/users/gelse","html_url":"https://github.com/gelse","followers_url":"https://api.github.com/users/gelse/followers","following_url":"https://api.github.com/users/gelse/following{/other_user}","gists_url":"https://api.github.com/users/gelse/gists{/gist_id}","starred_url":"https://api.github.com/users/gelse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gelse/subscriptions","organizations_url":"https://api.github.com/users/gelse/orgs","repos_url":"https://api.github.com/users/gelse/repos","events_url":"https://api.github.com/users/gelse/events{/privacy}","received_events_url":"https://api.github.com/users/gelse/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T06:59:02Z","updated_at":"2015-10-22T06:59:02Z","body":"As it seems, the error was quite simple. I somehow managed to put the client ID in the config in the secret field... silly me.\r\n\r\nIt's working now."}}