fernandezpablo85/scribe-java — Issue #207: Proxy issue 
Author: SaratKumarM
Created: 2011-12-23 06:04:09+00:00
State: open

I am using scribe library to write a sample Facebook application :). I am trying to access "facebook graph" api using scribe utility . The main problem is that we were unable to access https://graph.facebook.com using the https protocol. I am behind a firewall & I mention the proxyserver details but I am unable to connect facebook graph api :)

I see below exception :

org.scribe.exceptions.OAuthException: Problems while creating connection
at org.scribe.model.Request.send(Request.java:62)
at org.scribe.model.OAuthRequest.send(OAuthRequest.java:1)
at test.social.context.oauth.OAuthImpl.send(OAuthImpl.java:284)
at test.social.context.oauth.OAuthImpl.send(OAuthImpl.java:259)
at test.social.context.oauth.OAuthImpl.sendGetRequest(OAuthImpl.java:235)
at test.social.context.facebook.FacebookImpl.getCurrentAccount(FacebookImpl.java:72)
at test.social.context.facebook.FBFrontDoorServlet.doPost(FBFrontDoorServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1517)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:648)
at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:1464)

Please help me to resolve this issue .