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

RMI-IIOP without POA stub downloading broken (no codebase in IOR)

    XMLWordPrintable

Details

    • beta3
    • generic
    • generic
    • Verified

    Backports

      Description

        When not using a POA, the server ORB knows what type of servant it is publishing
        an IOR for, and can thus figure out the codebase and put it in as a
        TAG_JAVA_CODEBASE component.

        Currently, a bug prevents this from happening:

        com.sun.corba.se.internal.corba.ServerDelegate
        createObjref(byte[], Object servant)

        needs to pass the servant into the IOR constructor.

        Change
                IOR ior = new IOR( orb, id, host, port, okey ) ;
        to
                IOR ior = new IOR( orb, id, host, port, okey, servant ) ;

        Fixing this allows clients to download stub code.

        Unfortunately, there are some holes in the Java to IDL spec when using a POA
        which prevent knowing the servant type at IOR construction time.
        The repository ID is known, so it might be possible to include a codebase
        derived from it in the IOR, though that creates a problem with PI. This more elaborate case will require spec work, and is addressed
        by bug 4427857.

        ******************************************************************************

        ###@###.### 2001-09-28

        Fix verified OK.
        - With build : j2sdk-1_4_0-beta3-bin-b81-solsparc-27_sep_2001
        - With test : tests/product/rmi-iiop/AutoDownloading

        ******************************************************************************

        Attachments

          Issue Links

            Activity

              People

                eandersosunw Everett Anderson (Inactive)
                eandersosunw Everett Anderson (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: