Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2013 00:46:15 +0100
From:      Palle Girgensohn <girgen@pingpong.net>
To:        freebsd-java@freebsd.org
Subject:   sun.nio.ch.DefaultAsynchronousChannelProvider throws "platform not recognized", is it not implemented?
Message-ID:  <676B8A86-F24A-4283-B53A-A6D055110C40@pingpong.net>

index | next in thread | raw e-mail

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

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?676B8A86-F24A-4283-B53A-A6D055110C40>