using java.nio.channels.spi;
using java.nio.channels;
var provider = SelectorProvider.provider();
SocketChannel result = provider.openSocketChannel();
Throws 2 exceptions:
The type initializer for 'sun.nio.ch.SocketChannelImpl' threw an exception.
TypeInitializationException: The type initializer for 'sun.nio.ch.IOUtil' threw an exception.
ExceptionInInitializerError: java.lang.NullPointerException
in sun.nio.ch.SocketChannelImpl..ctor(SelectorProvider sp)
in sun.nio.ch.SelectorProviderImpl.openSocketChannel()
Encountered when trying to execute this code:
Throws 2 exceptions: