JDK-7133206 : [macosx] DefaultAsynchronousChannelProvider: java.lang.InternalError: platform not recognized
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 7u4
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2012-01-25
  • Updated: 2013-11-07
  • Resolved: 2012-01-25
Related Reports
Duplicate :  
Description
This is a copy of the issue: http://java.net/jira/browse/MACOSX_PORT-119

java.lang.InternalError: platform not recognized
at sun.nio.ch.DefaultAsynchronousChannelProvider.create(DefaultAsynchronousChannelProvider.java:53)
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.AsynchronousChannelGroup.withFixedThreadPool(AsynchronousChannelGroup.java:186)
at Basic.shutdownTests(Basic.java:66)
at Basic.main(Basic.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:722)

Indeed:
if (osname.equals("SunOS"))
return new SolarisAsynchronousChannelProvider();
if (osname.equals("Linux"))
return new LinuxAsynchronousChannelProvider();
throw new InternalError("platform not recognized");

Test failed(Regression):
java/nio/channels/AsynchronousChannelGroup/GroupOfOne.java
java/nio/channels/AsynchronousChannelGroup/Identity.java
java/nio/channels/AsynchronousChannelGroup/Restart.java
java/nio/channels/AsynchronousChannelGroup/Unbounded.java
java/nio/channels/AsynchronousChannelGroup/run_any_task.sh
java/nio/channels/AsynchronousServerSocketChannel/Basic.java
java/nio/channels/AsynchronousServerSocketChannel/WithSecurityManager.java
java/nio/channels/AsynchronousSocketChannel/Basic.java
java/nio/channels/AsynchronousSocketChannel/DieBeforeComplete.java
java/nio/channels/AsynchronousSocketChannel/Leaky.java
java/nio/channels/AsynchronousSocketChannel/StressLoopback.java
java/nio/channels/Channels/Basic2.java
sample/chatserver/ChatTest.java

Build: b201

Build: b204
Tests failed (JCK-runtime)
api/java_nio/channels/spi/AsynchronousChannelProvider/AsynchronousChannelProvider_provider
api/java_nio/channels/spi/AsynchronousChannelProvider/AsynchronousChannelProvider_openAsyncXXXChannel
api/java_nio/channels/spi/AsynchronousChannelProvider/AsynchronousChannelProvider_openAsyncChannelGroup
api/java_nio/channels/Channels/index_Methods
api/java_nio/channels/AsynchronousSocketChannel/AsynchronousSocketChannel_shutdownInputOutput
api/java_nio/channels/AsynchronousSocketChannel/AsynchronousSocketChannel_readWrite
api/java_nio/channels/AsynchronousSocketChannel/AsynchronousSocketChannel_open
api/java_nio/channels/AsynchronousSocketChannel/AsynchronousSocketChannel_connect
api/java_nio/channels/AsynchronousSocketChannel/AsynchronousSocketChannel_close
api/java_nio/channels/AsynchronousSocketChannel/AsynchronousSocketChannel_NetworkChannel
api/java_nio/channels/AsynchronousServerSocketChannel/AsynchronousServerSocketChannel_open
api/java_nio/channels/AsynchronousServerSocketChannel/AsynchronousServerSocketChannel_close
api/java_nio/channels/AsynchronousServerSocketChannel/AsynchronousServerSocketChannel_accept
api/java_nio/channels/AsynchronousServerSocketChannel/AsynchronousServerSocketChannel_NetworkChannel
api/java_nio/channels/AsynchronousChannelGroup/AsynchronousChannelGroup_shutdownNow
api/java_nio/channels/AsynchronousChannelGroup/AsynchronousChannelGroup_shutdown
api/java_nio/channels/AsynchronousChannelGroup/AsynchronousChannelGroup_awaitTermination
api/java_nio/channels/AsynchronousChannelGroup/AsynchronousChannelGroup_open

Comments
EVALUATION The implementation is currently in progress and should be out for review on jdk7u-dev soon.
25-01-2012