0

尝试在 openfire 中定义database settings时,出现以下错误(如我在 error.log 文件中所见)

2013.08.14 11:00:23 org.jivesoftware.openfire.container.AdminConsolePlugin - Could not start admin conosle server
java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind(Native Method)
    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
    at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:172)
    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:300)
    at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:249)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    at org.eclipse.jetty.server.Server.doStart(Server.java:272)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    at org.jivesoftware.openfire.container.AdminConsolePlugin.startup(AdminConsolePlugin.java:181)
    at org.jivesoftware.openfire.container.AdminConsolePlugin.initializePlugin(AdminConsolePlugin.java:216)
    at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:483)
    at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java:80)
    at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManager.java:1073)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

这是database settings interfaceopenfire的快照。

在此处输入图像描述

可能是什么原因,我收到此错误?

注意:我使用 mysql 作为 xampp 包的一部分

4

2 回答 2

0

尝试使用端口关闭进程。如果您在 Windows 上,则可以打开命令行并键入

netstat -na | grep LISTEN

这将向您显示当前正在侦听的所有端口。

于 2014-06-20T13:04:09.613 回答
0

java.net.BindException:地址已在使用中

该错误通常意味着您尝试打开的端口已被另一个应用程序使用尝试使用 netstat 查看哪些端口已打开,然后使用可用端口。

还要检查您是否绑定到正确的 IP 地址(我假设它是 localhost)

于 2013-08-14T07:08:49.873 回答