ikvmnet / ikvm

A Java Virtual Machine and Bytecode-to-IL Converter for .NET
Other
1.17k stars 110 forks source link

[8.6.3] [.NET7-WINx64] SocketChannelImpl exception #410

Closed DjArt closed 7 months ago

DjArt commented 11 months ago

Encountered when trying to execute this code:

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()
wasabii commented 9 months ago

Is there a chance you could retry this on the latest IKVM prerelease version?

wasabii commented 7 months ago

Closing. Stale. Probably outdated with the new libnio stuff.