Tag: amber smalltalk

java.io.IOException:服务器返回HTTP响应代码:411为URL:https://login.live.com/oauth20_token.srf?code =

我正在从以下链接扩展问题: Apache Oltu + Microsoft Integration – OAuthProblemException {error =’invalid_request’,description =’缺少必需参数,包括无效以及如何面对下面显示的新问题/错误。 java.io.IOException: Server returned HTTP response code: 411 for URL: https://login.live.com/oauth20_token.srf?code=M60698e36-f569-4e8e-18ea-b0837bc88f78&grant_type=authorization_code&client_secret=RYbo4yBdvzg4R9oxkNGG0Tr&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fapache-oltu%2Fmicrosoft%2Fredirect&client_id=23e101f2-e00b-416f-a7f8-5f85cc5cd87b at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source) at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:97) at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:65) at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:55) at org.apache.oltu.oauth2.client.OAuthClient.accessToken(OAuthClient.java:71) at com.apache.oltu.MicrosoftController.getAccessToken(MicrosoftController.java:80) at com.apache.oltu.MicrosoftController.redirect(MicrosoftController.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at […]