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. ViewFlipper switching views on screen orientation change

I have a 3 nested ViewFlippers which seem to be working ok except that
when I change the screen orientation the view flip back to the first
one of my views, giving the user the impression it went back a few

I am a bit stumped as to what to do and was hoping someone had some
experience with this. Thanks.


2. Salam kenal... Again..

Salam kenal semuanya.. Nubie banget nih... Saya liat temen temen saya juga 
banyak yg baru subscribe di milis ini (om widya, hari, hermawan)..
Mohon pencerahan

"Indonesian Android Community [id-android]" 

3. pressing home button to launch the web browser

4. xml updation

5. emulator not getting launched with 2.1 platform

6. Getting the Manifest Version Code

7. Web service client