<div dir="ltr"><div>JDK9 encapsulates the private classes properly now.<br><br></div>adding something like --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED <br>to your command line should probably fix it.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 6:49 PM, Hicks, Matt <span dir="ltr">&lt;<a href="mailto:matt@matthicks.com" target="_blank">matt@matthicks.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I just updated to Java 9 and have started getting the following exception:<div><br></div><font face="monospace">exampleJVM[ERROR] Oct 09, 2017 11:45:35 AM io.undertow.server.<wbr>DirectByteBufferDeallocator &lt;clinit&gt;<br>exampleJVM[ERROR] ERROR: UT005091: Failed to initialize DirectByteBufferDeallocator<br>exampleJVM[ERROR] java.lang.<wbr>ClassNotFoundException: sun.misc.Cleaner<br>exampleJVM[ERROR]       at java.base/jdk.internal.loader.<wbr>BuiltinClassLoader.loadClass(<wbr>BuiltinClassLoader.java:582)<br>exampleJVM[ERROR]       at java.base/jdk.internal.loader.<wbr>ClassLoaders$AppClassLoader.<wbr>loadClass(ClassLoaders.java:<wbr>185)<br>exampleJVM[ERROR]       at java.base/java.lang.<wbr>ClassLoader.loadClass(<wbr>ClassLoader.java:496)<br>exampleJVM[ERROR]       at java.base/java.lang.Class.<wbr>forName0(Native Method)<br>exampleJVM[ERROR]       at java.base/java.lang.Class.<wbr>forName(Class.java:292)<br>exampleJVM[ERROR]       at io.undertow.server.<wbr>DirectByteBufferDeallocator.&lt;<wbr>clinit&gt;(<wbr>DirectByteBufferDeallocator.<wbr>java:23)<br>exampleJVM[ERROR]       at io.undertow.server.<wbr>DefaultByteBufferPool.<wbr>queueIfUnderMax(<wbr>DefaultByteBufferPool.java:<wbr>207)<br>exampleJVM[ERROR]       at io.undertow.server.<wbr>DefaultByteBufferPool.<wbr>freeInternal(<wbr>DefaultByteBufferPool.java:<wbr>199)<br>exampleJVM[ERROR]       at io.undertow.server.<wbr>DefaultByteBufferPool.access$<wbr>200(DefaultByteBufferPool.<wbr>java:41)<br>exampleJVM[ERROR]       at io.undertow.server.<wbr>DefaultByteBufferPool$<wbr>DefaultPooledBuffer.close(<wbr>DefaultByteBufferPool.java:<wbr>269)<br>exampleJVM[ERROR]       at io.undertow.conduits.<wbr>DeflatingStreamSinkConduit.<wbr>deflateData(<wbr>DeflatingStreamSinkConduit.<wbr>java:495)<br>exampleJVM[ERROR]       at io.undertow.conduits.<wbr>DeflatingStreamSinkConduit.<wbr>write(<wbr>DeflatingStreamSinkConduit.<wbr>java:117)<br>exampleJVM[ERROR]       at io.undertow.conduits.<wbr>DeflatingStreamSinkConduit.<wbr>write(<wbr>DeflatingStreamSinkConduit.<wbr>java:138)<br>exampleJVM[ERROR]       at org.xnio.conduits.<wbr>ConduitStreamSinkChannel.<wbr>write(<wbr>ConduitStreamSinkChannel.java:<wbr>154)<br>exampleJVM[ERROR]       at io.undertow.channels.<wbr>DetachableStreamSinkChannel.<wbr>write(<wbr>DetachableStreamSinkChannel.<wbr>java:187)<br>exampleJVM[ERROR]       at io.undertow.server.<wbr>HttpServerExchange$<wbr>WriteDispatchChannel.write(<wbr>HttpServerExchange.java:2046)<br>exampleJVM[ERROR]       at <a href="http://io.undertow.io">io.undertow.io</a>.<wbr>AsyncSenderImpl.send(<wbr>AsyncSenderImpl.java:219)<br>exampleJVM[ERROR]       at <a href="http://io.undertow.io">io.undertow.io</a>.<wbr>AsyncSenderImpl.send(<wbr>AsyncSenderImpl.java:310)<br>exampleJVM[ERROR]       at <a href="http://io.undertow.io">io.undertow.io</a>.<wbr>AsyncSenderImpl.send(<wbr>AsyncSenderImpl.java:282)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation$.<wbr>handleStandard(<wbr>UndertowServerImplementation.<wbr>scala:250)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation$.<wbr>response(<wbr>UndertowServerImplementation.<wbr>scala:169)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation.$<wbr>anonfun$requestHandler$1(<wbr>UndertowServerImplementation.<wbr>scala:100)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation.$<wbr>anonfun$requestHandler$1$<wbr>adapted(<wbr>UndertowServerImplementation.<wbr>scala:97)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation$.<wbr>handle$1(<wbr>UndertowServerImplementation.<wbr>scala:126)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation$.<wbr>processRequest(<wbr>UndertowServerImplementation.<wbr>scala:162)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation.<wbr>requestHandler(<wbr>UndertowServerImplementation.<wbr>scala:97)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation.$<wbr>anonfun$handleRequest$1(<wbr>UndertowServerImplementation.<wbr>scala:90)<br>exampleJVM[ERROR]       at io.youi.ErrorSupport.<wbr>errorSupport(ErrorSupport.<wbr>scala:11)<br>exampleJVM[ERROR]       at io.youi.ErrorSupport.<wbr>errorSupport$(ErrorSupport.<wbr>scala:10)<br>exampleJVM[ERROR]       at io.youi.example.<wbr>ServerExampleApplication$.<wbr>errorSupport(<wbr>ServerExampleApplication.<wbr>scala:8)<br>exampleJVM[ERROR]       at io.youi.server.<wbr>UndertowServerImplementation.<wbr>handleRequest(<wbr>UndertowServerImplementation.<wbr>scala:74)<br>exampleJVM[ERROR]       at io.undertow.server.handlers.<wbr>encoding.EncodingHandler.<wbr>handleRequest(EncodingHandler.<wbr>java:72)<br>exampleJVM[ERROR]       at io.undertow.server.Connectors.<wbr>executeRootHandler(Connectors.<wbr>java:332)<br>exampleJVM[ERROR]       at io.undertow.server.protocol.<wbr>http.HttpReadListener.<wbr>handleEventWithNoRunningReques<wbr>t(HttpReadListener.java:254)<br>exampleJVM[ERROR]       at io.undertow.server.protocol.<wbr>http.HttpReadListener.<wbr>handleEvent(HttpReadListener.<wbr>java:136)<br>exampleJVM[ERROR]       at io.undertow.server.protocol.<wbr>http.HttpOpenListener.<wbr>handleEvent(HttpOpenListener.<wbr>java:151)<br>exampleJVM[ERROR]       at io.undertow.server.protocol.<wbr>http.HttpOpenListener.<wbr>handleEvent(HttpOpenListener.<wbr>java:92)<br>exampleJVM[ERROR]       at io.undertow.server.protocol.<wbr>http.HttpOpenListener.<wbr>handleEvent(HttpOpenListener.<wbr>java:51)<br>exampleJVM[ERROR]       at org.xnio.ChannelListeners.<wbr>invokeChannelListener(<wbr>ChannelListeners.java:92)<br>exampleJVM[ERROR]       at org.xnio.ChannelListeners$10.<wbr>handleEvent(ChannelListeners.<wbr>java:291)<br>exampleJVM[ERROR]       at org.xnio.ChannelListeners$10.<wbr>handleEvent(ChannelListeners.<wbr>java:286)<br>exampleJVM[ERROR]       at org.xnio.ChannelListeners.<wbr>invokeChannelListener(<wbr>ChannelListeners.java:92)<br>exampleJVM[ERROR]       at org.xnio.nio.<wbr>QueuedNioTcpServer$1.run(<wbr>QueuedNioTcpServer.java:129)<br>exampleJVM[ERROR]       at org.xnio.nio.WorkerThread.<wbr>safeRun(WorkerThread.java:582)</font><br>exampleJVM[ERROR]       at org.xnio.nio.WorkerThread.run(<wbr>WorkerThread.java:466)</div>
<br>______________________________<wbr>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>