gpt4 book ai didi

java - 机器上的网络应用程序(在本地计算机上工作正常)

转载 作者:行者123 更新时间:2023-11-28 22:57:44 25 4
gpt4 key购买 nike

我有一个错误:

 Exception in thread "TCPSelector" java.lang.NoClassDefFoundError: org/eclipse/net4j/channel/ChannelException
at org.eclipse.net4j.internal.tcp.TCPAcceptor.createConnector(TCPAcceptor.java:218)
at org.eclipse.net4j.internal.tcp.TCPAcceptor.handleAccept(TCPAcceptor.java:188)
at org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:230)
at org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.eclipse.net4j.channel.ChannelException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
... 5 more
Exception in thread "TCPSelector" java.lang.ExceptionInInitializerError
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:51)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
at org.eclipse.internal.net4j.buffer.Buffer.write(Buffer.java:306)
at org.eclipse.net4j.internal.tcp.TCPConnector.handleWrite(TCPConnector.java:311)
at org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:264)
at org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Too many open files
at sun.nio.ch.FileDispatcherImpl.init(Native Method)
at sun.nio.ch.FileDispatcherImpl.<clinit>(FileDispatcherImpl.java:35)
... 9 more

Exception in thread "TCPSelector" java.lang.NoClassDefFoundError: Could not initialize class sun.nio.ch.FileDispatcherImpl
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:51)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
at org.eclipse.internal.net4j.buffer.Buffer.write(Buffer.java:306)
at org.eclipse.net4j.internal.tcp.TCPConnector.handleWrite(TCPConnector.java:311)
at org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:264)
at org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
at java.lang.Thread.run(Thread.java:745)

在本地计算机(本地 tomcat)上它工作正常。在机器上我有这个错误。我很困惑,因为我不知道为什么它不起作用。

最佳答案

看起来您的操作系统已用完文件描述符:

java.io.IOException: Too many open files

如果你在 linux 上运行 have a look at the ulimit command

关于java - 机器上的网络应用程序(在本地计算机上工作正常),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23932857/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com