yujinchung / android-market-api

Automatically exported from code.google.com/p/android-market-api
0 stars 0 forks source link

SocketException and then NullPointerExceptions #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm experiencing the following problem: i do get the information about a list 
of apps. Therefore i do session.append + session.flush with a Thread.sleep 
inbetween. After a while i get a SocketException and afterwars only 
NullPointerException, see the stacktraces below.
I'm using version 0.3.

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): Error getting online 
versions

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): 
java.lang.RuntimeException: java.net.SocketException: The socket level is 
invalid

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
com.gc.android.market.api.MarketSession.executeRawHttpQuery(MarketSession.java:2
59)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
com.gc.android.market.api.MarketSession.executeProtobuf(MarketSession.java:209)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
com.gc.android.market.api.MarketSession.flush(MarketSession.java:180)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
de.goddchen.android.appupdate.UpdateCheckService$1.run(UpdateCheckService.java:1
55)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
java.util.Timer$TimerImpl.run(Timer.java:290)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): Caused by: 
java.net.SocketException: The socket level is invalid

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl(Native 
Method)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream(OSNetworkSystem.j
ava:478)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:565)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:61)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readln(
HttpURLConnection.java:1178)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.readSer
verResponse(HttpURLConnection.java:1250)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doReque
st(HttpURLConnection.java:1546)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getResp
onseCode(HttpURLConnection.java:1273)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): at 
com.gc.android.market.api.MarketSession.executeRawHttpQuery(MarketSession.java:2
39)

06-22 18:43:08.547 E/de.goddchen.android.appupdate( 3535): ... 4 more

06-22 18:43:08.812 E/de.goddchen.android.appupdate( 3535): Error getting online 
versions

06-22 18:43:08.812 E/de.goddchen.android.appupdate( 3535): 
java.lang.NullPointerException

06-22 18:43:08.812 E/de.goddchen.android.appupdate( 3535): at 
com.gc.android.market.api.model.Market$Request.access$7(Market.java:7568)

06-22 18:43:08.812 E/de.goddchen.android.appupdate( 3535): at 
com.gc.android.market.api.model.Market$Request$Builder.addRequestGroup(Market.ja
va:7886)

06-22 18:43:08.812 E/de.goddchen.android.appupdate( 3535): at 
com.gc.android.market.api.MarketSession.append(MarketSession.java:156)

06-22 18:43:08.812 E/de.goddchen.android.appupdate( 3535): at 
de.goddchen.android.appupdate.UpdateCheckService$1.run(UpdateCheckService.java:1
20)

06-22 18:43:08.812 E/de.goddchen.android.appupdate( 3535): at 
java.util.Timer$TimerImpl.run(Timer.java:290)

Original issue reported on code.google.com by goddc...@googlemail.com on 22 Jun 2010 at 5:02