<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JAVA 141 on OpenVMS in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/java-141-on-openvms/m-p/3032248#M30938</link>
    <description>Just an (educated?) guess: From the output you &lt;BR /&gt;quote it looks like this Java function tries to&lt;BR /&gt;do "native" i.e. C based, I/O using the poll &lt;BR /&gt;function. Since poll is not implemented in the &lt;BR /&gt;C RTL this might be the causing trouble.</description>
    <pubDate>Tue, 29 Jul 2003 14:37:44 GMT</pubDate>
    <dc:creator>Martin P.J. Zinser</dc:creator>
    <dc:date>2003-07-29T14:37:44Z</dc:date>
    <item>
      <title>JAVA 141 on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-141-on-openvms/m-p/3032247#M30937</link>
      <description>The following java code runs fine under W2K, but generates an exception unter VMS 7.3-1, latest Patch level, JAVA 141 ...&lt;BR /&gt;&lt;BR /&gt;import java.util.Iterator;&lt;BR /&gt;import java.net.InetSocketAddress;&lt;BR /&gt;import java.nio.channels.SelectionKey;&lt;BR /&gt;import java.nio.channels.Selector;&lt;BR /&gt;import java.nio.channels.ServerSocketChannel;&lt;BR /&gt;&lt;BR /&gt;public class select {&lt;BR /&gt;&lt;BR /&gt;public static void main(String[] args) {&lt;BR /&gt;try {&lt;BR /&gt;int timeout = 1000;&lt;BR /&gt;&lt;BR /&gt;Selector selector = Selector.open();&lt;BR /&gt;ServerSocketChannel ssc = ServerSocketChannel.open();&lt;BR /&gt;ssc.configureBlocking(false);&lt;BR /&gt;InetSocketAddress isa = new InetSocketAddress( 4711);&lt;BR /&gt;ssc.socket().bind( isa, 1);&lt;BR /&gt;ssc.register( selector, SelectionKey.OP_ACCEPT);&lt;BR /&gt;&lt;BR /&gt;selector.select(timeout); // &amp;lt;----- Generates Exception&lt;BR /&gt;&lt;BR /&gt;Iterator it = selector.selectedKeys().iterator();&lt;BR /&gt;&lt;BR /&gt;while (it.hasNext()) {&lt;BR /&gt;it.remove();&lt;BR /&gt;}&lt;BR /&gt;} catch (Exception e) {&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;java.io.IOException: socket operation on non-socket&lt;BR /&gt;at sun.nio.ch.PollArrayWrapper.poll0(Native Method)&lt;BR /&gt;at sun.nio.ch.PollArrayWrapper.poll(PollArrayWrapper.java)&lt;BR /&gt;at sun.nio.ch.PollSelectorImpl.doSelect(PollSelectorImpl.java)&lt;BR /&gt;at sun.nio.ch.SelectorImpl.select(SelectorImpl.java)&lt;BR /&gt;at select.main(select.java)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Dieter</description>
      <pubDate>Thu, 24 Jul 2003 10:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-141-on-openvms/m-p/3032247#M30937</guid>
      <dc:creator>Dieter Rossbach</dc:creator>
      <dc:date>2003-07-24T10:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA 141 on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-141-on-openvms/m-p/3032248#M30938</link>
      <description>Just an (educated?) guess: From the output you &lt;BR /&gt;quote it looks like this Java function tries to&lt;BR /&gt;do "native" i.e. C based, I/O using the poll &lt;BR /&gt;function. Since poll is not implemented in the &lt;BR /&gt;C RTL this might be the causing trouble.</description>
      <pubDate>Tue, 29 Jul 2003 14:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-141-on-openvms/m-p/3032248#M30938</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-07-29T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA 141 on OpenVMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-141-on-openvms/m-p/3032249#M30939</link>
      <description>Actually poll() is in the latest CRTL ECO, though they left it out of the header on the first go-round so it's hard to know you have it.  &lt;BR /&gt;&lt;BR /&gt;The problem is more likely to be related to the fact that select() only works on sockets on VMS.  It's possible that the flags in the selector object are not getting set up right so that it gets recognized as a socket.  If it's possible to do the equivalent of the S_ISSOCK test in C, that may at least tell you if this is what's happening.  Sorry not to have more Java-specific info.</description>
      <pubDate>Tue, 29 Jul 2003 20:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-141-on-openvms/m-p/3032249#M30939</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2003-07-29T20:47:40Z</dc:date>
    </item>
  </channel>
</rss>

