How to resolve this Error (GWT)

时间秒杀一切 提交于 2019-12-05 11:33:21

The problem is that there is already a server running at that port address. If you start your gwt application from eclipse keep sure that you kill the open processes. For that change to DEBUG mode, select the top of the process stack and stop/kill the application processes.

Some other process is using port 8888 then. Use the GWT DevMode parameter -port 8889 (or any other port that fits you) and you should be fine.

You might use netstat -p (or your OS variant that shows process names) to figure out what's on port 8888.

Cheers,

The exception is thrown because you are trying to bind to a port that is already in use by another process.

Using netstat -a from the command line will show you a list of open ports and the process that's using them. Than you can kill it.

It means specified port number is already in used by other application. Try to change your port number for the end point publisher.

For example use like this

 127.0.0.0:8889 

We can use similar ports to avoid the binding exception

In the development mode window, make sure to stop and close all launches If you cant find Development Mode try Window> Show View> Other. Search for Development Mode

As an addendum, I was having this problem when I knew there was not another process running. I was also using -bindAddress to expose my app to other hosts. When my DHCP lease expired, my machine got a different IP. GWT reported the failure to bind to the old address as "Address already in use".

Clearly I was tempting fate, but still I wanted to post this in-case it trips someone else up.

Easy. Open your Run Configuration, select Server, and then choose automatically select an unused port. Apply, OK

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!