wood burning stoves 2.0*
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
Author

java.net.ProtocolException

Varun Jain
Greenhorn

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: 186
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
 
Similar Threads
Cannot resolve symbol
Using cmd.exe
How do I compile mt Tag Handler...?
How to compile a java file from anyother folder
Doubt On Java Compiler