nillbiplob / ksoap2-android

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

Gingerbread Serialization Issue #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a SoapEnvelope for a web method.
2. Add the appropriate properties for the web method.
3. Execute the web method.

What is the expected output? What do you see instead?
A successful execution of the web method call.
A NullPointerException occurs.

What version of the product are you using? On what operating system?
2.3.3

Please provide any additional information below.

This has only been noticed on Gingerbread based devices.
The problem occurs on both the emulator and an actual device.

Caused by: java.lang.NullPointerException
    at org.kxml2.io.KXmlSerializer.check(KXmlSerializer.java:75)
    at org.kxml2.io.KXmlSerializer.startTag(KXmlSerializer.java:376)
    at org.kxml2.kdom.Element.write(Element.java:318)
    at org.kxml2.kdom.Node.writeChildren(Node.java:330)
    at org.kxml2.kdom.Element.write(Element.java:331)
    at org.ksoap2.SoapEnvelope.writeHeader(SoapEnvelope.java:203)
    at org.ksoap2.SoapEnvelope.write(SoapEnvelope.java:189)
    at org.ksoap2.transport.Transport.createRequestData(Transport.java:101)
    at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:114)
    at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:90)
    at edu.ua.caps.ksoap.Ksoap2$AdvanceWebService.ResolveMobileMOVEAccount(Ksoap2.java:548)
    at edu.ua.caps.ui.LoginActivity$AsyncLogin.doInBackground(LoginActivity.java:203)
    at edu.ua.caps.ui.LoginActivity$AsyncLogin.doInBackground(LoginActivity.java:1)
    at android.os.AsyncTask$2.call(AsyncTask.java:185)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
    ... 4 more

Original issue reported on code.google.com by ARAva...@gmail.com on 4 Apr 2011 at 6:12

GoogleCodeExporter commented 9 years ago
I found the problem came from the way the soap header was added to the 
envelope. If done in a different manner, this error doesn't occur. Rather than 
that, though, there should be better documentation of how to add a security 
header to a soap envelope.

Original comment by ARAva...@gmail.com on 4 Apr 2011 at 9:10

GoogleCodeExporter commented 9 years ago
Its on the wiki already.

Original comment by mosa...@gmail.com on 2 Jun 2011 at 10:26

GoogleCodeExporter commented 9 years ago
which part of the wiki?

Original comment by joseayer...@gmail.com on 4 Aug 2011 at 8:14

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/ksoap2-android/wiki/CodingTipsAndTricks

Original comment by mosa...@gmail.com on 5 Aug 2011 at 5:08