Operating System - OpenVMS
1748123 Members
3122 Online
108758 Solutions
New Discussion юеВ

Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)

 
BenAArmstrong
Frequent Advisor

Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)

Test results on our development system:

 

VAV:BG> 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> set proc/priv=oper
VAV:BG> java "SetReceiveBufferSize"
RCVBUF option for this ServerSocket is: 61440
RCVBUF option for this ServerSocket is: 234
VAV:BG> 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> 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

 

BenAArmstrong
Frequent Advisor

Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)

Thanks for that test case, btw. I will use it in a bug we will file on Java >= 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.

 

For the sake of completness of this thread, here's the output from 6.0-2.p1, first without privs:

 

$ java "SetReceiveBufferSize"
RCVBUF option for this ServerSocket is: 61440
RCVBUF option for this ServerSocket is: 61440

 Then with SET PROC/PRIV=OPER (as before with 6.0-4):

 

$ java "SetReceiveBufferSize"
RCVBUF option for this ServerSocket is: 61440
RCVBUF option for this ServerSocket is: 234

 We've filed the bug and have been assigned a case #. Will report back later when there's something to report.

H.Becker
Honored Contributor

Re: Elasticsearch (lucene): java.net.SocketException: permission denied (errno:13)

>>> On which version of Java did you run that test?

 
$ java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition
Fast VM (build 1.5.0-8, build J2SDK.v.1.5.0:02/08/2012-17:12, native threads, jit_150)
$