In Google App Engine Java, i am trying to run backend but i always get Error message in backends log..
Process terminated because it failed to respond to the start request with an HTTP status code of 200-299 or 404.
App Engine Logs
2014-12-07 11:06:31.944 /_ah/start 302 4842ms 0kb instance=0 module=default version=testservice
0.1.0.3 - - [06/Dec/2014:21:36:31 -0800] "GET /_ah/start HTTP/1.1" 302 231 - - "0.testservice.testapp.appspot.com" ms=4842 cpu_ms=7626 cpm_usd=0.000026 loading_request=1 exit_code=107 instance=0 app_engine_release=1.9.16
com.test.AppFilter doGet: Filter Initiated..!
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application. E 2014-12-05 11:02:16.916
Process terminated because it failed to respond to the start request with an HTTP status code of 200-299 or 404.
Please Help.
When a module (or the former version : backend) starts, the Google App Engine orchestrator sends an HTTP request to
/_ah/start
. You can use this HTTP request to perform any initialization operation you wish.This HTTP request, as explained in the log messages, must return an HTTP status code either between
200
and299
(which tells that the request was correctly processed) or404 Not Found
(which tells that you did not attach any servlet or filter to this request).All this is explained in Google's documentation at this page.
Here the answer was
302 Redirect
. This is usually trigerred by a security filter that redirects to an authentication screen.If you defined a custom security filter or a servlet that handles the
/_ah/start
URL, makes sure it returns a200
HTTP code.If you set a
<security-constraint>
on this URL (apart to force SSL), remove it.