Proxy settings in Community Server throwing an Error - Java.net.SocketException: Unknown Proxy Type : HTTP (Doc ID 1483757.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle WebCenter Sites - Version 11.1.1.6.0 and later
Information in this document applies to any platform.
***Checked for relevance on 14-May-2014***

Symptoms

When tring to set up proxy for Facebook authentication, received the following in Weblogic application server logs:

"

[[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.fatwire.cos.sso.external.dispatcher.ExternalInfrastructureImpl - Cannot return content by URL https://graph.facebook.com/oauth/access_token?client_id=501647513183401&client_secret=c3983d4ecd4b35fd7a1e7c181c574a1e&code=AQAwn0dqbQFYaJiYB9BetziYzEonvHxI2WbNWBj746C7z7IWoHlpuQ_gqK53asDKwDzY0rQqy4gv23Gj_1jndo6-RzOEvjFqu99uiLlXuF-YL0LzTpmRkT6qGcayuj35s6o7fLsHxVrR0NR4DGsZE_HkkGtAlBteAeFwDFprOrIO380RICbqCi_y3Qsw1bkFj9s&redirect_uri=http%3A%2F%2Fhostname%3A7005%2Fcos%2Fexternal-auth%2Ffacebook%2F
java.net.SocketException: Unknown proxy type : HTTP
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:370)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:218)
    at javax.net.ssl.SSLSocket.<init>(SSLSocket.java:158)
    at javax.net.ssl.impl.SSLSocketImpl.<init>(Unknown Source)
    at javax.net.ssl.impl.SSLSocketFactoryImpl.createSocket(Unknown Source)
    at weblogic.security.SSL.SSLSocketFactory.createSocket(SSLSocketFactory.java:140)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:289)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:363)
    at weblogic.net.http.HttpsClient.New(HttpsClient.java:518)
    at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:330)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:450)
    at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
    at com.fatwire.cos.sso.external.dispatcher.ExternalInfrastructureImpl.getURLContent(ExternalInfrastructureImpl.java:165)

"

Changes

Proxy settings are configured in setup_proxy.properties in cos production.

Only INTERNET PROXY is enabled.

Facebook authentication settings are configured in setup_auth.properties in cos production.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms