sun.nio.ch.DefaultAsynchronousChannelProvider throws "platform not recognized", is it not implemented?

Palle Girgensohn girgen at pingpong.net
Sun Oct 27 23:51:38 UTC 2013


Hi

I cannot start tomcat 7.0.47 on FreeBSD with openjdk7. Here's a simple isolated example. It seems to me that it is just not implemented? Any ideas if there is anything we can do to work around this problem or perhaps fix it?

$ cat Foo.java
import java.nio.channels.AsynchronousServerSocketChannel;

class Foo {
    public static void main(String[] args) throws Exception {
        AsynchronousServerSocketChannel.open();
    }
}

$ javac Foo.java
$ java Foo
Exception in thread "main" java.lang.InternalError: platform not recognized
	at sun.nio.ch.DefaultAsynchronousChannelProvider.create(DefaultAsynchronousChannelProvider.java:55)
	at java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder$1.run(AsynchronousChannelProvider.java:88)
	at java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder$1.run(AsynchronousChannelProvider.java:79)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder.load(AsynchronousChannelProvider.java:78)
	at java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder.<clinit>(AsynchronousChannelProvider.java:75)
	at java.nio.channels.spi.AsynchronousChannelProvider.provider(AsynchronousChannelProvider.java:166)
	at java.nio.channels.AsynchronousServerSocketChannel.open(AsynchronousServerSocketChannel.java:138)
	at java.nio.channels.AsynchronousServerSocketChannel.open(AsynchronousServerSocketChannel.java:161)
	at Foo.main(Foo.java:5)

$ java -version
openjdk version "1.7.0_25"
OpenJDK Runtime Environment (build 1.7.0_25-b15)
OpenJDK 64-Bit Server VM (build 23.21-b01, mixed mod


More information about the freebsd-java mailing list