simpligility / ksoap2-android

ksoap2-android - SOAP support for Android
http://simpligility.github.io/ksoap2-android/
Other
543 stars 247 forks source link

Error: java.net.ProtocolException: unexpected end of stream #122

Closed zipswich closed 5 years ago

zipswich commented 6 years ago

This error frequently occurs on Android emulators when HttpTransportSE.call() is executed:

cause = {java.net.ProtocolException@8112} "java.net.ProtocolException: unexpected end of stream" backtrace = {java.lang.Object[10]@8124} 0 = {int[18]@8127} 1 = {java.lang.Class@2858} "class com.android.okhttp.internal.http.Http1xStream$FixedLengthSource" 2 = {java.lang.Class@2880} "class com.android.okhttp.okio.RealBufferedSource$1" 3 = {java.lang.Class@3793} "class java.io.BufferedInputStream" 4 = {java.lang.Class@3793} "class java.io.BufferedInputStream" 5 = {java.lang.Class@3793} "class java.io.BufferedInputStream" 6 = {java.lang.Class@6708} "class org.ksoap2.transport.HttpTransportSE" 7 = {java.lang.Class@6708} "class org.ksoap2.transport.HttpTransportSE" 8 = {java.lang.Class@6708} "class org.ksoap2.transport.HttpTransportSE"

Wireshark traces shows the responses are normal.

This usually can be remedied by calling HttpTransportSE.getServiceConnection().disconnect() followed by HttpTransportSE.call() again.
Could anyone shed some light on this?

zheka2 commented 6 years ago

Have same error in AVD

mosabua commented 5 years ago

Unless you can provide more info on what might actually be wrong and maybe provide a PR with a fix there is nothing I can do here.