android - Apache of type java.lang.string cannot be converted to JSON object -


when send request got response in html format

07-08 03:27:56.447: d/log_tag2.0(2383): out side catch error converting result apache tomcat/7.0.55 - error report

http status 405 - request method 'post' not supported

type status report

message request method 'post' not supported

description specified http method not allowed requested resource.

apache tomcat/7.0.55

07-08 03:27:56.447: d/log_tag3(2383): inside catch error parsing data org.json.jsonexception: value apache of type java.lang.string cannot converted jsonobject

how can solve problem ?

  1. your question not clear.
  2. 405 when not have configured webservice. since use tomcat, might have not defined service in pom.xml probably.
  3. make post request through browser first, check if server working or not.

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -