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 ?
- your question not clear.
- 405 when not have configured webservice. since use tomcat, might have not defined service in pom.xml probably.
- make post request through browser first, check if server working or not.
Comments
Post a Comment