Protocol exception : too many redirects

by steVe » Tue, 09 Mar 2010 01:44:08 GMT

Sponsored Links
 Hi All,

I get this protocol exception error when I try to read a rss feed. Its
loading fine on the emulator. But when I test on my device (Droid), it
throws the below error.

03-08 12:29:25.210: ERROR/AndroidRuntime(5108): Caused by: Too many redirects
03-08 12:29:25.210: ERROR/AndroidRuntime(5108):     at
03-08 12:29:25.210: ERROR/AndroidRuntime(5108):     at
03-08 12:29:25.210: ERROR/AndroidRuntime(5108):     at
03-08 12:29:25.210: ERROR/AndroidRuntime(5108):     at
03-08 12:29:25.210: ERROR/AndroidRuntime(5108):     ... 9 more

It stops here on getInputStream.

At the same time I am reading another two feeds from the same server.
It loads and parses fine...

Here is the code

Xml.parse(this.getInputStream(), Xml.Encoding.UTF_8,

protected InputStream getInputStream() {
                try {
                        URLConnection feedCon = feedUrl.openConnection();

                        return feedCon.getInputStream();
                } catch (IOException e) {
                        throw new RuntimeException(e);

Am I doing anything wrong ? Or is it a bug ?


Other Threads

1. "On Android nobody is making signi ficant revenue.鈥???

could everybody comment on it as well as on sale of ur app?


2. Map application and KMZ files....

Is the map application that comes with Android capable of digesting
KMZ files at all? I can start it up with an intent that sends in a KML
file with no problem... But every single time I send a KMZ URL to it,
it tells me that the file "Contains Errors". Since i have now tried
roughly a dozen different URLS with a dozen different KMZ files, I
somehow suspect it is not the KMZ's that are corrupted - especially
since those KMZ's open fine in Google Earth...

So I have to wonder - is this a problem with that app, with the ADT or
is it just not supported?


3. WebKit - access to DOM model

4. Question about resolution and minimum flash & RAM

5. opencore/progressive download : how does it work ?

6. WebViewClient dont show YouTube Videos???

7. Log messages no longer appear in LogCat