sun.nio.ch.DefaultAsynchronousChannelProvider throws "platform not recognized", is it not implemented?
Palle Girgensohn
girgen at pingpong.net
Mon Oct 28 10:21:43 UTC 2013
28 okt 2013 kl. 00:46 skrev Palle Girgensohn <girgen at pingpong.net>:
> 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
Hi,
Filed a patch to gnats, discussion continues there:
http://www.freebsd.org/cgi/query-pr.cgi?pr=183389
Palle
More information about the freebsd-java
mailing list