You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Eyeris Rodriguez Rueda <er...@uci.cu> on 2013/05/27 17:33:02 UTC

handshake alert:unrecognized_name----problems with ssl using https conection

Hi all,
Im tring to crawl a web site and I get one error with ssl, this is the
exception javax.net.ssl.SSLProtocolException, specifically

2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
https://cubatravel.cidi.uci.cu:8443/ failed with:
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name


finally the url are not fetched and of course not indexed.
Im using nutch 1.5.1 and solr 3.6.1.

I was reading this topic
http://stackoverflow.com/questions/2606873/sslexception-hellorequest-followe
d-by-an-unexpected-handshake-message  and some body recommend do this 

java.lang.System.setProperty("sun.security.ssl.allowUnsafeRenegotiation",
"true");

 but I don't know if nutch has this renegotiation included in its source
code.
Please any idea or suggestion to fix this problem will be appreciated.
This is a part of my log file....
...
...
2013-05-27 10:45:37,264 INFO  fetcher.Fetcher- fetching
https://cubatravel.cidi.uci.cu:8443/
2013-05-27 10:45:37,265 INFO  fetcher.Fetcher - Using queue mode : byHost
2013-05-27 10:45:37,270 INFO  fetcher.Fetcher - Using queue mode : byHost
...
...
...
...
2013-05-27 10:46:06,193 INFO  httpclient.HttpMethodDirector - Retrying
request
2013-05-27 10:46:06,194 INFO  httpclient.HttpMethodDirector - I/O exception
(javax.net.ssl.SSLProtocolException) caught when processing request:
handshake alert:  unrecognized_name
2013-05-27 10:46:06,195 INFO  httpclient.HttpMethodDirector - Retrying
request
2013-05-27 10:46:06,208 ERROR httpclient.Http - Failed to get protocol
output
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
	at
sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
	at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
	at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
	at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:13
12)
	at
sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
	at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
	at
org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo
nnection.java:828)
	at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnect
ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
1565)
	at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
a:2116)
	at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:109
6)
	at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
Director.java:398)
	at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
ector.java:171)
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	at
org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse.java:9
4)
	at
org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
	at
org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
142)
	at
org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
2013-05-27 10:46:06,217 ERROR httpclient.Http - Failed to get protocol
output
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
	at
sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
	at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
	at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
	at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:13
12)
	at
sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
	at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
	at
org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo
nnection.java:828)
	at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnect
ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
1565)
	at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
a:2116)
	at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:109
6)
	at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
Director.java:398)
	at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
ector.java:171)
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	at
org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse.java:9
4)
	at
org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
	at
org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
142)
	at
org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
https://cubatravel.cidi.uci.cu:8443/ failed with:
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
https://artemiseno.cidi.uci.cu/ failed with:
javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
2013-05-27 10:46:06,227 INFO  fetcher.Fetcher - -finishing thread
FetcherThread, activeThreads=3
2013-05-27 10:46:06,237 INFO  fetcher.Fetcher - -finishing thread
FetcherThread, activeThreads=2
2013-05-27 10:46:06,331 INFO  fetcher.Fetcher - -activeThreads=2,
spinWaiting=0, fetchQueues.totalSize=0
2013-05-27 10:46:06,998 INFO  fetcher.Fetcher - -finishing thread
FetcherThread, activeThreads=1

http://www.uci.cu

RE: handshake alert:unrecognized_name----problems with ssl using https conection

Posted by Eyeris Rodriguez Rueda <er...@uci.cu>.
Thanks tejas by your reply. 
I was looking but java -version throw java 6. I think that the problems is
like if nutch canĀ“t fetch the page because a problem with ssl. 



-----Mensaje original-----
De: Tejas Patil [mailto:tejas.patil.cs@gmail.com] 
Enviado el: lunes, 27 de mayo de 2013 6:49 PM
Para: user@nutch.apache.org
Asunto: Re: handshake alert:unrecognized_name----problems with ssl using
https conection

I am not 100% sure if this would work, but you can try passing -Djsse.
enableSNIExtension=false to the fetch command.


On Mon, May 27, 2013 at 3:22 PM, Tejas Patil
<te...@gmail.com>wrote:

> Which version of Java are you using ? This problem is seen with Java 7 
> [0]. Downgrading to Java 6 might help you.
>
> [0] :
> http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecog
> nized-name-error-since-upgrade-to-java-1-7-0
>
>
> On Mon, May 27, 2013 at 8:33 AM, Eyeris Rodriguez Rueda
<er...@uci.cu>wrote:
>
>> Hi all,
>> Im tring to crawl a web site and I get one error with ssl, this is 
>> the exception javax.net.ssl.SSLProtocolException, specifically
>>
>> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of 
>> https://cubatravel.cidi.uci.cu:8443/ failed with:
>> javax.net.ssl.SSLProtocolException: handshake alert:  
>> unrecognized_name
>>
>>
>> finally the url are not fetched and of course not indexed.
>> Im using nutch 1.5.1 and solr 3.6.1.
>>
>> I was reading this topic
>>
>> http://stackoverflow.com/questions/2606873/sslexception-hellorequest-
>> followe 
>> d-by-an-unexpected-handshake-message<http://stackoverflow.com/questio
>> ns/2606873/sslexception-hellorequest-followed-by-an-unexpected-handsh
>> ake-message> and some body recommend do this
>>
>> java.lang.System.setProperty("sun.security.ssl.allowUnsafeRenegotiati
>> on",
>> "true");
>>
>>  but I don't know if nutch has this renegotiation included in its 
>> source code.
>> Please any idea or suggestion to fix this problem will be appreciated.
>> This is a part of my log file....
>> ...
>> ...
>> 2013-05-27 10:45:37,264 INFO  fetcher.Fetcher- fetching 
>> https://cubatravel.cidi.uci.cu:8443/
>> 2013-05-27 10:45:37,265 INFO  fetcher.Fetcher - Using queue mode : 
>> byHost
>> 2013-05-27 10:45:37,270 INFO  fetcher.Fetcher - Using queue mode : 
>> byHost ...
>> ...
>> ...
>> ...
>> 2013-05-27 10:46:06,193 INFO  httpclient.HttpMethodDirector - 
>> Retrying request
>> 2013-05-27 10:46:06,194 INFO  httpclient.HttpMethodDirector - I/O 
>> exception
>> (javax.net.ssl.SSLProtocolException) caught when processing request:
>> handshake alert:  unrecognized_name
>> 2013-05-27 10:46:06,195 INFO  httpclient.HttpMethodDirector - 
>> Retrying request
>> 2013-05-27 10:46:06,208 ERROR httpclient.Http - Failed to get 
>> protocol output
>> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>>         at
>>
>>
sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
>>         at
>> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
>>         at
>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
>>         at
>>
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.
>> java:13
>> 12)
>>         at
>> sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
>>         at
>> sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
>>         at
>> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>>         at
>> java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>>         at
>>
>> org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream
>> (HttpCo
>> nnection.java:828)
>>         at
>>
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http
>> Connect
>>
>>
ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
>> 1565)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodB
>> ase.jav
>> a:2116)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
>> ava:109
>> 6)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
>> pMethod
>> Director.java:398)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
>> thodDir
>> ector.java:171)
>>         at
>>
>>
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>         at
>>
>>
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>>         at
>>
>> org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse
>> .java:9
>> 4)
>>         at
>> org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
>>         at
>>
>>
org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
>> 142)
>>         at
>> org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
>> 2013-05-27 10:46:06,217 ERROR httpclient.Http - Failed to get 
>> protocol output
>> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>>         at
>>
>>
sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
>>         at
>> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
>>         at
>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
>>         at
>>
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.
>> java:13
>> 12)
>>         at
>> sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
>>         at
>> sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
>>         at
>> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>>         at
>> java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>>         at
>>
>> org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream
>> (HttpCo
>> nnection.java:828)
>>         at
>>
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$Http
>> Connect
>>
>>
ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
>> 1565)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodB
>> ase.jav
>> a:2116)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.j
>> ava:109
>> 6)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Htt
>> pMethod
>> Director.java:398)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
>> thodDir
>> ector.java:171)
>>         at
>>
>>
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>         at
>>
>>
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>>         at
>>
>> org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse
>> .java:9
>> 4)
>>         at
>> org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
>>         at
>>
>>
org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
>> 142)
>>         at
>> org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
>> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of 
>> https://cubatravel.cidi.uci.cu:8443/ failed with:
>> javax.net.ssl.SSLProtocolException: handshake alert:  
>> unrecognized_name
>> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of 
>> https://artemiseno.cidi.uci.cu/ failed with:
>> javax.net.ssl.SSLProtocolException: handshake alert:  
>> unrecognized_name
>> 2013-05-27 10:46:06,227 INFO  fetcher.Fetcher - -finishing thread 
>> FetcherThread, activeThreads=3
>> 2013-05-27 10:46:06,237 INFO  fetcher.Fetcher - -finishing thread 
>> FetcherThread, activeThreads=2
>> 2013-05-27 10:46:06,331 INFO  fetcher.Fetcher - -activeThreads=2, 
>> spinWaiting=0, fetchQueues.totalSize=0
>> 2013-05-27 10:46:06,998 INFO  fetcher.Fetcher - -finishing thread 
>> FetcherThread, activeThreads=1
>>
>> http://www.uci.cu
>>
>
>

http://www.uci.cu

http://www.uci.cu

Re: handshake alert:unrecognized_name----problems with ssl using https conection

Posted by Tejas Patil <te...@gmail.com>.
I am not 100% sure if this would work, but you can try passing -Djsse.
enableSNIExtension=false to the fetch command.


On Mon, May 27, 2013 at 3:22 PM, Tejas Patil <te...@gmail.com>wrote:

> Which version of Java are you using ? This problem is seen with Java 7
> [0]. Downgrading to Java 6 might help you.
>
> [0] :
> http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0
>
>
> On Mon, May 27, 2013 at 8:33 AM, Eyeris Rodriguez Rueda <er...@uci.cu>wrote:
>
>> Hi all,
>> Im tring to crawl a web site and I get one error with ssl, this is the
>> exception javax.net.ssl.SSLProtocolException, specifically
>>
>> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
>> https://cubatravel.cidi.uci.cu:8443/ failed with:
>> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>>
>>
>> finally the url are not fetched and of course not indexed.
>> Im using nutch 1.5.1 and solr 3.6.1.
>>
>> I was reading this topic
>>
>> http://stackoverflow.com/questions/2606873/sslexception-hellorequest-followe
>> d-by-an-unexpected-handshake-message<http://stackoverflow.com/questions/2606873/sslexception-hellorequest-followed-by-an-unexpected-handshake-message> and some body recommend do this
>>
>> java.lang.System.setProperty("sun.security.ssl.allowUnsafeRenegotiation",
>> "true");
>>
>>  but I don't know if nutch has this renegotiation included in its source
>> code.
>> Please any idea or suggestion to fix this problem will be appreciated.
>> This is a part of my log file....
>> ...
>> ...
>> 2013-05-27 10:45:37,264 INFO  fetcher.Fetcher- fetching
>> https://cubatravel.cidi.uci.cu:8443/
>> 2013-05-27 10:45:37,265 INFO  fetcher.Fetcher - Using queue mode : byHost
>> 2013-05-27 10:45:37,270 INFO  fetcher.Fetcher - Using queue mode : byHost
>> ...
>> ...
>> ...
>> ...
>> 2013-05-27 10:46:06,193 INFO  httpclient.HttpMethodDirector - Retrying
>> request
>> 2013-05-27 10:46:06,194 INFO  httpclient.HttpMethodDirector - I/O
>> exception
>> (javax.net.ssl.SSLProtocolException) caught when processing request:
>> handshake alert:  unrecognized_name
>> 2013-05-27 10:46:06,195 INFO  httpclient.HttpMethodDirector - Retrying
>> request
>> 2013-05-27 10:46:06,208 ERROR httpclient.Http - Failed to get protocol
>> output
>> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>>         at
>>
>> sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
>>         at
>> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
>>         at
>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
>>         at
>>
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:13
>> 12)
>>         at
>> sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
>>         at
>> sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
>>         at
>> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>>         at
>> java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>>         at
>>
>> org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo
>> nnection.java:828)
>>         at
>>
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnect
>>
>> ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
>> 1565)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
>> a:2116)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:109
>> 6)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
>> Director.java:398)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
>> ector.java:171)
>>         at
>>
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>         at
>>
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>>         at
>>
>> org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse.java:9
>> 4)
>>         at
>> org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
>>         at
>>
>> org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
>> 142)
>>         at
>> org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
>> 2013-05-27 10:46:06,217 ERROR httpclient.Http - Failed to get protocol
>> output
>> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>>         at
>>
>> sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
>>         at
>> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
>>         at
>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
>>         at
>>
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:13
>> 12)
>>         at
>> sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
>>         at
>> sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
>>         at
>> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>>         at
>> java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>>         at
>>
>> org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo
>> nnection.java:828)
>>         at
>>
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnect
>>
>> ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
>> 1565)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
>> a:2116)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:109
>> 6)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
>> Director.java:398)
>>         at
>>
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
>> ector.java:171)
>>         at
>>
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>         at
>>
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>>         at
>>
>> org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse.java:9
>> 4)
>>         at
>> org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
>>         at
>>
>> org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
>> 142)
>>         at
>> org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
>> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
>> https://cubatravel.cidi.uci.cu:8443/ failed with:
>> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
>> https://artemiseno.cidi.uci.cu/ failed with:
>> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>> 2013-05-27 10:46:06,227 INFO  fetcher.Fetcher - -finishing thread
>> FetcherThread, activeThreads=3
>> 2013-05-27 10:46:06,237 INFO  fetcher.Fetcher - -finishing thread
>> FetcherThread, activeThreads=2
>> 2013-05-27 10:46:06,331 INFO  fetcher.Fetcher - -activeThreads=2,
>> spinWaiting=0, fetchQueues.totalSize=0
>> 2013-05-27 10:46:06,998 INFO  fetcher.Fetcher - -finishing thread
>> FetcherThread, activeThreads=1
>>
>> http://www.uci.cu
>>
>
>

Re: handshake alert:unrecognized_name----problems with ssl using https conection

Posted by Tejas Patil <te...@gmail.com>.
Which version of Java are you using ? This problem is seen with Java 7 [0].
Downgrading to Java 6 might help you.

[0] :
http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0


On Mon, May 27, 2013 at 8:33 AM, Eyeris Rodriguez Rueda <er...@uci.cu>wrote:

> Hi all,
> Im tring to crawl a web site and I get one error with ssl, this is the
> exception javax.net.ssl.SSLProtocolException, specifically
>
> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
> https://cubatravel.cidi.uci.cu:8443/ failed with:
> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>
>
> finally the url are not fetched and of course not indexed.
> Im using nutch 1.5.1 and solr 3.6.1.
>
> I was reading this topic
>
> http://stackoverflow.com/questions/2606873/sslexception-hellorequest-followe
> d-by-an-unexpected-handshake-message  and some body recommend do this
>
> java.lang.System.setProperty("sun.security.ssl.allowUnsafeRenegotiation",
> "true");
>
>  but I don't know if nutch has this renegotiation included in its source
> code.
> Please any idea or suggestion to fix this problem will be appreciated.
> This is a part of my log file....
> ...
> ...
> 2013-05-27 10:45:37,264 INFO  fetcher.Fetcher- fetching
> https://cubatravel.cidi.uci.cu:8443/
> 2013-05-27 10:45:37,265 INFO  fetcher.Fetcher - Using queue mode : byHost
> 2013-05-27 10:45:37,270 INFO  fetcher.Fetcher - Using queue mode : byHost
> ...
> ...
> ...
> ...
> 2013-05-27 10:46:06,193 INFO  httpclient.HttpMethodDirector - Retrying
> request
> 2013-05-27 10:46:06,194 INFO  httpclient.HttpMethodDirector - I/O exception
> (javax.net.ssl.SSLProtocolException) caught when processing request:
> handshake alert:  unrecognized_name
> 2013-05-27 10:46:06,195 INFO  httpclient.HttpMethodDirector - Retrying
> request
> 2013-05-27 10:46:06,208 ERROR httpclient.Http - Failed to get protocol
> output
> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>         at
>
> sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
>         at
> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
>         at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
>         at
>
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:13
> 12)
>         at
> sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
>         at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
>         at
> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>         at
> java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>         at
>
> org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo
> nnection.java:828)
>         at
>
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnect
>
> ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
> 1565)
>         at
>
> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
> a:2116)
>         at
>
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:109
> 6)
>         at
>
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
> Director.java:398)
>         at
>
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
> ector.java:171)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>         at
>
> org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse.java:9
> 4)
>         at
> org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
>         at
>
> org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
> 142)
>         at
> org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
> 2013-05-27 10:46:06,217 ERROR httpclient.Http - Failed to get protocol
> output
> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
>         at
>
> sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1292)
>         at
> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1954)
>         at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
>         at
>
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:13
> 12)
>         at
> sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
>         at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
>         at
> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>         at
> java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>         at
>
> org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo
> nnection.java:828)
>         at
>
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnect
>
> ionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:
> 1565)
>         at
>
> org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
> a:2116)
>         at
>
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:109
> 6)
>         at
>
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
> Director.java:398)
>         at
>
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
> ector.java:171)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>         at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>         at
>
> org.apache.nutch.protocol.httpclient.HttpResponse.<init>(HttpResponse.java:9
> 4)
>         at
> org.apache.nutch.protocol.httpclient.Http.getResponse(Http.java:152)
>         at
>
> org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:
> 142)
>         at
> org.apache.nutch.fetcher.Fetcher$FetcherThread.run(Fetcher.java:692)
> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
> https://cubatravel.cidi.uci.cu:8443/ failed with:
> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
> 2013-05-27 10:46:06,226 INFO  fetcher.Fetcher - fetch of
> https://artemiseno.cidi.uci.cu/ failed with:
> javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name
> 2013-05-27 10:46:06,227 INFO  fetcher.Fetcher - -finishing thread
> FetcherThread, activeThreads=3
> 2013-05-27 10:46:06,237 INFO  fetcher.Fetcher - -finishing thread
> FetcherThread, activeThreads=2
> 2013-05-27 10:46:06,331 INFO  fetcher.Fetcher - -activeThreads=2,
> spinWaiting=0, fetchQueues.totalSize=0
> 2013-05-27 10:46:06,998 INFO  fetcher.Fetcher - -finishing thread
> FetcherThread, activeThreads=1
>
> http://www.uci.cu
>