java - XML parsing error Unexpected token position:TEXT @1:2? -


the error showing is

unexpected token (position:text @1:2 in java.io.stringreader@41d569a8)

i following tutorial androidhive

but when using url

(http://example.com/ss.svc/apiabc?a=10&key=xxxxx&from=19&to=221&date=19-apr-2016) parse data showing me error like-

  04-19 15:39:17.349: e/error:(29642): unexpected token (position:text @1:2 in java.io.stringreader@41d501a8)  04-19 15:39:17.349: d/androidruntime(29642): shutting down vm 04-19 15:39:17.349: w/dalvikvm(29642): threadid=1: thread exiting uncaught exception (group=0x41322438) 04-19 15:39:17.379: e/androidruntime(29642): fatal exception: main 04-19 15:39:17.379: e/androidruntime(29642): java.lang.runtimeexception: unable start activity componentinfo{com.example.androidhive/com.example.androidhive.customizedlistview}: java.lang.nullpointerexception 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2114) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.activitythread.handlelaunchactivity(activitythread.java:2139) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.activitythread.access$700(activitythread.java:143) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.activitythread$h.handlemessage(activitythread.java:1241) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.os.handler.dispatchmessage(handler.java:99) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.os.looper.loop(looper.java:137) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.activitythread.main(activitythread.java:4960) 04-19 15:39:17.379: e/androidruntime(29642):    @ java.lang.reflect.method.invokenative(native method) 04-19 15:39:17.379: e/androidruntime(29642):    @ java.lang.reflect.method.invoke(method.java:511) 04-19 15:39:17.379: e/androidruntime(29642):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1038) 04-19 15:39:17.379: e/androidruntime(29642):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:805) 04-19 15:39:17.379: e/androidruntime(29642):    @ dalvik.system.nativestart.main(native method) 04-19 15:39:17.379: e/androidruntime(29642): caused by: java.lang.nullpointerexception 04-19 15:39:17.379: e/androidruntime(29642):    @ com.example.androidhive.customizedlistview.oncreate(customizedlistview.java:48) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.activity.performcreate(activity.java:5203) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1094) 04-19 15:39:17.379: e/androidruntime(29642):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2078) 

my xml format this

 <apiabc xmlns="http://exapmle.org/">     <apiabcd xmlns:a="http://ac.ssc.org/2014/21/abfaggkk" xmlns:i="http://www.w3.org/2001/xmlschema-instance">     <route>     <time>2016-04-13 06:11:00 am</time>     <avail>xyz</avail> <thumb_url>http://api.androidhive.info/music/images/adele.png</thumb_url>     <buslabel/>     </route>     </apiabc>     </apiabcd> 


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -