导致END_TAG错误的原因是什么?

时间:2014-09-24 10:55:42

标签: android ksoap2

目前我无法解决问题:

android: why Am I getting END_TAG error when I execute a function while it is a copy-paste of other which is working?

我的堆栈错误是:

09-22 22:43:30.711: W/System.err(3338): org.xmlpull.v1.XmlPullParserException: expected: END_TAG {http://schemas.xmlsoap.org/soap/envelope/}Body (position:END_TAG </{http://schemas.xmlsoap.org/soap/envelope/}s:Fault>@1:802 in java.io.InputStreamReader@536f30c4) 
09-22 22:43:30.711: W/System.err(3338):     at org.kxml2.io.KXmlParser.require(KXmlParser.java:2046)
09-22 22:43:30.715: W/System.err(3338):     at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:138)
09-22 22:43:30.715: W/System.err(3338):     at org.ksoap2.transport.Transport.parseResponse(Transport.java:63)
09-22 22:43:30.715: W/System.err(3338):     at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:100)
09-22 22:43:30.715: W/System.err(3338):     at org.tempuri.IAndroid.userPasswordExists(IAndroid.java:304)
09-22 22:43:30.715: W/System.err(3338):     at org.tempuri.IAndroid.getAllProductsAndOffers(IAndroid.java:50)
09-22 22:43:30.715: W/System.err(3338):     at info.android.AllFragment.onCreateView(AllFragment.java:48)
09-22 22:43:30.719: W/System.err(3338):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:829)
09-22 22:43:30.719: W/System.err(3338):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)
09-22 22:43:30.719: W/System.err(3338):     at android.app.BackStackRecord.run(BackStackRecord.java:635)
09-22 22:43:30.719: W/System.err(3338):     at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1397)
09-22 22:43:30.719: W/System.err(3338):     at android.app.Activity.performStart(Activity.java:5017)
09-22 22:43:30.723: W/System.err(3338):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2032)
09-22 22:43:30.723: W/System.err(3338):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
09-22 22:43:30.723: W/System.err(3338):     at android.app.ActivityThread.access$600(ActivityThread.java:130)
09-22 22:43:30.723: W/System.err(3338):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
09-22 22:43:30.723: W/System.err(3338):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-22 22:43:30.727: W/System.err(3338):     at android.os.Looper.loop(Looper.java:137)
09-22 22:43:30.727: W/System.err(3338):     at android.app.ActivityThread.main(ActivityThread.java:4745)
09-22 22:43:30.727: W/System.err(3338):     at java.lang.reflect.Method.invokeNative(Native Method)
09-22 22:43:30.727: W/System.err(3338):     at java.lang.reflect.Method.invoke(Method.java:511)
09-22 22:43:30.727: W/System.err(3338):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-22 22:43:30.727: W/System.err(3338):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-22 22:43:30.727: W/System.err(3338):     at dalvik.system.NativeStart.main(Native Method)
09-22 22:43:30.727: W/System.err(3338): java.lang.NullPointerException
09-22 22:43:30.731: W/System.err(3338):     at org.tempuri.IAndroid.getAllProductsAndOffers(IAndroid.java:50)
09-22 22:43:30.731: W/System.err(3338):     at info.android.AllFragment.onCreateView(AllFragment.java:48)
09-22 22:43:30.731: W/System.err(3338):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:829)
09-22 22:43:30.735: W/System.err(3338):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)
09-22 22:43:30.735: W/System.err(3338):     at android.app.BackStackRecord.run(BackStackRecord.java:635)
09-22 22:43:30.735: W/System.err(3338):     at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1397)
09-22 22:43:30.735: W/System.err(3338):     at android.app.Activity.performStart(Activity.java:5017)
09-22 22:43:30.735: W/System.err(3338):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2032)
09-22 22:43:30.735: W/System.err(3338):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
09-22 22:43:30.735: W/System.err(3338):     at android.app.ActivityThread.access$600(ActivityThread.java:130)
09-22 22:43:30.735: W/System.err(3338):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
09-22 22:43:30.739: W/System.err(3338):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-22 22:43:30.739: W/System.err(3338):     at android.os.Looper.loop(Looper.java:137)
09-22 22:43:30.739: W/System.err(3338):     at android.app.ActivityThread.main(ActivityThread.java:4745)
09-22 22:43:30.739: W/System.err(3338):     at java.lang.reflect.Method.invokeNative(Native Method)
09-22 22:43:30.739: W/System.err(3338):     at java.lang.reflect.Method.invoke(Method.java:511)
09-22 22:43:30.743: W/System.err(3338):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-22 22:43:30.743: W/System.err(3338):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-22 22:43:30.743: W/System.err(3338):     at dalvik.system.NativeStart.main(Native Method)

此错误的原因是什么?我想丢弃你告诉我的一切我没有想法,因为我认为我的代码是正确的。

1 个答案:

答案 0 :(得分:0)

直到我看到参数必须相同,并且不区分大小写,与函数名称相同。有一个列表可以解决这个问题。或者也许是一个阅读链接。