错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use: JVM_Bind

时间:2021-05-02 20:10:56

在使用SpringMVC测试的时候, 遇到了这样一个问题, 说的是端口已经被使用了. 

错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use: JVM_Bind

代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099

端口被占用

解决方案:

1.查找出占用进程id

2.杀死进程

错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use: JVM_Bind

 

命令:

第一步: netstat -ano|findstr 1099

第二步: taskkill -f -pid 4836