Community
Participate
Working Groups
Line 162 of SelectorManager can throw a NullPointerException iff: * the Connectors are opened before Server.start() (eg in order to open as root before using setuid to change down to a lower privileged user) * a request arrives before the SelectorManager has completed its its start() sequence. In this case, the SelectorSet[] array is allocated, but empty.
Resolved for 7.5.5.
*** Bug 364033 has been marked as a duplicate of this bug. ***
Just for completeness' sake, for those finding this issue, I got the line number wrong in the original comment. The problem actually occurs at line 158: java.lang.NullPointerException at org.eclipse.jetty.io.nio.SelectorManager.register(SelectorManager.java:158) at org.eclipse.jetty.server.nio.SelectChannelConnector.accept(SelectChannelConnector.java:101) at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:833) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:680)
*** Bug 364372 has been marked as a duplicate of this bug. ***