Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SocketException and then NullPointerExceptions #21

Open
GoogleCodeExporter opened this issue Aug 19, 2015 · 0 comments
Open

SocketException and then NullPointerExceptions #21

GoogleCodeExporter opened this issue Aug 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 22 Jun 2010 at 5:02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant