jQuery in Action, 3rd edition
The moose likes Sockets and Internet Protocols and the fly likes java.net.ProtocolException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java.net.ProtocolException" Watch "java.net.ProtocolException" New topic


Varun Jain

Joined: Dec 21, 2009
Posts: 4
Hi All,

I am trying to fetch some data from website using java code and I am getting this exception.
Any idea how to rectify it?
I have tried System.setProperty(max.Redirects...) but this does not work...

java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:803)
at Hello.addCorporate(Hello.java:607)
at Hello.main(Hello.java:96)
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 199
What can be a solution for that.I am also facing same problem
I agree. Here's the link: http://aspose.com/file-tools
subject: java.net.ProtocolException
It's not a secret anymore!