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

RMI is restricted to reusable sockets as of Java 9

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      FULL PRODUCT VERSION :
      java version "9"
      Java(TM) SE Runtime Environment (build 9+181)
      Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      The problem is not restricted to a particular OS version

      A DESCRIPTION OF THE PROBLEM :
      As part of the change

      http://hg.openjdk.java.net/jdk9/dev/jdk/rev/ae10dd067bcd

      which removes the HTTP proxy implementation, the marker interface RMISocketInfo and it's treatment in the implementation of the method TCPConnection.isReusable() has been removed. As a consequence, support for non-reusable sockets has been removed as well. This breaks our implementation of a custom socket factory - which basically tunnels RMI over HTTP.



      REGRESSION. Last worked in version 8u144


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      As a workaround we could use bytecode instrumentation to change the behavior of TCPConnection.isReusable(). It would however be a way better solution to add the marker interface back.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: