Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine: WARNING: failed Server@3d484a8a: java.net.BindException: Address already in use

I just started learning about servers, and I am messing around with Google's App Engine. I am trying to get through App Engine's tutorial located here using Eclipse on Mac, but I am getting a problem that reads:

Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /Users/ayanonagon/Desktop/Venmo/iPhoneApplication/Guestbook/war/WEB-INF/appengine-web.xml
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /Users/ayanonagon/Desktop/Venmo/iPhoneApplication/Guestbook/war/WEB-INF/web.xml
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed [email protected]:8888: java.net.BindException: Address already in use
Jun 24, 2010 4:35:08 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed Server@3d484a8a: java.net.BindException: Address already in use

************************************************
Could not open the requested socket: Address already in use
Try overriding --address and/or --port.

I've tried searching the problem, and no, the red square in the console view is not red. It might somehow be a Mac problem, since my friend who is also going through the tutorial is not getting any problems. Maybe something to do with localhost:8888?

like image 856
Ayaka Nonaka Avatar asked Jun 24 '10 16:06

Ayaka Nonaka


People also ask

What is Java net BindException address already in use?

BindException: Address already in use: JVM_Bind is a common exception in Java with applications trying to connect on a particular port and some other processes either Java or non Java is already connected on that port.

What is Java net BindException?

The java. net. BindException is an exception that is thrown when there is an error caused in binding when an application tries to bind a socket to a local address and port.

What are instances in Google App Engine?

Stay organized with collections Save and categorize content based on your preferences. Instances are the basic building blocks of App Engine, providing all the resources needed to successfully host your application.


2 Answers

In my case I was starting the app, testing it, making changes to the files, then trying to start or test it again. I found this solution.

See http://code.google.com/appengine/docs/java/tools/eclipse.html#Running_the_Project

Which, among other wonderful information about when you have to restart it and when you don't, says: "To stop the server, make sure the Debug panel is selected, then click the Terminate button: The Eclipse terminate button."

To open the debug panel: Click Window -> Show View -> Other Expand the Debug list then click Debug

The debug panel will now be displayed and the Terminate button is the red square at the top right of the debug panel.

After terminating the existing server you have to do the Run it again of course.

like image 74
James W. Avatar answered Sep 21 '22 13:09

James W.


This means you either have another instance running on the port or you have another program listening on the port. What else do you have on port 8888?

If you want to customize how the server is started, you can create a new Run/Debug configuration of the type Web Application in Eclipse or change the existing one you have.

like image 32
Romain Hippeau Avatar answered Sep 20 '22 13:09

Romain Hippeau