Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2013 11:21:41 +0100
From:      Palle Girgensohn <girgen@pingpong.net>
To:        freebsd-java@freebsd.org
Subject:   Re: sun.nio.ch.DefaultAsynchronousChannelProvider throws "platform not recognized", is it not implemented?
Message-ID:  <DDA504F0-22AE-42FC-B9B3-835A3DDD2525@pingpong.net>
In-Reply-To: <676B8A86-F24A-4283-B53A-A6D055110C40@pingpong.net>
References:  <676B8A86-F24A-4283-B53A-A6D055110C40@pingpong.net>

next in thread | previous in thread | raw e-mail | index | archive | help

28 okt 2013 kl. 00:46 skrev Palle Girgensohn <girgen@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DDA504F0-22AE-42FC-B9B3-835A3DDD2525>