简体   繁体   中英

In Java to use tika… how to resolve 'java.io.IOException'

I am using tika with Java for crawling program. I have used BSF_Recursive for that. After some results, it shows me this...

http://www.google.com

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://translate.google.com/
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

It's most likely a protection from DDOS attacks.

You can't do much about it. You can catch the exception but the processing will not continue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM