java - HTTP 500 error failed with 200 status code -
java - HTTP 500 error failed with 200 status code -      i have developed jax-rs project , called rest  service  add together   info database. when sending post request  add together data, gives 200 status code, adds   info database , additionally gives 500  status says internal server error.   below jax-rs code.    @post @path("/users/add/") @produces("text/plain") public response adduser(         @queryparam("userid") string userid,         @queryparam("username") string username,         @queryparam("userrole") string userrole,         @queryparam("email") string email,         @queryparam("password") string password,         @queryparam("phone") string phone) {      system.out.println("----invoking adduser");      try{         httpclient = new defaulthttpclient();         httppost postrequest = new httppost("http://appserver.dev.cloud.wso2.com/services/t/madusanka/projecttrackerdb-default...