rajdeokumarsingh / google-voice-java

Automatically exported from code.google.com/p/google-voice-java
0 stars 0 forks source link

NullPointerException on Login #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Ever since r120, many of my Android users have been reporting this 
NullPointerException that occurs during login:

java.lang.NullPointerException
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.rea
dln(HttpURLConnectionImpl.java:1279)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$Chu
nkedInputStream.readChunkSize(HttpURLConnectionImpl.java:404)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$Chu
nkedInputStream.<init>(HttpURLConnectionImpl.java:340)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.get
ContentStream(HttpURLConnectionImpl.java:1175)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doR
equestInternal(HttpURLConnectionImpl.java:1754)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doR
equest(HttpURLConnectionImpl.java:1649)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.get
ResponseCode(HttpURLConnectionImpl.java:1374)
at 
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.g
etResponseCode(HttpsURLConnectionImpl.java:117)
at com.techventus.server.voice.Voice.get(Voice.java:1231)
at com.techventus.server.voice.Voice.getGeneral(Voice.java:432)
at com.techventus.server.voice.Voice.init(Voice.java:330)
at com.techventus.server.voice.Voice.<init>(Voice.java:256)
at com.realtynode.gvfree.gvdialer$2.run(gvdialer.java:247)

Original issue reported on code.google.com by gurur...@gmail.com on 26 Aug 2010 at 8:36

GoogleCodeExporter commented 8 years ago
revision 120 was just a javadoc change, so it might have been revision 119 or 
revision 118 or even earlier ones?

Original comment by teisentr...@gmail.com on 27 Aug 2010 at 12:53

GoogleCodeExporter commented 8 years ago
The first I noticed of this problem was August 6, right around the time r120 
was released. It is likely that it probably was occurring in r119, but I 
perhaps never pushed that version out to my users.  Below is the first 
occurrence of this exception (originally crashing in Voice.java line 1219):

java.lang.NullPointerException
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.rea
dln(HttpURLConnectionImpl.java:1279)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$Chu
nkedInputStream.readChunkSize(HttpURLConnectionImpl.java:404)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$Chu
nkedInputStream.<init>(HttpURLConnectionImpl.java:340)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.get
ContentStream(HttpURLConnectionImpl.java:1175)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doR
equestInternal(HttpURLConnectionImpl.java:1754)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doR
equest(HttpURLConnectionImpl.java:1649)
at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.get
ResponseCode(HttpURLConnectionImpl.java:1374)
at 
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.g
etResponseCode(HttpsURLConnectionImpl.java:117)
at com.techventus.server.voice.Voice.get(Voice.java:1219)
at com.techventus.server.voice.Voice.getGeneral(Voice.java:428)
at com.techventus.server.voice.Voice.init(Voice.java:326)
at com.techventus.server.voice.Voice.<init>(Voice.java:252)
at com.realtynode.gvfree.gvdialer$2.run(gvdialer.java:247)

Original comment by gurur...@gmail.com on 27 Aug 2010 at 4:45

GoogleCodeExporter commented 8 years ago
I have been running the source directly on "non-Android" flavour on my laptop 
and reproducing it 100% with an account I have.  I get this error - 
https://www.google.com/voice/inbox/recent/sms/ - Moved Temporarily

Did the URLs on googlevoice change?

Original comment by dan.mo...@gmail.com on 1 Sep 2010 at 3:55

GoogleCodeExporter commented 8 years ago
btw - here is the full stack trace:

java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
    at com.techventus.server.voice.Voice.get(Voice.java:1200)
    at com.techventus.server.voice.Voice.getGeneral(Voice.java:401)
    at com.techventus.server.voice.Voice.init(Voice.java:299)
    at com.techventus.server.voice.Voice.<init>(Voice.java:259)

Fixing getGeneral to a getGeneralPage seems to get past the NPE, but then I 
can't seem to get the rnr_se.

Original comment by dan.mo...@gmail.com on 1 Sep 2010 at 4:32

GoogleCodeExporter commented 8 years ago
Dan - could you give us a snippet of the Voice functions you are using, so we 
can reproduce it as well?

Original comment by teisentr...@gmail.com on 1 Sep 2010 at 11:31

GoogleCodeExporter commented 8 years ago
I am using the test class.  I can run basically any of the tests to reproduce 
this issue since its in the init of the constructor.  But its only on one user 
where I can 100% reproduce it.

Original comment by dan.mo...@gmail.com on 1 Sep 2010 at 12:18

GoogleCodeExporter commented 8 years ago
I'm sorry for the spam, but I was wondering if a solution was ever found to the 
"Moved Temporarily" problem. Thanks

Original comment by chrismeg...@gmail.com on 19 Oct 2010 at 1:51

GoogleCodeExporter commented 8 years ago
It's weird, because if checkout the HEAD revision (128) and run, it's working 
just fine. The lastest release were generated with which revision?

Original comment by tproe...@gmail.com on 11 Nov 2010 at 11:30

GoogleCodeExporter commented 8 years ago
Yeah it was my fault. I downloaded the version from the website instead of the 
latest one from the SVN. Sorry

Original comment by chrismeg...@gmail.com on 11 Nov 2010 at 11:33

GoogleCodeExporter commented 8 years ago
I guess this is resolved? Can you confirm, gururise?

Original comment by liquid...@gmail.com on 6 Jan 2011 at 2:56

GoogleCodeExporter commented 8 years ago

Original comment by malone.j...@gmail.com on 26 Dec 2011 at 1:16