{"action":"created","issue":{"url":"https://api.github.com/repos/ndhu/GoogleAppEngineOAuth/issues/1","repository_url":"https://api.github.com/repos/ndhu/GoogleAppEngineOAuth","labels_url":"https://api.github.com/repos/ndhu/GoogleAppEngineOAuth/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ndhu/GoogleAppEngineOAuth/issues/1/comments","events_url":"https://api.github.com/repos/ndhu/GoogleAppEngineOAuth/issues/1/events","html_url":"https://github.com/ndhu/GoogleAppEngineOAuth/issues/1","id":228594441,"number":1,"title":"OAuthProblemException","user":{"login":"limsongjing","id":4055348,"avatar_url":"https://avatars3.githubusercontent.com/u/4055348?v=3","gravatar_id":"","url":"https://api.github.com/users/limsongjing","html_url":"https://github.com/limsongjing","followers_url":"https://api.github.com/users/limsongjing/followers","following_url":"https://api.github.com/users/limsongjing/following{/other_user}","gists_url":"https://api.github.com/users/limsongjing/gists{/gist_id}","starred_url":"https://api.github.com/users/limsongjing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limsongjing/subscriptions","organizations_url":"https://api.github.com/users/limsongjing/orgs","repos_url":"https://api.github.com/users/limsongjing/repos","events_url":"https://api.github.com/users/limsongjing/events{/privacy}","received_events_url":"https://api.github.com/users/limsongjing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-15T02:55:25Z","updated_at":"2017-05-15T03:13:51Z","closed_at":null,"body":"Hi\r\n\r\nI tried with org.apache.amber.oauth2 package (version 0.22-incubating) \r\n\r\nAnd I have below error running on GAE (version 1.9.53).  Seem like the problem happen when getting access token from oAuthClient object. And those warnings before the exception is related to oAuthClient construction. \r\n\r\nAny help?\r\n\r\n```\r\nMay 15, 2017 12:50:38 PM com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil supportsUnsafeByteBufferOperations\r\nWARNING: platform method missing - proto runtime falling back to safer methods: java.security.AccessControlException: access denied (\"java.lang.RuntimePermission\" \"accessClassInPackage.sun.misc\")\r\nMay 15, 2017 12:50:38 PM com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil supportsUnsafeArrayOperations\r\nWARNING: platform method missing - proto runtime falling back to safer methods: java.security.AccessControlException: access denied (\"java.lang.RuntimePermission\" \"accessClassInPackage.sun.misc\")\r\nMay 15, 2017 12:50:38 PM com.google.appengine.repackaged.com.google.protobuf.UnsafeUtil supportsUnsafeCopyMemory\r\nWARNING: copyMemory is missing from platform - proto runtime falling back to safer methods.\r\nOAuthProblemException{description='Missing parameters: access_token', error='invalid_request', uri='null', state='null', scope='null'}\r\n\tat org.apache.amber.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:57)\r\n\tat org.apache.amber.oauth2.common.utils.OAuthUtils.handleOAuthProblemException(OAuthUtils.java:166)\r\n\tat org.apache.amber.oauth2.common.utils.OAuthUtils.handleMissingParameters(OAuthUtils.java:184)\r\n\tat org.apache.amber.oauth2.client.validator.OAuthClientValidator.validateRequiredParameters(OAuthClientValidator.java:90)\r\n\tat org.apache.amber.oauth2.client.validator.OAuthClientValidator.validateParameters(OAuthClientValidator.java:53)\r\n\tat org.apache.amber.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:49)\r\n\tat org.apache.amber.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:64)\r\n\tat org.apache.amber.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:59)\r\n\tat org.apache.amber.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:52)\r\n\tat org.apache.amber.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:60)\r\n\tat org.apache.amber.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:105)\r\n\tat org.apache.amber.oauth2.client.OAuthClient.accessToken(OAuthClient.java:64)\r\n\tat com.hulstkamp.explore.oauth.com.OAuthServlet.requestAccessToken(OAuthServlet.java:207)\r\n\tat com.hulstkamp.explore.oauth.com.OAuthServlet.handleAuthorizationResponse(OAuthServlet.java:82)\r\n\tat com.hulstkamp.explore.oauth.com.OAuthServlet.doGet(OAuthServlet.java:52)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:617)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:717)\r\n\tat org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)\r\n\tat com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:134)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)\r\n\tat com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)\r\n\tat com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)\r\n\tat org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)\r\n\tat org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)\r\n\tat org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)\r\n\tat org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)\r\n\tat org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)\r\n\tat org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)\r\n\tat com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:95)\r\n\tat org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)\r\n\tat com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:508)\r\n\tat org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)\r\n\tat org.mortbay.jetty.Server.handle(Server.java:326)\r\n\tat org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)\r\n\tat org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)\r\n\tat org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)\r\n\tat org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)\r\n\tat org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)\r\n\tat org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)\r\n\tat org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)\r\n```"},"comment":{"url":"https://api.github.com/repos/ndhu/GoogleAppEngineOAuth/issues/comments/301366633","html_url":"https://github.com/ndhu/GoogleAppEngineOAuth/issues/1#issuecomment-301366633","issue_url":"https://api.github.com/repos/ndhu/GoogleAppEngineOAuth/issues/1","id":301366633,"user":{"login":"limsongjing","id":4055348,"avatar_url":"https://avatars3.githubusercontent.com/u/4055348?v=3","gravatar_id":"","url":"https://api.github.com/users/limsongjing","html_url":"https://github.com/limsongjing","followers_url":"https://api.github.com/users/limsongjing/followers","following_url":"https://api.github.com/users/limsongjing/following{/other_user}","gists_url":"https://api.github.com/users/limsongjing/gists{/gist_id}","starred_url":"https://api.github.com/users/limsongjing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limsongjing/subscriptions","organizations_url":"https://api.github.com/users/limsongjing/orgs","repos_url":"https://api.github.com/users/limsongjing/repos","events_url":"https://api.github.com/users/limsongjing/events{/privacy}","received_events_url":"https://api.github.com/users/limsongjing/received_events","type":"User","site_admin":false},"created_at":"2017-05-15T03:13:51Z","updated_at":"2017-05-15T03:13:51Z","body":"Same warning and exception even after I changed the org.apache.amber.oauth2 package to org.apache.oltu.oauth2 (vesion 1.0.2):\r\n\r\n    OAuthProblemException{error='invalid_request', description='Missing parameters: access_token', uri='null', state='null', scope='null', redirectUri='null', responseStatus=0, parameters={}}\r\n    \tat org.apache.oltu.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:59)"}}
{"actor":{"display_login":"limsongjing"}}