Details
-
Type:
Wish
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Cannot Reproduce
-
Affects Version/s: 7.1.4
-
Fix Version/s: None
-
Component/s: NIO
-
Labels:None
-
Environment:Ubuntu 10.04 with OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
-
Number of attachments :
Description
Upon startup, jetty logs every second:
2010-06-15 23:39:16.582:WARN::EXCEPTION
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:708)
at org.eclipse.jetty.io.nio.SelectorManager.doSelect(SelectorManager.java:195)
at org.eclipse.jetty.server.nio.SelectChannelConnector.accept(SelectChannelConnector.java:134)
at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:850)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
at java.lang.Thread.run(libgcj.so.10)
I actually develop jetty with
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK Server VM (build 14.0-b16, mixed mode)
and I do not have this problem.
Judging by the class caste exception, I think you may have run with gcj (which is installed by default on some ubuntus).
Can you try again and make sure that gcj is not on your system. If you can definitely reproduce, please reopen.