From owner-freebsd-java@FreeBSD.ORG Sun Oct 27 23:51:38 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4D607D14 for ; Sun, 27 Oct 2013 23:51:38 +0000 (UTC) (envelope-from girgen@pingpong.net) Received: from melon.pingpong.net (melon.pingpong.net [79.136.116.200]) by mx1.freebsd.org (Postfix) with ESMTP id 125012540 for ; Sun, 27 Oct 2013 23:51:37 +0000 (UTC) Received: from [10.0.1.5] (h-43-145.a357.priv.bahnhof.se [79.136.43.145]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by melon.pingpong.net (Postfix) with ESMTPSA id BD68430E10 for ; Mon, 28 Oct 2013 00:46:15 +0100 (CET) From: Palle Girgensohn Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: sun.nio.ch.DefaultAsynchronousChannelProvider throws "platform not recognized", is it not implemented? Message-Id: <676B8A86-F24A-4283-B53A-A6D055110C40@pingpong.net> Date: Mon, 28 Oct 2013 00:46:15 +0100 To: freebsd-java@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) X-Mailer: Apple Mail (2.1816) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2013 23:51:38 -0000 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(DefaultAsynchronousCh= annelProvider.java:55) at = java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder$1.run(Asy= nchronousChannelProvider.java:88) at = java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder$1.run(Asy= nchronousChannelProvider.java:79) at java.security.AccessController.doPrivileged(Native Method) at = java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder.load(Asyn= chronousChannelProvider.java:78) at = java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder.(= AsynchronousChannelProvider.java:75) at = java.nio.channels.spi.AsynchronousChannelProvider.provider(AsynchronousCha= nnelProvider.java:166) at = java.nio.channels.AsynchronousServerSocketChannel.open(AsynchronousServerS= ocketChannel.java:138) at = java.nio.channels.AsynchronousServerSocketChannel.open(AsynchronousServerS= ocketChannel.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=