Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

HttpUrlConnection with Proxy

807605Jun 19 2007
Hi,

I am getting the following error, when i connect to a URL using proxy:

Exception in thread "main" javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1584)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:866)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1030)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1057)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1041)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:402)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(HttpsURLConnectionOldImpl.java:200)


The URL does use a digital certificate , but i do not have it yet, just want to confirm that the error above it b;cos of the missing certificate, or is there any other issue

Comments

User_64CKJ
From the Appleteer documentation re [Supports MAYSCRIPT/SCRIPTABLE attributes|http://pscode.org/appleteer/#environment] - [*No*|http://pscode.org/appleteer/#js].

Of course, you might try and shoe-horn in the custom (script) element yourself (like I did in Appleteer, for the applet element), then utilise the ScriptEngine to provide JS support. But it would be up to you to create and manage the JavaScript [inbuilt objects|http://www.devx.com/projectcool/Article/19993].

For a more realistic web surfing experience than JEditorPane can supply, look to the [JDIC embedded browser|https://jdic.dev.java.net/].
843806
thank you very much
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 17 2007
Added on Jun 19 2007
0 comments
238 views