Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle App Engine not being accessed via localhost
    text
    copied!<p>I am using Mac OS X 10.7.4, app engine sdk 1.7.0, eclipse juno and Java as programming language. The problem is that App runs perfectly well when deployed on appspot but does not work on localhost. When run as web application on port 8888 or any other port (if change it from the configuration), the log represents server is running but when I hit the URL, nothing happens and after some time connection times out. When, debugged it gives the error: <code>Cannot connect to VM</code>. Logs from console for both run and debugged are shown below, kindly help me, I have searched all over the 'net but could not find the solution.</p> <p><strong>Log when Debugged:</strong></p> <pre><code>ERROR: transport error 202: handshake failed - connection prematurally closed ERROR: JDWP: Failed to initialize transport via localhost:49741, trying localhost via 127.0.0.1:49741 ERROR: transport error 202: recv failed during handshake: Connection reset by peer ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) </code></pre> <p><strong>Log when run:</strong></p> <pre><code>2012-07-17 19:07:42.504 java[417:407] [Java CocoaComponent compatibility mode]: Enabled 2012-07-17 19:07:42.505 java[417:407] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000 Jul 17, 2012 2:07:49 PM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Jul 17, 2012 2:07:50 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed /Volumes/DATA 1/Google App Engine/Java/HelloWorld/war/WEB-INF/appengine-web.xml Jul 17, 2012 2:07:50 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml INFO: Successfully processed /Volumes/DATA 1/Google App Engine/Java/HelloWorld/war/WEB-INF/web.xml Jul 17, 2012 7:07:52 PM com.google.appengine.tools.development.DevAppServerImpl start INFO: The server is running at localhost:8888/ Jul 17, 2012 7:07:52 PM com.google.appengine.tools.development.DevAppServerImpl start INFO: The admin console is running at localhost:8888/_ah/admin </code></pre> <p><strong>Log when Run from command line:</strong></p> <pre><code> Jul 21, 2012 3:23:19 PM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Jul 21, 2012 3:23:19 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed /Volumes/DATA 1/Softwares/appengine-java-sdk-1.7.0/demos /guestbook/war/WEB-INF/appengine-web.xml Jul 21, 2012 3:23:19 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml INFO: Successfully processed /Volumes/DATA 1/Softwares/appengine-java-sdk-1.7.0/demos/guestbook/war/WEB-INF/web.xml Jul 21, 2012 8:23:22 PM com.google.appengine.tools.development.DevAppServerImpl start INFO: The server is running at http://localhost:8080/ Jul 21, 2012 8:23:23 PM com.google.appengine.tools.development.DevAppServerImpl start INFO: The admin console is running at http://localhost:8080/_ah/admin </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload