对于Java,我可能遇到了最奇怪的问题之一。我尝试启动一些应用程序,比如包装器(即I2P路由器),得到了以下内容:
路由器日志的-piece -
03.12.12 21:07:31 ERROR [JobQueue 1/1] p.router.transport.UPnPManager: UPnP start failed - port conflict?
03.12.12 21:07:31 CRIT [JobQueue 1/1] ter.transport.ntcp.EventPumper: Error opening the NTCP selector
java.io.IOException: Unable to establish loopback connection
Caused by: java.net.SocketException: Permission denied: listen包装日志的-piece -
2012/12/02 14:28:29 | Unable to bind routerconsole to 127.0.0.1 port 7657: java.net.SocketException: Permission denied: listen failed
2012/12/02 14:28:29 | You may ignore this warning if the console is still available at http://localhost:7657
2012/12/02 14:28:30 | WARNING: Error starting SelectChannelConnector@::1:7657: java.io.IOException: Unable to establish loopback connection
2012/12/02 14:28:30 | java.io.IOException: Unable to establish loopback connection
2012/12/02 14:28:30 | WARNING: Error starting one or more listeners of the Router Console server.
2012/12/02 14:36:41 | CRIT [istener:7654] er.client.ClientListenerRunner: I2CP error listening to port 7654 - is another I2P instance running? Resolve conflicts and restart在开发者论坛上,我被告知我可能根本没有回环地址。这不太可能。我还有其他应用程序可以使用回环地址,我还关闭了IPv6,将所有必要的选项放在包装器中忽略IPv6。接下来,我尝试在admin aacount下启动包装器,尝试在管理帐户下安装包括Java在内的所有东西--完全无用。
我在foruma身上没有找到任何合理的答案。总是关于防火墙的。但我关闭了它,我卸载了它,关闭了管理帐户下的Windows防火墙。
我还打开了我的wi路由器上所有必要的端口。其他程序,如Privoxy,在环回连接和端口方面运行良好,但如果我在线查看,当然会收到我所有端口被阻塞的消息,我认为这是错误的。
我的操作系统是Windows 7 64位,我的wi路由器是Speedport 723v。
我事先感谢大家的回答。
发布于 2013-07-21 11:58:43
I2P和jre7u25也有同样的问题。
修正了通过向jawa参数添加wrapper.config来编辑-Djava.net.preferIPv4Stack=true:
wrapper.java.additional.5=-Di2p.dir.config="C:\ProgramData\Application Data\i2p" -Djava.net.preferIPv4Stack=true发布于 2012-12-04 07:52:51
2012/12/02 14:28:29 | Unable to bind routerconsole to 127.0.0.1 port 7657: java.net.SocketException: Permission denied: listen failed
2012/12/02 14:28:29 | You may ignore this warning if the console is still available at http://localhost:7657问题不在于你没有回环地址。您拥有它,但是Java进程不允许创建套接字连接。您将得到一个Permission denied异常,这意味着您的策略文件不允许您的类将套接字绑定到本地端口7657。
你试过查看JRE的策略文件了吗?
试着运行你的程序(或者包装器;不确定你在运行什么.)具有java.security.debug系统属性:guide/debugger.html#jsdp
发布于 2012-12-04 19:01:42
好的,我认为建立环回连接的步骤至少已经解决了。
我想这对于更多想要支持I2P项目的用户是有用的。
因此,我将JDK降级为1.6,重新安装了所有东西,并完全删除了防火墙软件的每个条目(在我的例子中是Agnitum)。
之后,控制台就可以启动了。
https://stackoverflow.com/questions/13698221
复制相似问题