Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7100575

SDP: SocketOutputStream.write() fails with "Invalid argument" when writing more than 64k on OEL6 x64

XMLWordPrintable

    • x86
    • linux_oracle_6.0

      Several tcpClient Networking test cases failed during SDP transparent support testing on OEL6 x64 as server and Solaris 11 x64 as client.

      The core of the failures is java.net.SocketException with "Invalid argument" message thrown in java.net.SocketOutputStream.write(byte b[], int off, int len) method. It happened in both cases - when Linux was as Server and as client. Below you can find some output on Linux side:

      OEL6 x64 as Server and Solaris 11 as Client:
      ...
      VERBOSE: 0: tcId=TC_SEND_BUF_COMPARE
      VERBOSE: 0: bufSize=131072 mesgCount=10 randomFlag=false compareFlag=true
      DEBUG: 0: read message #0
      DEBUG: ********* In exception after write**********
      java.net.SocketException: Invalid argument
              at java.net.SocketOutputStream.socketWrite0(Native Method)
              at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
              at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
              at TcpServer.tcBuffers(TcpServer.java:437)
              at TcpServer.doClient(TcpServer.java:231)
              at TcpServer.run(TcpServer.java:190)
              at java.lang.Thread.run(Thread.java:722)
      ...


      OEL6 x64 as Client and Solaris 11 x64 as Server
      ERROR: tcpClient.tcpClient(): exception occurred:
      java.net.SocketException: Invalid argument
      java.net.SocketException: Invalid argument
              at java.net.SocketOutputStream.socketWrite0(Native Method)
              at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
              at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
              at tcpClient.<init>(tcpClient.java:265)
              at tcpClient.main(tcpClient.java:155)


      The issue is not reproducible when both client and server are Solaris 11 sun4u. So I guess this is Linux specific issue.

            chegar Chris Hegarty
            afomin Alexander Fomin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: