I have a Maven Java GAE (Google App Engine) project in Eclipse Oxygen Release 4.7.2 and Google Cloud Tools for Eclipse plugin version 1.5.0. I'm running my Eclipse in a Windows 10 machine.
I have simple a Servlet class in my code:
package it.ale.test;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(name = "HelloAppEngine", urlPatterns = { "/hello" }, loadOnStartup = 1)
public class HelloAppEngine extends HttpServlet {
@Override
public void init() throws ServletException {
super.init();
System.out.println("Print something.");
}
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
response.setContentType("text/plain");
response.setCharacterEncoding("UTF-8");
response.getWriter().print("Hello App Engine!\r\n");
}
}
when I put a debug breakpoint on any line of the "public void init()" function, example on the line:
System.out.println("Print something.");
and I start the server in DEBUG mode (Debug As -> App Engine), the server startup is incredible SLOW and I reach the error message:
server app engine Standard at localhost was unable to start within 240 seconds. If the server requires more time, try increasing the timeout in the server editor.
UPDATE 16 January 2018:
in the meantime while the mistake is coming, Eclipse freeze and after that the Java process of the launched server remains hanging. So I cannot restart the server unless I kill the Java server process.
This is a screenshot that represents this point
Note that in the lower right corner the server's Java process has not yet been stopped
This is a screenshot that show the pending stopping state
So I cannot restart the server unless I kill the Java server process.
@BriandeAlwis Is there any log I can provide to help you better? Maybe is a Google Cloud SDK "gcloud" integration problem ?
UPDATE 16 January 2018:
I try to downgrade version in Google Cloud SDK:
- Google Cloud SDK 172.0.0
- app-engine-java 1.9.56
- app-engine-python 1.9.60
- bq 2.0.26
- core 2017.09.15
- gsutil 4.27
but the problem persists.
Now I'm back to the most current version highlighting the problem again.
- Google Cloud SDK 184.0.0
- app-engine-java 1.9.60
- app-engine-python 1.9.65
- bq 2.0.28
- core 2018.01.15
- gsutil 4.28