<?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: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13) in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046615#M37129</link>
    <description>&lt;P&gt;Ah, I see. Java does indeed set SO_RCVBUF:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://docs.oracle.com/javase/6/docs/api/java/net/ServerSocket.html#setReceiveBufferSize(int)"&gt;http://docs.oracle.com/javase/6/docs/api/java/net/ServerSocket.html#setReceiveBufferSize(int)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions as to how I could work around the issue without granting privileges? Here's an excerpt from elasticsearch:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ben@bgpc:~/elasticsearch/src/main/java/org/elasticsearch/discovery/zen/ping/multicast$ grep -rnC5  setReceiveBufferSize
MulticastZenPing.java-151-            // set the send interface
MulticastZenPing.java-152-            multicastInterface = networkService.resolvePublishHostAddress(address);
MulticastZenPing.java-153-            multicastSocket.setInterface(multicastInterface);
MulticastZenPing.java-154-            multicastSocket.joinGroup(InetAddress.getByName(group));
MulticastZenPing.java-155-
MulticastZenPing.java:156:            multicastSocket.setReceiveBufferSize(bufferSize);
MulticastZenPing.java-157-            multicastSocket.setSendBufferSize(bufferSize);
MulticastZenPing.java-158-            multicastSocket.setSoTimeout(60000);
MulticastZenPing.java-159-
MulticastZenPing.java-160-            this.multicastSocket = multicastSocket;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh, I found also that buffer size here defaults to 2048:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        this.address = componentSettings.get("address");
        this.port = componentSettings.getAsInt("port", 54328);
        this.group = componentSettings.get("group", "224.2.2.4");
        this.bufferSize = componentSettings.getAsInt("buffer_size", 2048);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2013 09:11:47 GMT</pubDate>
    <dc:creator>BenAArmstrong</dc:creator>
    <dc:date>2013-04-30T09:11:47Z</dc:date>
    <item>
      <title>Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6045453#M37126</link>
      <description>&lt;P&gt;I am trying to start an Elasticsearch (lucene-based) server. With set proc/priv=all, it starts successfully. Without that, it fails with this stack dump (ip# obscured):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2013-04-25 14:19:31,467][WARN ][cluster.service          ] [Impulse] failed to reconnect to node [Impulse][efAKtSJzSt2BjEhFLG8_vg][inet[/1.1.1.1:9300]]
org.elasticsearch.transport.ConnectTransportException: [Impulse][inet[/1.1.1.1:9300]] General node connection failure
        at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:526)
        at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:483)
        at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:128)
        at org.elasticsearch.cluster.service.InternalClusterService$ReconnectToNodes.run(InternalClusterService.java:377)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.elasticsearch.common.netty.channel.ChannelException: java.net.SocketException: permission denied (errno:13)
        at org.elasticsearch.common.netty.channel.socket.DefaultSocketChannelConfig.setReceiveBufferSize(DefaultSocketChannelConfig.java:142)
        at org.elasticsearch.common.netty.channel.socket.DefaultSocketChannelConfig.setOption(DefaultSocketChannelConfig.java:50)
        at org.elasticsearch.common.netty.channel.socket.nio.DefaultNioSocketChannelConfig.setOption(DefaultNioSocketChannelConfig.java:71)
        at org.elasticsearch.common.netty.channel.DefaultChannelConfig.setOptions(DefaultChannelConfig.java:43)
        at org.elasticsearch.common.netty.channel.socket.nio.DefaultNioSocketChannelConfig.setOptions(DefaultNioSocketChannelConfig.java:54)
        at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:216)
        at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:183)
        at org.elasticsearch.transport.netty.NettyTransport.connectToChannels(NettyTransport.java:550)
        at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:505)
        ... 6 more
Caused by: java.net.SocketException: permission denied (errno:13)
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setIntOption(Net.java:157)
        at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:431)
        at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46)
        at sun.nio.ch.SocketOptsImpl.receiveBufferSize(SocketOptsImpl.java:130)
        at sun.nio.ch.SocketOptsImpl$IP$TCP.receiveBufferSize(SocketOptsImpl.java:268)
        at sun.nio.ch.OptionAdaptor.setReceiveBufferSize(OptionAdaptor.java:122)
        at sun.nio.ch.SocketAdaptor.setReceiveBufferSize(SocketAdaptor.java:355)
        at org.elasticsearch.common.netty.channel.socket.DefaultSocketChannelConfig.setReceiveBufferSize(DefaultSocketChannelConfig.java:140)
        ... 14 more&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I tried treating this as a java.policy issue, but even granting the broadest possible permissions does not help:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;grant {
        permission java.security.AllPermission;
};&lt;/PRE&gt;&lt;P&gt;What am I missing? I compared this with a Linux system and the default java.policy seems the same on both systems, so I wonder if this isn't a Java permissions problem at all, but some OpenVMS permission issue, especially given that "set proc/priv=all" solves the problem (but in that case, I don't know which specific permission it wants, and the Java documentation doesn't say, or at least I haven't been able to find it yet).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other odd thing is that we could swear this worked sometime in the past, perhaps at Java 1.6.0-2 or so. We're currently at 1.6.0-4 (and it failed in the same way with 1.6.0-3.p1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2013 11:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6045453#M37126</guid>
      <dc:creator>BenAArmstrong</dc:creator>
      <dc:date>2013-04-29T11:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046003#M37127</link>
      <description>&lt;P&gt;I would guess, since it's called from setReceiveBufferSize, that it's using SO_RCVBUF, for which the manual says:&lt;/P&gt;&lt;P&gt;'Sets the receive buffer size, in bytes. Requires an integer parameter and SYSPRV, BYPASS, or OPER privileges.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2013 18:05:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046003#M37127</guid>
      <dc:creator>Richard Brodie_1</dc:creator>
      <dc:date>2013-04-29T18:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046615#M37129</link>
      <description>&lt;P&gt;Ah, I see. Java does indeed set SO_RCVBUF:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://docs.oracle.com/javase/6/docs/api/java/net/ServerSocket.html#setReceiveBufferSize(int)"&gt;http://docs.oracle.com/javase/6/docs/api/java/net/ServerSocket.html#setReceiveBufferSize(int)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions as to how I could work around the issue without granting privileges? Here's an excerpt from elasticsearch:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ben@bgpc:~/elasticsearch/src/main/java/org/elasticsearch/discovery/zen/ping/multicast$ grep -rnC5  setReceiveBufferSize
MulticastZenPing.java-151-            // set the send interface
MulticastZenPing.java-152-            multicastInterface = networkService.resolvePublishHostAddress(address);
MulticastZenPing.java-153-            multicastSocket.setInterface(multicastInterface);
MulticastZenPing.java-154-            multicastSocket.joinGroup(InetAddress.getByName(group));
MulticastZenPing.java-155-
MulticastZenPing.java:156:            multicastSocket.setReceiveBufferSize(bufferSize);
MulticastZenPing.java-157-            multicastSocket.setSendBufferSize(bufferSize);
MulticastZenPing.java-158-            multicastSocket.setSoTimeout(60000);
MulticastZenPing.java-159-
MulticastZenPing.java-160-            this.multicastSocket = multicastSocket;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oh, I found also that buffer size here defaults to 2048:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        this.address = componentSettings.get("address");
        this.port = componentSettings.getAsInt("port", 54328);
        this.group = componentSettings.get("group", "224.2.2.4");
        this.bufferSize = componentSettings.getAsInt("buffer_size", 2048);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2013 09:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046615#M37129</guid>
      <dc:creator>BenAArmstrong</dc:creator>
      <dc:date>2013-04-30T09:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046745#M37130</link>
      <description>I am not familiar with the particulars here, but if you can INSTALL the appropriate image with the privs, this should work. This will grant the privs to the image itself rather than the process allowing the function to work.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Tue, 30 Apr 2013 12:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046745#M37130</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2013-04-30T12:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046879#M37131</link>
      <description>&lt;P&gt;That's problematic with an interpreted (at least for the purposes of discussing least privilege) language like Java. I can't think of anything better than starting the server process with OPER.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046879#M37131</guid>
      <dc:creator>Richard Brodie_1</dc:creator>
      <dc:date>2013-04-30T13:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046903#M37132</link>
      <description />
      <pubDate>Tue, 30 Apr 2013 13:20:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6046903#M37132</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-04-30T13:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047339#M37133</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; what I have installed on my main Alpha system seems to be version 1.5, not 1.6, but ...&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;$ java -version&lt;/DIV&gt;&lt;DIV&gt;will tell you (you may need to run a java$*setup.com, where the wildcard needs to be replaced by the version number string, yeah, looks recursive, but a directory command for sys$startup: should get you out off the loop).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And yes,1.6 will very likely never make it to Alpha.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The JAVA$STARTUP.COM is ancient. It was from the time before they used the version number in the middle of the file name: Java 1.1.8. Also, the command procedure I found only installs /OPEN/SHARE/HEADER and checks whether the process has the privs to install that way.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyway, installing JAVA.EXE with privs seems worth a test. But then everybody running Java can make use of the privileg. So it seems better to run the server process with the required privileg.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Apr 2013 17:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047339#M37133</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2013-04-30T17:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047463#M37134</link>
      <description>&lt;P&gt;I would tend to agree that granting the process OPER is the most sensible solution. It just chafes me that a call to *reduce* the buffer size (looks like TCP/IP default for this system would be about 64K) is considered a privileged operation. I don't see the logic in it.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2013 17:54:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047463#M37134</guid>
      <dc:creator>BenAArmstrong</dc:creator>
      <dc:date>2013-04-30T17:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047643#M37135</link>
      <description>&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;It just chafes me that a call to *reduce* the buffer size (...) is considered a privileged operation.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;It seems the call just sets the size and the code has no check whether the size is to be increased or reduced. The documentation doesn't distinguish, either:&lt;/P&gt;&lt;DIV&gt;Sets the receive buffer size, in bytes. Takes an integer parameter and requires a system UIC or SYSPRV, BYPASS, or OPER privilege.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried this little test on OpenVMS/Alpha V8.3 and TCPIP V5.6-9:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;import java.net.*;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;public class SetReceiveBufferSize {&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) throws Exception {&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerSocket ss = new ServerSocket(9876);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println("RCVBUF option for this ServerSocket is: " + ss.getReceiveBufferSize());&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ss.setReceiveBufferSize(234);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println("RCVBUF option for this ServerSocket is: " + ss.getReceiveBufferSize());&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Without the required privilege it doesn't throw an exception, it just doesn't reduce the buffer size. (On Eisner, with Multinet and without privileges it reduces the size.) It looks like something changed in&amp;nbsp;java$net_shr.exe, the native code, which calls setsockopt, or in the Java code which calls out into the native image.&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Apr 2013 21:21:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047643#M37135</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2013-04-30T21:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047931#M37136</link>
      <description>&lt;P&gt;On which version of Java did you run that test?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 08:31:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047931#M37136</guid>
      <dc:creator>BenAArmstrong</dc:creator>
      <dc:date>2013-05-01T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047943#M37137</link>
      <description>&lt;P&gt;Test results on our development system:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VAV:BG&amp;gt; java "SetReceiveBufferSize"
RCVBUF option for this ServerSocket is: 61440
Exception in thread "main" java.net.SocketException: permission denied (errno:13)
        at java.net.PlainSocketImpl.socketSetOption(Native Method)
        at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:282)
        at java.net.ServerSocket.setReceiveBufferSize(ServerSocket.java:753)
        at SetReceiveBufferSize.main(SetReceiveBufferSize.java:6)
VAV:BG&amp;gt; set proc/priv=oper
VAV:BG&amp;gt; java "SetReceiveBufferSize"
RCVBUF option for this ServerSocket is: 61440
RCVBUF option for this ServerSocket is: 234
VAV:BG&amp;gt; java -version
java version "1.6.0"
Java(TM) SE Runtime Environment "1.6.0-4"
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
VAV:BG&amp;gt; tcpip show version

  HP TCP/IP Services for OpenVMS Industry Standard 64 Version V5.7 - ECO 4
  on an HP rx2600  (1.50GHz/6.0MB) running OpenVMS V8.4&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 09:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6047943#M37137</guid>
      <dc:creator>BenAArmstrong</dc:creator>
      <dc:date>2013-05-01T09:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6048197#M37138</link>
      <description>&lt;P&gt;Thanks for that test case, btw. I will use it in a bug we will file on Java &amp;gt;= 6.0-3. I tried it on 6.0-2.p1 and that version does not have the problem. From my reading of the Java doc at Oracle, the request to change the buffer size doesn't need to be honored and should not throw an error. That will be at the heart of my argument this is a bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the sake of completness of this thread, here's the output from 6.0-2.p1, first without privs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ java "SetReceiveBufferSize"
RCVBUF option for this ServerSocket is: 61440
RCVBUF option for this ServerSocket is: 61440&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Then with SET PROC/PRIV=OPER (as before with 6.0-4):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ java "SetReceiveBufferSize"
RCVBUF option for this ServerSocket is: 61440
RCVBUF option for this ServerSocket is: 234&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;We've filed the bug and have been assigned a case #. Will report back later when there's something to report.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 17:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6048197#M37138</guid>
      <dc:creator>BenAArmstrong</dc:creator>
      <dc:date>2013-05-01T17:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6048371#M37139</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;On which version of Java did you run that test?&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;$ java -version&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;java version "1.5.0"&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Java(TM) 2 Runtime Environment, Standard Edition&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Fast VM (build 1.5.0-8, build J2SDK.v.1.5.0:02/08/2012-17:12, native threads, jit_150)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;$&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 20:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/elasticsearch-lucene-java-net-socketexception-permission-denied/m-p/6048371#M37139</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2013-05-01T20:34:14Z</dc:date>
    </item>
  </channel>
</rss>

