由于 java.rmi.server.ExportException 导致 Red5 服务器无法启动:内部错误:ObjID 已在使用中 [英] Red5 server failing to start up due to java.rmi.server.ExportException: internal error: ObjID already in use

查看:23
本文介绍了由于 java.rmi.server.ExportException 导致 Red5 服务器无法启动:内部错误:ObjID 已在使用中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始学习 Red5 服务器.我正在按照本教程开发一个简单的视频聊天应用程序:http://tharas.wordpress.com/2010/01/19/chat-application-with-red5-and-flex/.

我能够创建 flex 客户端.

对于服务端,我在 Eclipse 中创建了一个动态 Web 项目.然后从上面教程页面底部给出的源代码zip中手动复制WEB-INF文件夹文件和Application.java文件.

之后,当我尝试启动 Red5 服务器时,它失败并显示以下错误:Caused by: java.rmi.server.ExportException: internal error: ObjID already in use. >

我在许多论坛上搜索了几个小时来解决这个问题.我能想到的是,服务器启动脚本可能试图在 JVM 中两次创建 RMI 注册表项,这是不允许的.一个论坛建议编辑/etc/hosts 文件.一个论坛建议将 red5.properties 中的 rmiregistry 创建注释掉,并删除 red5-common.xml 中的 JMX 部分.但没有任何效果!

我已经在 Windows 8 中安装了 Red5 1.0 版.我已经安装了 Red5 Eclipse 插件并从 Eclipse 中运行服务器.

感谢任何帮助.如果需要,我可以发布详细的服务器日志.

解决方案

这里的问题是正在启动多个 Red5 实例或 RMI 注册表已经存在.我建议编辑您的 red5/conf/red5.properties 文件并将此条目更改为 false:

<前>jmx.registry.create=true

这应该隐藏"错误并允许您继续;真正的解决方法是防止在 Eclipse 中产生多个实例.

I have recently started to learn about Red5 server. I am following this tutorial to develop a simple video chat app: http://tharas.wordpress.com/2010/01/19/chat-application-with-red5-and-flex/.

I am able to create the flex client.

For the service side, I have created a Dynamic Web Project in Eclipse. Then manually copied the WEB-INF folder files and the Application.java file from the source code zip given in the above tutorial page at the bottom.

After that when I am trying to start the Red5 server, it is failing with the error: Caused by: java.rmi.server.ExportException: internal error: ObjID already in use.

I searched many forums for hours to resolve this. What I could figure out is, it is possible that the server start up script is trying to create RMI registry entry in the JVM twice, which is not allowed. One forum suggested editing the /etc/hosts file. One forum suggested commenting out the rmiregistry creation in red5.properties and delete the JMX part in red5-common.xml. But nothing worked!

I have installed Red5 version 1.0 in Windows 8. I have installed the Red5 Eclipse plugin and running the server from within Eclipse.

Any help is appreciated. If you need, I can post the detailed server log.

解决方案

The issue here is that more than one instance of Red5 is being started or the RMI registry already exists. I suggest editing your red5/conf/red5.properties file and changing this entry to false:

jmx.registry.create=true

This should "hide" the error and allow you to continue; the real fix would be to prevent spawning multiple instances within Eclipse.

这篇关于由于 java.rmi.server.ExportException 导致 Red5 服务器无法启动:内部错误:ObjID 已在使用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆