openfire:无法启动 openfire 服务器

openfire : not able to start openfire server

我刚刚下载了openfire 3.10。 安装正常。但是当我启动 Openfire 服务器时,它在启动期间给了我以下错误:

java.lang.IllegalArgumentException: Illegal JID: chintan_pE
crror starting the server. Please check the log files for more information.

    at org.xmpp.packet.JID.<init>(JID.java:542)
    at org.xmpp.packet.JID.<init>(JID.java:483)
    at org.xmpp.packet.JID.<init>(JID.java:464)
    at org.jivesoftware.openfire.SessionManager.initialize(SessionManager.java:1349)
    at org.jivesoftware.openfire.XMPPServer.initModules(XMPPServer.java:618)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:504)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:216)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: The input is not a valid JID domain part: chintan_pc
    at org.xmpp.packet.JID.domainprep(JID.java:344)
    at org.xmpp.packet.JID.<init>(JID.java:530)
    ... 20 more
Caused by: gnu.inet.encoding.IDNAException: Contains non-LDH characters.
    at gnu.inet.encoding.IDNA.toASCII(IDNA.java:118)
    at gnu.inet.encoding.IDNA.toASCII(IDNA.java:64)
    at org.xmpp.packet.JID.domainprep(JID.java:330)
    ... 21 more
java.util.ConcurrentModificationException
    at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(Unknown Source)
    at java.util.LinkedHashMap$ValueIterator.next(Unknown Source)
    at org.jivesoftware.openfire.XMPPServer.initModules(XMPPServer.java:615)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:504)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:216)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
Server halted

PS: 我以管理员权限启动它(右键单击 > 运行 以管理员身份)。我有 windows 8.1 pro 64 位。我错过了更多安装吗?

3.10.1发布,新版本可以试用。我在 windows8.1 64 和 java7 上有 运行 3.10.1。

请检查您的 JID,它不应包含一些非字母、数字或连字符的字符。

此问题是由于使用了无效的 XMPP 域名引起的。在设置时,使用了一个类似于 'chintan_pE' 的值(但可能包括一些不 copy/paste 很好地进入 Whosebug 的 unicode 字符)。该值不是有效的 XMPP 域名。您通常希望使用类似于 'normal' DNS 名称的域名,例如 "example.org".

从 Openfire 4.2.0 开始,安装程序将在允许您继续安装之前检查提供的值是否有效。这将防止在新安装中出现此错误。