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

INV_OBJREF when reading a stringified IOR (re-open # 4322574)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • other-libs
    • beta
    • x86, sparc
    • solaris_2.5.1, windows_nt
    • Not verified



        Name: krC82822 Date: 11/01/2000


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-beta)
        Java HotSpot(TM) Client VM (build 1.3-beta, mixed mode)


        See Bug 4322574 concerning "INV_OBJREF when reading a stringified IOR".

        Bug 4322574 seems very much like a real problem but have been closed on the
        assumption of it being a programming error of the user that originally reported it.

        I've later been told this bug has been closed because it couldn't be
        reproduced. So i've enclosed a class that will demonstrate the bug. Just
        compile and run this using jdk1.2.2 and jdk1.3.0 and observe the difference.

        It will run perfectly using jdk1.2.2 but will throw the INV_OBJREF exception
        using jdk1.3.0.

        *NOTE!* Make sure to keep the hardcoded IOR intact.

        _please_ reopen bug 4322574


        ------------START-CODE------------
        public class InvalidObjrefBugDemo {

            String ior
        = "IOR:000000000000002849444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e674
        36f6e746578743a312e300000000001000000000000007c0001010000000009646576656c6f70310
        0009f5c0000003114010f004e5550000000130000000000000001006368696c645f706f610000000
        000000000014e616d65536572766963650000000000000200000000000000080000000054414f000
        0000001000000140000000000010001000000000001010900000000";
            
        public InvalidObjrefBugDemo(String[] args) {
            try {
        System.out.println("Objectifying " + ior + " using java " +
        System.getProperty("java.version") + ".");
        org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);

        // THIS WON'T WORK USING java1.3b
        org.omg.CORBA.Object objRef = orb.string_to_object(ior);

        System.out.println("OK, passed");
            } catch(Exception e) {
        System.out.println("ERROR, failed");
        e.printStackTrace(System.out);
            }
        }
            
        public static void main(String[] args) {
            InvalidObjrefBugDemo mainObject = new InvalidObjrefBugDemo(args);
        }
            
        }
        ------------END-CODE---------------
        (Review ID: 107169)
        ======================================================================

        Name: krC82822 Date: 11/01/2000


        java version "1.3.0rc3"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc3-z)
        Java HotSpot(TM) Client VM (build 1.3.0rc3-z, mixed mode)

        My problem is exactly the same as the Bug 4322574, I'm triyng to access a
        non-java server (running ACE/TAO) and I get the INV_OBJREF exception.
            You closed this bug saying it is a problem of implementation on the server
        side, but, if this is an implementation fault, why does it work with JDK1.2.1
        and JDK1.2.2 without change a single line of code? As I can see I'm not the
        first one with this problem and I couldn't find any solution for this problem,
        even when talking to the people which reported the error.
            I ask you to give some attention to this, it's a major problem and my
        project is stuck :( . I could use the JDK1.2.2 but it has some bugs that affect
        me and that were corrected in the JDK1.3.

        Thank's in advance.
        (Review ID: 104883)
        ======================================================================

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: