我无法在 Eclipse 中停止 red5 服务器(0.9.1)。它抛出一个错误:
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: red5
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:357)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
at org.red5.server.Shutdown.main(Shutdown.java:85)
Caused by: javax.naming.NameNotFoundException: red5
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:116)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1924)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1891)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:274)
... 2 more
之后我尝试在调试中运行,但我看到错误端口很忙。我必须重新启动我的电脑才能让它再次工作......
我使用:Windows 7 64 位、Java 32-bt、Eclipce Galileo。
谢谢!