IDEA启动项目时不时就会出现一些奇怪的问题,如以下错误代码
文章来源:https://www.toymoban.com/news/detail-530853.html
2022-10-28 09:09:54 [RMI TCP Accept-0] WARN sun.rmi.transport.tcp
- RMI TCP Accept-0: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=53137] throws
java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been exported.
at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:114)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:405)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:377)
at java.lang.Thread.run(Thread.java:748)
解决方案:
1、打开IDEA右上角Edit Configurations
2、在VM options处填写-Djava.rmi.server.hostname=localhost
3、重新启动项目,成功文章来源地址https://www.toymoban.com/news/detail-530853.html
到了这里,关于项目启动报错RMI TCP Accept-0: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=53137]的解决方案之一的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!