Ok, so I found what the stacktrace was: my URL had spaces in it. Removing those fixed the stacktrace, but I'm still confused as to where the apache package comes in. Is it the reference implementation used in android instead of the original java.net implementation?
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bushnaq, Ahmad Sent: Friday, May 30, 2008 4:25 PM To: [email protected] Subject: [android-beginners] HttpURLConnection Hi Everyone, I'm a little confused about a stacktrace I'm getting intermittently in LogCat: ERROR/CommMgrService(854): java.lang.IllegalArgumentException: Argument must not be null ERROR/CommMgrService(854): at java.net.ProxySelectorImpl.select(ProxySelectorImpl.java:89) ERROR/CommMgrService(854): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection .connect(HttpURLConnection.java:754) ERROR/CommMgrService(854): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection .getInputStream(HttpURLConnection.java:1018) ERROR/CommMgrService(854): at com.superpages.services.CommMgrService.run(CommMgrService.java:71) ERROR/CommMgrService(854): at java.lang.Thread.run(Thread.java:896) The second line from the bottom is the only one from my own code, and reads: Xml.parse(new InputStreamReader(conn.getInputStream()), op.getHandler()); Where Xml is one of the utility android classes for parsing, InputStreamReader is the one from java.io, and op.getHandler() returns a subclass of DefaultHandler. Conn is an HttpURLConnection, and looking at the stacktrace I would assume that I'm using the one from apache, except I'm not. My include explicitly says java.net.HttpURLConnection and there is no mention of apache anywhere in that file. Furthermore, what argument? Any and all insights are appreciated. Ahmad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

