I'm using simple xml library http://simple.sourceforge.net/ to deserialize an object from a socket input stream. While in simple java application the same situation works fine, in android I get, after
MyObject obj = serializer.read(MyObject.class,socket.getInputStream())
org.simpleframework.xml.stream.NodeException: Document has no root element
why is that??
You haven't been receiving the data. Try to set a Log and check if the data is present or no
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With