From owner-freebsd-java@FreeBSD.ORG Mon Oct 28 10:21:43 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D21C01C0 for ; Mon, 28 Oct 2013 10:21:43 +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 96A2821A5 for ; Mon, 28 Oct 2013 10:21:43 +0000 (UTC) Received: from [10.0.0.137] (citron2.pingpong.net [195.178.173.68]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by melon.pingpong.net (Postfix) with ESMTPSA id EB229318FF for ; Mon, 28 Oct 2013 11:21:41 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Subject: Re: sun.nio.ch.DefaultAsynchronousChannelProvider throws "platform not recognized", is it not implemented? From: Palle Girgensohn In-Reply-To: <676B8A86-F24A-4283-B53A-A6D055110C40@pingpong.net> Date: Mon, 28 Oct 2013 11:21:41 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <676B8A86-F24A-4283-B53A-A6D055110C40@pingpong.net> To: freebsd-java@freebsd.org 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: Mon, 28 Oct 2013 10:21:43 -0000 28 okt 2013 kl. 00:46 skrev Palle Girgensohn : > Hi >=20 > 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? >=20 > $ cat Foo.java > import java.nio.channels.AsynchronousServerSocketChannel; >=20 > class Foo { > public static void main(String[] args) throws Exception { > AsynchronousServerSocketChannel.open(); > } > } >=20 > $ 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) >=20 > $ 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=3D183389 Palle